Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ff52653

Browse files
authoredNov 15, 2024··
Merge branch 'main' into pr-update-collision-request
2 parents 3baa075 + 1944811 commit ff52653

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎moveit_ros/visualization/planning_scene_rviz_plugin/src/planning_scene_display.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,10 @@ void PlanningSceneDisplay::changedSceneName()
356356
void PlanningSceneDisplay::renderPlanningScene()
357357
{
358358
QColor color = scene_color_property_->getColor();
359-
Ogre::ColourValue env_color(color.redF(), color.greenF(), color.blueF());
359+
Ogre::ColourValue env_color(color.redF(), color.greenF(), color.blueF(), scene_alpha_property_->getFloat());
360360
if (attached_body_color_property_)
361361
color = attached_body_color_property_->getColor();
362-
Ogre::ColourValue attached_color(color.redF(), color.greenF(), color.blueF());
362+
Ogre::ColourValue attached_color(color.redF(), color.greenF(), color.blueF(), robot_alpha_property_->getFloat());
363363

364364
try
365365
{

‎moveit_ros/visualization/rviz_plugin_render_tools/src/planning_scene_render.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void PlanningSceneRender::renderPlanningScene(const planning_scene::PlanningScen
9191
color.r = default_attached_color.r;
9292
color.g = default_attached_color.g;
9393
color.b = default_attached_color.b;
94-
color.a = 1.0f;
94+
color.a = default_attached_color.a;
9595
planning_scene::ObjectColorMap color_map;
9696
scene->getKnownObjectColors(color_map);
9797
scene_robot_->update(moveit::core::RobotStateConstPtr(rs), color, color_map);

‎moveit_ros/visualization/rviz_plugin_render_tools/src/robot_state_visualization.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void RobotStateVisualization::updateHelper(const moveit::core::RobotStateConstPt
145145
RCLCPP_ERROR_STREAM(getLogger(), "Link " << attached_body->getAttachedLinkName() << " not found in rviz::Robot");
146146
continue;
147147
}
148-
Ogre::ColourValue rcolor(color.r, color.g, color.b);
148+
Ogre::ColourValue rcolor(color.r, color.g, color.b, color.a);
149149
const EigenSTL::vector_Isometry3d& ab_t = attached_body->getShapePosesInLinkFrame();
150150
const std::vector<shapes::ShapeConstPtr>& ab_shapes = attached_body->getShapes();
151151
for (std::size_t j = 0; j < ab_shapes.size(); ++j)

0 commit comments

Comments
 (0)
Please sign in to comment.