Gazebo | Ignition | Community
Ask Your Question

Option in World file to make camera follow model

asked 2018-12-17 14:12:49 -0500

variable gravatar image

Is there a way to edit the world file to have the camera follow the model? I am rerunning the same simulation right now and trying to save time instead of right-clicking my model and selecting "Follow"

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-12-17 17:51:06 -0500

variable gravatar image

To summarize, in case the tutorial changes...

You add the following to your .world file, which would track target_model from 3 meters behind it:

<gui fullscreen='0'>
     <camera name="user_camera">
          <xyz>-3 0 0</xyz>
edit flag offensive delete link more

answered 2018-12-17 14:28:07 -0500

chapulina gravatar image

There's a tutorial in a pull request right now:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-12-17 14:12:49 -0500

Seen: 2,250 times

Last updated: Dec 17 '18