Robotics StackExchange | Archived questions

Wolrd/model Tracking plugin

Hi all,

I'd like to have a flying camera which is exactly located >5 meters above a robot and tracks it for all the duration of the simulation.

My idea is to get the pose of the mobile robot, remove any roll and pitch, change the altitude and applying to the flying camera.

I think I should write a plugin but I don't have any experience so I really don't know how to do it or if I need a world or a model plugin.

Can you please help me? Thanks

Asked by pulver on 2019-10-23 07:52:08 UTC

Comments

Answers

Hello,

I think you could add a camera sensor to your robot model, and through a Gazebo sensor plugin (see here for API reference), extract the camera data during your simulation.

If it is just for visualization purpose (no need to extract camera data), you can make the user camera follow a model by right-clicking on it and chossing Follow (source : here "In the Gazebo window, right click on the model and press Follow. The user camera will follow the plane during the flight and you will not loose it.")

Hope this helps!

Best.

Asked by mxch_18 on 2019-10-30 06:28:52 UTC

Comments