ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to use spawn_urdf_model service

asked 2017-04-22 02:29:26 -0600

jasonwang538@gmail.com gravatar image

Hi everyone

Currently I am trying to spawn a robot by calling spawn_urdf_model service. But, now matter what I did with it, it always failed to call the service. I think the problem is that I do not know how to assign value to model_xml field of gazebo_msgs::spawnmodel srv.

Does anyone know how to use this service? Especially, could anyone offer me some examples about how to use this service.

Thank you very much

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-23 21:43:47 -0600

Geoff gravatar image

The model_xml field should contain the contents of a URDF file. It's a string, so read the contents of a URDF file into a string and assign it to the model_xml field.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-22 02:29:26 -0600

Seen: 495 times

Last updated: Apr 23 '17