Home | Tutorials | Wiki | Issues
Ask Your Question
0

gazebo starting view pose control

asked 2015-08-28 04:05:42 -0500

osmancns gravatar image

ı want to change gazebo first starting view pose on my model. When gazebo first started, ı want to see my world above.I dont want always change my world view with mouse. how can I change gazebo initial view pose in .world file.

so :

my first view: http://i.imgur.com/qTkYEJc.png

BUT: I want to see like this first starting.

http://i.imgur.com/ouqEYEi.png

what can ı do in my sdf file ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2015-08-28 10:32:10 -0500

chapulina gravatar image

You can set the user camera pose in the SDF as follows:

<world name="default">
  <gui>
    <camera name="user_camera">
      <pose>0 0 0 0 0 0</pose>
    </camera>
  </gui>
...
</world>

From Gazebo 6, you can find out the current camera pose on the World tab, under GUI. Then you can use that value in your SDF.

On older versions of Gazebo, you can save your world with the desired camera pose and find the pose in the saved SDF.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-08-28 04:05:42 -0500

Seen: 3,801 times

Last updated: Aug 28 '15