I'm developing a visual-inertial localization and navigation method and using rotors simulator and its integrated position controller, together with mav_trajectory_generation ROS package, which allows to build smooth trajectories. In order to follow the trajectory I use rotors position controller, which allows me to set a position/velocity/acceleration setpoint, which then outputs a resulting output acceleration vector to be sent to the vehicle. I'm now attempting experiments using PX4 drone and I'm wondering if it is possible to to the same, by sending an acceleration setpoint. I understand that PX4 is able to receive the setpoint but I understand this is somehow interpreted as a thrust + orientation, which I do not really understand (are you assuming |acceleration| = k * thrust?). How is vehicle mass handled here?
On the other hand, I could maybe convert this to an orientation + thrust myself (given I know my vehicle mass) and send it as a raw attitude target. What would be the best approach?
Note that I only need the drone to follow the acceleration setpoint since I'm closing position and velocity loop on my own.