moveit/moveit_tutorials

trying to run demo_gazebo.launch under a namespace - Not working

Opened this issue · 1 comments

Description

I am trying to run demo_gazebo.launch under a namespace to have multiple simulation under the same ros master.

  • Running demo.launch under a namespace is working without error.
  • Gazebo is getting stuck at waiting for /clock and controller_manager

Environment

Steps to reproduce

  • go to the repo and do as per Readme.md
  • then in the roslaunch add this __ns:=/sim1
roslaunch simulation_moveit_config demo_gazebo.launch __ns:=/sim1`

Current behaviour

-gazebo running but no model loaded also clock is stopped in the gazebo

  • RVIZ not showing the model

Console output

You can start planning now!

[ INFO] [1720157324.225541084]: Stereo is NOT SUPPORTED
[ INFO] [1720157324.225599681]: OpenGL device: NVIDIA GeForce GTX 1650/PCIe/SSE2
[ INFO] [1720157324.225623147]: OpenGl version: 4.6 (GLSL 4.6).
[ INFO] [1720157324.465841817]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1720157324.468059699]: waitForService: Service [/sim1/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1720157324.939220498]: waitForService: Service [/sim1/gazebo/set_physics_properties] is now available.
[ INFO] [1720157324.953622974]: Physics dynamic reconfigure ready.
[INFO] [1720157354.072453, 0.000000]: Waiting for /clock to be available...
[INFO] [1720157354.074593, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [1720157354.116460, 0.000000]: Waiting for /clock to be available...
[INFO] [1720157354.118978, 0.000000]: Controller Spawner: Waiting for service /sim1/controller_manager/load_controller
[INFO] [1720157384.237407, 0.000000]: Waiting for /clock to be available...
[INFO] [1720157384.239518, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [1720157384.283028, 0.000000]: Waiting for /clock to be available...
[INFO] [1720157384.285446, 0.000000]: Controller Spawner: Waiting for service /sim1/controller_manager/load_controller

more log file added
master.log

roslaunch-ron-linux-83213.log
rosout.log
rosout-1-stdout.log
sim1-controller_spawner-4.log
sim1-gazebo_controller_spawner-5.log
sim1-spawn_gazebo_model-3.log

Running multiple simulations on the same ROS master is not possible: the simulation publishes the global and unique /clock topic. If you want to run multiple simulations in parallel, use different ROS environments.