Automatically running px4_sitl with different parameters' values

Hi all,

I’m implementing some guidance algorithms on px4_sitl gazebo and MAVROS with OFFBOARD mode.

In the guidance algorithms, there are few gains that I need to choose. Right now, I’m selecting the gains and run the SITL manually, which means that in each run I need to roslaunch px4 mavros_posix_sitl.launch, change the gains, run the algorithm in an OFFBOARD mode, save the results, and exit from the process.

I thought to automate the entire process, and I wonder what will be the best way to do so. I appreciate any suggestion or recommendation for an existing framework.

Thanks in advance,
Iftach.