Gazebo | Ignition | Community
Ask Your Question
0

Is there a way how to transfer a model inside simulation from ROS node?

asked 2019-01-10 09:36:24 -0600

kumpakri gravatar image

I'm writing some automatic simulation testing and it would be helpful if I could just move the robot at it's initial position after each test instead of running the whole simulation again. How can I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-01-10 12:37:30 -0600

Carlos Agüero gravatar image

You can send a Gazebo message to the "/gazebo/default/model/modify" topic. See the message definition here.

In the gazebo/gui/ModelListWidget.cc you have an example of how to publish some data towards that topic. See here.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-01-10 09:36:24 -0600

Seen: 278 times

Last updated: Jan 10 '19