Gazebo | Ignition | Community
Ask Your Question

How to pass parameters to GUIPlugin for gzclient

asked 2021-02-04 10:48:43 -0500

m.bahno gravatar image

updated 2021-02-09 03:25:08 -0500

I need to run a separate node with Gazebo client like this:

<node name="gui_w_plugin" pkg="ros_gazebo" type="gzclient" args="--gui-client-plugin"/>

However I was not able to pass any arguments to the plugin. I was also not able to find much documentation to GUIPlugin (but very brief API description).

Do you have an idea, how to:

1) pass arguments to plugin, so I can use tem in C++ plugin definition (either constructor or Load())?

2) start gazebo client other way, so I can use SDF parameters or other means?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-02-11 07:18:38 -0500

m.bahno gravatar image

In the end, I used kind of workaround to pass arguments via local ROS parameter. However, I don't think this is the best way and I would find the most elegant way to be able to specify the sdf parameters even with node call.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-02-04 10:48:43 -0500

Seen: 23 times

Last updated: Feb 11