Skip to content

fix(interface): keep MAVROS topics at interface/mavros/<topic> on MAVROS 2.15+ (follow-up to #433) - #436

Merged
andrewjong merged 2 commits into
developfrom
fix/mavros-2.15-namespace
Dec 2, 2026
Merged

andrewjong merged 2 commits into
developfrom
fix/mavros-2.15-namespace

Conversation

@andrewjong

@andrewjong andrewjong commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

What features did you add and/or bugs did you address?

How did you implement it?

  • interface.launch.py: mavros_launch_namespace() reads the installed MAVROS version from its package.xml. On 2.15.x and 2.16.x it passes an empty launch namespace, which puts the plugin topics at interface/mavros/<topic> (the UAS node itself becomes interface/mavros). Every other release keeps namespace:=mavros. If MAVROS can't be found or parsed, it falls back to mavros.
  • Sentinels: airstack ready (.airstack/modules/ready.sh) and the liveliness test accept either UAS node name (.../interface/mavros/mavros or .../interface/mavros).
  • Images: hotfix: pin MAVROS to 2.14.0 in the robot and GCS images (0.20.9) #433's snapshot source and version pins are removed from both Dockerfiles. The robot image now requires MAVROS ≥ 2.16. The build fails on 2.15.x, which also silently drops px4_config.yaml plugin parameters (mavros#2294, fixed in 2.16).
  • Wiring goldens: all five committed goldens are regenerated on Isaac Sim with MAVROS 2.16: full_default, lite_default, full_droan, full_droan_cpu and full_macvo. The old 2.15-era goldens recorded the MAVROS inputs as "no publishers". After normalising interface/mavros/mavros → interface/mavros, full_droan, full_droan_cpu and full_macvo each differ from their old golden only by two MAVROS edges, with no node, QoS or type changes elsewhere. full_default and lite_default show no node changes, and no topic changes outside interface/mavros/.
  • GCS: needs no change. It doesn't run MAVROS; action_relay and the Foxglove visualizer subscribe to the robot's interface/mavros/global_position/global, which this keeps in place.

How do you run and use it?

Nothing changes for users. To check the topic layout on any MAVROS version:

airstack up --sim isaac --headless
airstack ready
docker exec airstack-robot-desktop-1 bash -c "source /opt/ros/jazzy/setup.bash; export ROS_DOMAIN_ID=1; \
  dpkg-query -W ros-jazzy-mavros; ros2 topic list | grep -c 'interface/mavros/mavros/'; \
  ros2 topic list | grep -E 'interface/mavros/(state|local_position/odom)$'"

Expected: MAVROS 2.16.0, 0 topics under mavros/mavros/, and /robot_1/interface/mavros/state plus /robot_1/interface/mavros/local_position/odom present.

Testing with PyTest

  • What pytests did you add to ensure the feature is reliable and robust? What metrics are used?

    No new tests. The liveliness and readiness sentinels now accept either UAS node name, and the wiring-snapshot test pins the resulting graph for every stack that has a golden.

  • What's the exact command to run the pytests that test your feature?

    airstack test -m wiring --stack full_default --sim isaacsim --num-robots 1 -v   # likewise for each stack with a golden
    airstack test -m "liveliness or takeoff_hover_land" --sim isaacsim --num-robots 1 -v
  • What are the expected results of the tests?

    Wiring: test_wiring_matches_golden passes for each of the five stacks. Liveliness and takeoff/hover/land pass. MAVROS state and odometry reach robot_interface, so PX4 arms and the drone takes off.

    Results so far: all five snapshots were captured on Isaac Sim with this branch's launch change and MAVROS 2.16. In every run test_sentinel_nodes_present passed. Each full_droan*/full_macvo snapshot failed only against its old golden, with the MAVROS-only drift above, and is now the golden. On top of this branch, liveliness, sensors and takeoff/hover/land pass 20/20 on Project AirSim (the stacked PR). These runs used pytest<9 locally, before hotfix: pin pytest below 9.2 in the test requirements (0.20.10) #434 pinned pytest<9.2. The snapshots ran on images with MAVROS 2.16.0 from the regular apt repository, which is what this branch's images install now that the pin is gone.

Documentation

  • Was mkdocs.yml updated? (y/n)

    n

  • Do the docs have sufficient scope such that a newcomer can easily reproduce and use your feature?

    Release notes describe the fix. No user-facing behaviour changes.

  • Is there sufficient visual media?

    Not applicable.

Versioning

  • Did you make sure to bump the version number in the .env file according to semantic versioning?

    Yes: 0.21.0-dev.17 → 0.21.0-dev.18.

🤖 Generated with Claude Code

andrewjong and others added 2 commits December 2, 2026 17:48
…ROS 2.15-2.16

MAVROS 2.15.0-2.16.x create plugin sub-nodes under the UAS node's fully
qualified name (mavros#2310, fixed in 2.17.0), so with namespace:=mavros
every topic moved to .../interface/mavros/mavros/... where robot_interface,
the stacks and `airstack ready` never look: robots in every simulator
could not reach PX4 (the committed wiring baselines recorded those topics
as "no publishers").

- interface.launch.py picks the MAVROS launch namespace by installed
  version (empty on 2.15/2.16, mavros otherwise).
- readiness and liveliness sentinels accept either UAS node name.
- the robot image requires MAVROS >= 2.16 (2.15.x silently drops
  px4_config.yaml plugin parameters, mavros#2294).
- full_default / lite_default wiring.md regenerated on Isaac Sim.
- VERSION 0.21.0-dev.18 + release note.

Removes 0.20.9's MAVROS 2.14.0 pin (#433): the robot and GCS images install
MAVROS from the regular Jazzy apt repository again, without the ROS
snapshot source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns on Isaac Sim

Captured with the MAVROS namespace fix and MAVROS 2.16 (wiring-snapshot
test, Isaac Sim, one robot). Normalising interface/mavros/mavros ->
interface/mavros, each graph differs from its old golden only by MAVROS
edges: no node, QoS or type changes outside interface/mavros. source-sha
set by hand (the test runner can't read git metadata in a worktree).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andrewjong
andrewjong force-pushed the fix/mavros-2.15-namespace branch from fdd14a8 to b5aa9ae Compare December 2, 2026 22:48
@andrewjong
andrewjong marked this pull request as ready for review December 2, 2026 22:50
@andrewjong
andrewjong merged commit f872c82 into develop Dec 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant