QoS profile for ROS2 in Python

Hello, I am looking to do some offboard control and need to subscribe to the “/fmu/out/vehicle_odometry” topic. However as detailed in the documentation, the default QoS profile for ROS2 subscribers is incompatible with PX4’s publishers.The documentation does give example code for changing this QoS profile, however it is in C++.

If anyone can show me what creating this custom QoS profile in Python would look like I would be very grateful.

Thanks!

Hi @R_mcc !
You can take a look at the offboard control example in python!

Hello,

I didn’t realize that package had been updated with newer examples! This works perfectly for me, thank you so much!

1 Like