ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
A recent fix to pass through command line arguments to the ros node initialized within gazebo exposes this problem; by correctly namespacing the gazebo node with the name declared in the launch script. The spawn_model
script defaults to look for gazebo services under /gazebo/
namespace, and thus fails and the gazebo node operating under /empty_world_server/(spawn_urdf_model, etc.)
.
The fix you suggested above is valid. Alternatively, one could also pass the additional commandline argument of gazebo_namespace
to the spawn_model
script, e.g.
rosrun gazebo spawn_model -gazebo_namespace empty_world_server -...