Gazebo | Ignition | Community
Ask Your Question
0

Changing the values of Model parameters

asked 2020-09-30 02:03:14 -0500

lucien gravatar image

Hi I have the following in my model plugin shown below, I was wondering how can I change the parameters of the <reset_frequency> such that it takes inputs from a ROS node which has a slider bar in it.

 <plugin name="particle_shooter_plugin" filename="libparticle_shooter_plugin.so">
  <reset_frequency>90.0</reset_frequency>
  <x_axis_force>-10000.0</x_axis_force>
  <y_axis_force>0</y_axis_force>
  <z_axis_force>0.0</z_axis_force>

  <x_origin>1.0</x_origin>
  <y_origin>0.0</y_origin>
  <z_origin>0.5</z_origin>

  <random_range>1</random_range>

</plugin>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-30 04:22:39 -0500

Replicate the slider in your plugin. I.e. make the variable a dynamic_reconfigure parameter.

edit flag offensive delete link more

Comments

Thank You. I realize I have to do a subscriber in the plugins. And am following this video: https://www.youtube.com/watch?v=hcte5...

lucien gravatar imagelucien ( 2020-09-30 23:25:30 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-30 02:03:14 -0500

Seen: 332 times

Last updated: Sep 30 '20