Gazebo | Ignition | Community
Ask Your Question

Wolrd/model Tracking plugin

asked 2019-10-23 07:52:08 -0600

pulver gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-30 06:28:52 -0600

mxch_18 gravatar image


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!


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-10-23 07:52:08 -0600

Seen: 239 times

Last updated: Oct 23 '19