How auterion/px4-ros2-interface-lib works
Layer Organization (top to bottom)
a. Application Layer:
• Example Modes (manual, goto, fw_attitude, etc.)
• Custom User Applications
b. Interface Layer:
• Mode Executor
• Node With Mode
• Health and Arming Checks
• Message Compatibility Check
c. Control Layer:
• Setpoint Types (Direct Actuators, Attitude, Rates, Trajectory)
• Peripheral Actuators
d. Navigation Layer:
• Global Position Interface
• Local Position Interface
• Navigation Interface Base
e. State Management Layer:
• Vehicle Status
• Battery Status
• Home Position
• VTOL Status
• Land Detection
a. Primary Data Flow:
• uORB Messages between PX4 and Library
• ROS 2 Topics/Services
• Mode Commands and Setpoints
b. State Updates:
• Vehicle State Updates
• /Attitude Updates
• Control Feedback
Key Integration Points
a. Message Compatibility Layer:
• Compatibility checking mechanism
• Message translation between uORB and ROS 2
b. Mode Registration System:
• Dynamic mode registration
• Mode switching mechanism
Important Details
• Frame conversion utilities
• Geodesic calculations
• Health monitoring
• Arming check system
• Manual control input handling