Ask Your Question

Initial view after gazebo starts

asked 2011-09-11 21:42:28 -0600

Markus Bader gravatar image

updated 2011-09-13 04:55:44 -0600

kwc gravatar image


I am not happy with the view on my scene after I start gazebo using rosrun with gazebo and my world file.

How can I set the initial view on my scene for the gazebo simulator.

Thanks and Greetings Max

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-09-11 22:52:38 -0600

Lorenz gravatar image

The world file contains settings for the user camera. Open your world file and search for:

    <size>480 320</size>
    <pos>0 0</pos>
      <row height="100%">
        <camera width="100%">
          <xyz>0.3 0 3</xyz>
          <rpy>0 90 90</rpy>

As you can see, the camera tag contains settings for position and orientation of the camera.

edit flag offensive delete link more


Thank you Lorenz, it worked! I had a wrong syntax, your syntax if working perfect
Markus Bader gravatar imageMarkus Bader ( 2011-09-13 20:03:08 -0600 )edit

I using Gazebo 9.0 and launching the It has only 2 models sun and ground_plane. It does not have any camera settings. How do I configure the camera settings now?

Subodh Malgonde gravatar imageSubodh Malgonde ( 2018-08-20 01:31:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-09-11 21:42:28 -0600

Seen: 848 times

Last updated: Sep 11 '11