Skip to content

Commit

Permalink
Add an if-condition to RViz delay
Browse files Browse the repository at this point in the history
This prevents RViz from spawning twice if the moveit startup is used.
  • Loading branch information
fmauch authored and VinDp committed May 15, 2024
1 parent ed0e235 commit 65ae646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ur_simulation_gz/launch/ur_sim_control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def launch_setup(context, *args, **kwargs):
event_handler=OnProcessExit(
target_action=joint_state_broadcaster_spawner,
on_exit=[rviz_node],
)
),
condition=IfCondition(launch_rviz),
)

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

0 comments on commit 65ae646

Please sign in to comment.