Ask Your Question
1

Can the camera position be specified in an SDF file? [closed]

asked 2012-07-09 10:26:25 -0500

Jim Rothrock gravatar image

updated 2014-01-28 17:12:57 -0500

ngrennan gravatar image

I am converting a Gazebo 0.x world file into Gazebo 1.x SDF format. In the original file, I was able to specify the initial camera position like this:

<rendering:gui>
  <frames>
    <row height="100%">
      <camera width="100%">
        <xyz>85.52 3.6 1.92</xyz>
        <rpy>0 23.8 69.9</rpy>
      </camera>
    </row>
  </frames>
</rendering:gui>

Does SDF provide similar functionality? I can't find any in the SDF documentation.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Jim Rothrock
close date 2013-10-07 07:38:46

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-08-02 15:03:17 -0500

Jim Rothrock gravatar image

I looked through the Gazebo 1.0.2 source files, and found that the initial camera pose can be specified like this:

<gui>
  <camera name="user_camera">
    <origin pose="85.52 3.6 1.92 0 0.4154 1.22"/>
  </camera>
</gui>
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-09 10:26:25 -0500

Seen: 632 times

Last updated: Aug 02 '12