Home | Tutorials | Wiki | Issues
Ask Your Question
0

Rotate objects without loading a new map

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

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 want.to 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
1

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

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

Comments

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 -0600 )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 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 308 times

Last updated: Oct 20 '17