Gazebo | Ignition | Community
Ask Your Question
1

Why should I use a ROS plugin instead of the GAZEBO camera?

asked 2020-11-27 05:24:41 -0500

Zeckurbo gravatar image

I want to simulate a 3D depth camera, but I allways find tutorials for a ROS plugin. Is there a reason to use only the plugin or is the normal gazebo camera also viable?

edit retag flag offensive close merge delete

Comments

As far as I have found out, the ROS plugin can send a ros message to a ros node. The normal gazebo depth camera will only write in the console but will not publish to any ros node whatsoever.

Zeckurbo gravatar imageZeckurbo ( 2021-01-20 10:31:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-11-27 11:07:22 -0500

The ROS plugin just offers a ROS api for the gazebo camera, it doesn't do much work besides that. If you want to use the gazebo plugin without ros, you'll need to write a gazebo plugin in C++, or use ignition/gazebo transport (which also only exists for C++). But in short, you do not need ros, it's just very common.

edit flag offensive delete link more

Comments

Thank you for your answer. So there is no pre-build ready to use Gazebo depth camera? Do you know any good tutorials to use a depth camera in gazebo? The official tutorial from the get started page was a bit short and also only for ROS.

Zeckurbo gravatar imageZeckurbo ( 2020-11-28 04:47:26 -0500 )edit

You can follow that tutorial to set up the gazebo sensor, and then write your own plugin. I don't know of any tutorials, sorry. But the ros plugin code should be good reference for you, or perhaps this: https://github.com/intel/gazebo-reals...

Peter Mitrano gravatar imagePeter Mitrano ( 2020-12-11 19:44:20 -0500 )edit

Thank you very much

Zeckurbo gravatar imageZeckurbo ( 2020-12-17 14:04:02 -0500 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2020-11-27 05:24:41 -0500

Seen: 59 times

Last updated: Nov 27 '20