Home | Tutorials | Wiki | Issues
Ask Your Question
0

Option in World file to make camera follow model

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

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
1

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

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">
        <track_visual>
          <name>target_model</name>
          <static>true</static>
          <use_model_frame>true</use_model_frame>
          <xyz>-3 0 0</xyz>
          <inherit_yaw>true</inherit_yaw>
        </track_visual>
    </camera>
</gui>
edit flag offensive delete link more
1

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

chapulina gravatar image

There's a tutorial in a pull request right now: https://bitbucket.org/ocrave/gazebo_t...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 372 times

Last updated: Dec 17 '18