Skip to content

Commit 7d6ce11

Browse files
mergify[bot]fmauch
andauthored
Add an if-condition to RViz delay (#77)
This prevents RViz from spawning twice if the moveit startup is used. (cherry picked from commit 26d3d4f) Co-authored-by: Felix Exner <exner@fzi.de>
1 parent 7f218df commit 7d6ce11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ur_simulation_gazebo/launch/ur_sim_control.launch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def launch_setup(context, *args, **kwargs):
130130
event_handler=OnProcessExit(
131131
target_action=joint_state_broadcaster_spawner,
132132
on_exit=[rviz_node],
133-
)
133+
),
134+
condition=IfCondition(launch_rviz),
134135
)
135136

136137
# There may be other controllers of the joints, but this is the initially-started one

0 commit comments

Comments
 (0)