Here is an answer I have been given in another category. I hope this answer will help you a lot. If you have any questions, do not hesitate to share it in the forum. Thanks for your time .
PX4 doesnât really âsupportâ MAVROS ROS2 setups. They should work but it will be harder for you to get support.
I only have general PX4 comments on arming and offboard mode. The requirements for arming in offboard mode, or switching to offboard mode when armed are listed here - angular velocity, attitude, and offboard signal.
What that means is that you have to supply velocity and attitude, and stream a proof of life message. That means meet the same requirements as are met in Offboard Mode (Generic/All Frames) | PX4 Guide (main) .
If you were using MAVLInk directly youâd just stream the message that set your desired target, and that would do the proof of life and your target in one.
Hope that helps.