I am using PX4 as part of my flight stack, where I am developing a reinforcement learning algorithm to navigate the drone.
I am also using Gazebo to simulate the drone.
Currently, after each training iteration, I am restarting PX4 using a bash script. However, doing so means that it takes about 5-10 seconds for each learning step, which will drastically slow down learning.
After a particular iteration, I want to reset the robot back to its initial pose in order to run another simulation. I am wondering, is there a way to programmatically "reset" PX4 or to re-calibrate it, so that I don't need to reboot it each time?
Your help is really appreciated.