Troubleshooting¶
Find the symptom below and check the corresponding service, state, or configuration.
Installation¶
| Symptom | Check | Next action |
|---|---|---|
ROS 2 workspace has not been built |
Base ROS installation and ros2/install/setup.bash |
Complete the correct native profile, then ./ros2/build.sh sitl or ./ros2/build.sh hardware as appropriate; source the runtime helper |
| Source fetch refuses a partial scope | Exact manifests and existing external checkouts | Preserve local modifications, inspect which source is missing, and reconstruct in a clean checkout if needed; do not reset existing work |
| Gazebo command configuration not found/unusable | Installed Gazebo Harmonic dependencies | Use the supported sitl installation or ./setup/install_px4_dependencies.sh sitl |
| QGroundControl configured but missing | Installed profile and GCS |
Install QGroundControl with ./setup/install_qgroundcontrol.sh when GCS=qgc; the sitl installation supplies MAVProxy by default |
| Container cannot write bags/logs | Bind-mount ownership and image UID/GID | Prepare writable host directories for the container user; keep the data mounts |
For source installation failures, see Native SITL or Companion installation.
Simulation and DDS¶
./tools/sitl accepts start, start headless, status, and stop. GCS accepts mavproxy or qgc.
If /fmu/ topics are absent or have no samples, in a second simulation repository-root shell:
Inspect START_XRCE_AGENT, transport/port agreement, PX4 XRCE client, and selected environment. Topic discovery and sample delivery are different checks. Make sure the controller shell is inside the same container when using Docker.
The native SITL px4 window accepts PX4 shell commands. On hardware, use QGroundControl's MAVLink Console over the separate telemetry link. The toolkit's DDS agent and mocap stack do not manage this MAVLink connection; healthy DDS traffic alone does not prove that the GCS is connected.
For simulation staging that waits without climbing, check MAVProxy and the virtual-joystick module, PX4 Position mode, readiness, and reported phase. Selecting QGroundControl does not provide the MAVProxy-backed virtual input used by those examples.
If a stopped tmux session leaves Gazebo running, use ./tools/sitl stop after flight has ended. Its repository-scoped cleanup handles detached simulator processes; stopping communication is not a flight recovery action.
Hardware and Vicon¶
| Symptom | Check | Next action |
|---|---|---|
| Serial device missing/inaccessible | Actual companion device, user permissions, configured baud and PX4 client | Correct config/runtime/hardware.env for the real device |
hardware XRCE transport must be 'serial' |
Configured transport | The current wrapper starts a serial agent; use its supported setting |
| Vicon tracked pose missing | Server reachability, object/topic, namespace, mocap window logs | Correct the site-specific selection; verify incoming pose |
| PX4 external vision misaligned | ENU/FLU input convention, NED/FRD conversion, configured world transform | Correct the transform/estimator setup; do not compensate with gains |
Use Companion Computer for service and flight-readiness checks. Companion process status does not prove estimator health, RC/failsafe behavior, or a valid actuator mapping.
Controller and vehicle¶
A missing hover_thrust or physical configuration is a mode-compatibility issue. Choose a supported mode from vehicle requirements; calibrate/derive missing facts in separate vehicle work. Six-rotor data cannot satisfy the current four-rotor physical adapter.
If Offboard SE(3) waits for state, inspect position/velocity validity and the selected mode's attitude/rate needs. Invalid required state stops its heartbeat and selected setpoint output and resets warmup; a visible diagnostic reference alone is not proof that PX4 control output is active. If Offboard is rejected or lost, inspect PX4 estimator/mode status and acknowledgements. Confirm actual nav_state, not only an accepted mode command.
After interruption, check the actual mode and arming state before restarting. See Offboard SE3 lifecycle.
Native onboard mode and trajectory¶
| Symptom | Check | Next action |
|---|---|---|
| SE3 has not registered | se3_control status in PX4; correct firmware build and disarmed startup |
SITL starts it at boot; a physical firmware image must separately include and start the module |
| Selection rejected | Configured SE3_* parameters, state freshness, airborne/armed state |
Prepare the controller while disarmed, then follow the pilot handoff in Onboard control |
| SE3 holds instead of moving | Active mode and se3_control status |
Selection intentionally captures the entry pose; movement requires explicit se3_control trajectory <name> |
| A reference jumps when started | Actual local NED position/yaw versus absolute plan start | Return to pilot control; check frame/origin and prepare the intended start. Firmware does not align the plan or enforce proximity to its start |
| Native parameters differ between vehicles | PX4 SE3_*, TRJ_*, and MPC_THR_HOVER values |
Set and verify suitable airframe-specific parameters in PX4; do not reuse SITL tuning blindly |
se3_control hold requests native hold behavior; it is not a landing command. Verify the reported holding state, and use the pilot's Position-mode control to give control back before landing. See the native implementation for fault-latching and reference behavior.
Recording and analysis¶
| Symptom | Check | Next action |
|---|---|---|
| Recorder exits before controller | Topic configuration, writable new bag path, recorder logs | Correct the recording cause before repeating a flight |
Sequence says ros2 is unavailable |
Current shell environment | Source ros2/runtime_env.sh before tools/run_sequence |
| Step exited but bag is not finalized | Recorder exit and metadata.yaml |
Preserve the bag; inspect/recover storage before analysis |
| Analysis profile cannot be identified | experiment.json or standalone parent name |
Use explicit study metadata or the documented standalone layout |
| SE(3) analysis lacks entry/return | Recorded status and experiment completion | Do not present an interrupted/incomplete interval as a normal comparison |
Comparison requests --output |
Shared study bags/ parent and manifest |
For standalone/different-study bags, provide an explicit destination |
| A plot/metric is unavailable | Required versus optional topics, diagnostics enabled, overlap | Interpret only supported observations; absence is not zero error |
Read Recording before attempting interrupted-bag recovery, and Comparison for metric windows and data requirements.