Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I tried to add ns="myRobot" to my node

<node name="spawn_quad0" ns="myRobot" pkg="gazebo" type="spawn_model" args="-urdf -param quad_urdf -model quad0 -x 0 -y 0 -z 3" respawn="false" output="screen"> </node>

but an error appears:

File "/opt/ros/electric/stacks/simulator_gazebo/gazebo/scripts/spawn_model", line 330, in <module> sm.callSpawnService() File "/opt/ros/electric/stacks/simulator_gazebo/gazebo/scripts/spawn_model", line 215, in callSpawnService model_xml = rospy.get_param(self.param_name) File "/opt/ros/electric/stacks/ros_comm/clients/rospy/src/rospy/", line 378, in get_param return _param_server[param_name] #MasterProxy does all the magic for us File "/opt/ros/electric/stacks/ros_comm/clients/rospy/src/rospy/", line 117, in __getitem__ raise KeyError(key) KeyError: 'quad_urdf' [quad0/spawn_quad0-3] process has died [pid 11229, exit code 1]. log files: /home/marco/.ros/log/27005474-c4e5-11e1-853e-001d60c8d68d/quad0-spawn_quad0-3*.log

and I do not know what I wrong.

Many thanks for any reply.