Move camera around as simulation goes on

asked 2021-04-21 05:10:21 -0600

alexantosh gravatar image

Hello. I am simulating multi robots moving along a path. What i want is the camera to be able to move around as the simulation goes on so that the robots do not go out of vision. The follow mode would work but its zoom is so small it can only cover one robot. besides I cant change the view when its active. So what i want is more like follow a scene. If possible i would also want the camera to occasionally switch view angles. say view the robots from side view? How can i achieve this? Thanks.

edit retag flag offensive close merge delete


I don't know for sure but I think the follower plugin should work for this. Try getting the pos of the object by subscribing to the topic on which the object publishes its pose then plan your trajectory accordingly. I will suggest using cv_bridge.

Adwait gravatar imageAdwait ( 2021-04-21 12:59:14 -0600 )edit

is it a gazebo plugin or a ros plugin? I will look into it though. Thanks.

alexantosh gravatar imagealexantosh ( 2021-04-22 04:45:22 -0600 )edit

@alexantosh it's a gazebo plugin.

Adwait gravatar imageAdwait ( 2021-04-22 10:15:47 -0600 )edit

hello, looked into it but it doesnt seem to achieve what i want. thanks though

alexantosh gravatar imagealexantosh ( 2021-05-03 03:50:04 -0600 )edit