0
$\begingroup$

Rosanswers logo

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


Originally posted by [email protected] on ROS Answers with karma: 31 on 2017-04-22

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by Geoff with karma: 4203 on 2017-04-23

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.