ethz-asl / rotors_simulator

RotorS is a UAV gazebo simulator
1.2k stars 756 forks source link

How do you dynamically change mav parameters in the simulator? #712

Open spencerfolk opened 1 year ago

spencerfolk commented 1 year ago

Hi all,

I'm wondering if anyone knows how to change the mav parameters (like the mass, inertia, etc.) mid simulation?

I tried changing them using rosparam set <rosparam_name> <param> while the simulator is running but this doesn't seem to update the actual values, like the mass, in the simulator. Further, these parameters are just associated with the controller node, and not the robot itself.

Is it possible to change these values during the simulation or would it be a headache?