Jaeyoung-Lim / mavros_controllers

Aggressive trajectory tracking using mavros for PX4 enabled vehicles
BSD 3-Clause "New" or "Revised" License
417 stars 167 forks source link

Actuator Control in Real World #227

Open ZifeiJiang opened 2 years ago

ZifeiJiang commented 2 years ago

Hi Jaeyoung, 

I know you are an expert on Mavros controllers. I have googled about the mavros offboard control on internet. I have found examples of controlling the outer loop of a quad in offboard control mode, which sends body rate and attitude to px4, basically the same as in this repo. 

I am wondering whether it is possible to use actuator control in the real world. I have tested actuator control in SITL and it works fine.

Further more, is it possible to use the following uORB message from a companion computer with ROS2 or MavROS in real world? I think this can enable user to bypass the built in mixer and send rotor speed commands directly.

image

Thank you very much!

Jaeyoung-Lim commented 2 years ago

@ZifeiJiang In principle there is nothing stopping you from using actuator control.

However what you need to be careful is the timedelay of sensor measurements to actuator commands that require a round trip to the companion computer. This requires you to have a very fast and reliable link between the companion computer and firmware. Normally the time delay introduced by the link is large enough to degrade the performance when doing offboard control with actuator setpoints