Gazebo | Ignition | Community
Ask Your Question

Rotate objects without loading a new map

asked 2017-10-20 03:05:44 -0500

Baumboon gravatar image

Hello Guys,

I looked the last 2 days for a way to rotate objects in an existing world without loading a new map .

I use Ros Gazebo with Turtlebot..The turtlebot drive to several objects after he has complete his task I rotate all objects that he can drive in an new ankle to them. I didn't find a good solution maybe someone can help me.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2017-10-20 08:57:49 -0500

chapulina gravatar image

You have a few options:

  1. Since you're using ROS, you can publish to /gazebo/set_model_state, here's a tutorial.

  2. Or you could use Gazebo transport and publish a message to the ~/model/modify topic

  3. Finally, you can always write a world plugin which sets the pose of objects in the world. Here's a tutorial.

edit flag offensive delete link more


Is there a way to rotate all Objects with one command? Or do i need to publish all states and positions of each Object?

Baumboon gravatar imageBaumboon ( 2017-10-24 05:25:13 -0500 )edit

It depends on your model's kinematic structure, as mentioned on an answer to another question, I suggest you get familiar with Gazebo's model concepts before trying to control models ;)

chapulina gravatar imagechapulina ( 2017-10-25 09:50:46 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-10-20 03:05:44 -0500

Seen: 983 times

Last updated: Oct 20 '17