Geometric (Normalized)¶
The toolkit computes normalized thrust and torque from geometric attitude/rate errors and analytic feedforward. PX4 performs allocation. This is not a physical inertia-based moment law.
Geometric errors¶
With \(Q=R^\top R_d\), map desired-body rate to the current FRD body frame:
Current-frame acceleration feedforward is
The foundations derive this from the moving frame. \(\Omega_d\) is desired attitude angular velocity, not the feedback-corrected \(\Omega_{\mathrm{sp}}\) used by cascaded rate modes.
Implemented normalized law¶
The runtime adds three component-wise terms:
normalized_attitude_gain, normalized_angular_velocity_gain, and normalized_angular_acceleration_gain are diagonal gains mapping into dimensionless normalized torque. Their dimensions are normalized torque per attitude error, per rad/s, and per rad/s² respectively. Thus \(K_\Omega^n\) has a time factor and \(K_\alpha^n\) a time-squared factor when radians are dimensionless.
The three normalized gain vectors are configured independently. The law uses the configured normalized_attitude_gain, not a value recomputed from attitude_gain. The analytic acceleration feedforward differs from PX4 rate-PID derivative feedback.
This normalized law has no inertia \(J\) or gyroscopic term \(\Omega\times(J\Omega)\). For an inertia-based moment in N·m, see Geometric (Physical).
Thrust, messages, and timing¶
Collective uses specific force \(B=A/m\) and the calibrated hover scale \(h\), without a physical-mass conversion:
VehicleThrustSetpoint.xyz=(0,0,-u_T) and VehicleTorqueSetpoint.xyz=\tau_n are in current FRD axes. They share publication time; this outer-loop publisher leaves timestamp_sample at its default. Only OffboardControlMode.thrust_and_torque is true.
Collective is clipped, but normalized torque has no explicit clamp or integral anti-windup; PX4 allocation applies actuator constraints.
Valid position/velocity, attitude, and body angular velocity are required. The outer timer (100 Hz by default) evaluates desired dynamics through snap and yaw acceleration, then publishes after confirmed Offboard. Read the shared lifecycle.
Run and inspect¶
In a separate repository-root shell, with a matching, prepared airborne SITL vehicle and no competing controller:
source ros2/runtime_env.sh
ros2 launch offboard_controllers se3.launch.py \
vehicle:=gz_f450 trajectory:=full_excitation handoff:=thrust_and_torque \
direct_controller:=geometric_normalized publish_diagnostics:=true record:=true
Diagnostics separate attitude feedback, rate feedback, and acceleration feedforward. Inspect them beside the final torque, allocator residuals, and motors. Large commands during transients may be infeasible; absence of integral action does not remove saturation. The model and SO(3) limitations in foundations apply.
Read normalized_torque.cpp, attitude_geometry.cpp, and runtime/control.cpp. The Lee citation supports the error definitions; the normalized law is a toolkit choice.