Skip to content

Commit 26d3d4f

Browse files
fmauchVinDp
authored andcommitted
Add an if-condition to RViz delay
This prevents RViz from spawning twice if the moveit startup is used.
1 parent f2809b7 commit 26d3d4f

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)