Gazebo | Ignition | Community
Ask Your Question

shared parameters between plugins

asked 2014-02-21 05:29:21 -0500

Andrea gravatar image

updated 2014-02-21 05:36:17 -0500

Hi everybody I am writing a simulation that involves multiple plugins. Some time I need to pass data between the plugins, for example images or the positions. The thing is that all the plugins write on different ROS topics and I want them to robustly read/write the same topics. By "robustly" I mean that the topics are user-defined in the sdf description of the model. I would like to define some shared fields so that a topic name is used in multiple plugins without inserting the same name in all the plugin definition, is it possible? I hope I have been clear Thanks Andrea

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-24 06:15:54 -0500


for ROS i would recomment using URDF and xacro. In xacro you can do exactly what you are asking for. xacro also has the possibility to hand over arguments for the configuration. This way you could change the definition for usage with multiple robot instances without modifing the config file...

if you want to use SDF and self written plugins you could think about using the parameter server to store this information...

edit flag offensive delete link more


I think I will opt for a parameter server. Thank you very much!

Andrea gravatar imageAndrea ( 2014-02-28 12:59:58 -0500 )edit

Question Tools


Asked: 2014-02-21 05:29:21 -0500

Seen: 162 times

Last updated: Feb 24 '14