Robotics StackExchange | Archived questions

Can I add user input parameters for a gazebo plugin?

I want the user to be able to change target positions in run-time by providing poses. I do not have much experience with Gazebo plugins so I was wondering if it was possible. One approach I am thinking of is making my plugin subscribe to a topic and the user can publish to that topic.

Asked by bhej on 2018-06-20 10:01:59 UTC

Comments

Using a topic sounds good. Other options would be rosparam, rosservice of dynamic_reconfigure.

Asked by Raskkii on 2018-06-21 06:15:57 UTC

Answers

For runtime, I think a topic as you mentioned is your best bet.

Not exactly run-time, but you can expose parameters via SDF, so the user can modify them before running Gazebo, but without recompiling the plugin. See for example how the RandomVelocityPlugin parses the SDF here and is used here.

Asked by chapulina on 2018-06-20 12:41:03 UTC

Comments