Gazebo | Ignition | Community
Ask Your Question
0

How much overlap is there between messages and plugins?

asked 2019-01-15 15:03:20 -0500

sebjf gravatar image

Hi,

I'd like to use Gazebo to visualise a camera calibration problem: create sets of point clouds and cameras (or just origin gizmo representations of cameras) in the scene, and use the graphical client to explore it.

The data needs to be fed from my program though. I understand in this case, I should use messages, rather than a plugin, right?

I am having a lot of trouble understanding the difference in use between plugins and messaging API however. For example, some tutorials have a message passing equivalent, while others don't.

  1. Is there (intended to be) a 1:1 mapping between the messages and native API? So, I could use the Rendering module from my own application?
  2. Where is the documentation for how to use the messages? For example, I have found a pointcloud message, how do I find out which topic it should go to, and how to intialise it, in order to draw a point cloud?
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-01-16 12:30:02 -0500

chapulina gravatar image

Is there (intended to be) a 1:1 mapping between the messages and native API? So, I could use the Rendering module from my own application?

No, the messaging API is never going to be as powerful as the C++ API.

Where is the documentation for how to use the messages?

The documentation you linked to is for the message definitions, but unfortunately, as mentioned here, we don't have dedicated documentation about all the topics available on Gazebo. You can use the gz topic command line tool to inspect the topics available at runtime though, like gz topic -l, gz topic -i...)

I'd like to use Gazebo to visualise a camera calibration problem

For this kind of custom visualization, you may be interested in markers. You can check the gz marker -h tool and this standalone example.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-01-15 15:03:20 -0500

Seen: 54 times

Last updated: Jan 16 '19