Repository navigation
fix(interface): keep MAVROS topics at interface/mavros/<topic> on MAVROS 2.15+ (follow-up to #433) - #436
Merged
Conversation
…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
force-pushed
the
fix/mavros-2.15-namespace
branch
from
December 2, 2026 22:48
fdd14a8 to
b5aa9ae
Compare
andrewjong
marked this pull request as ready for review
December 2, 2026 22:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What features did you add and/or bugs did you address?
Which GitHub issue does this address?
The follow-up named in hotfix: pin MAVROS to 2.14.0 in the robot and GCS images (0.20.9) #433 ("Support 2.15 and later by fixing the remaps for the plugin nodes, then remove the pin and the snapshot source").
Additional description if not fully described in the GitHub issue
MAVROS 2.15.0–2.16.x create plugin sub-nodes under the UAS node's fully qualified name (mavros#2310, fixed upstream in 2.17.0, not yet in the Jazzy apt repository). With
namespace:=mavros, every MAVROS topic and service lands under/<robot>/interface/mavros/mavros/..., while robot_interface, the stacks,airstack readyand the GCS listen on/<robot>/interface/mavros/.... hotfix: pin MAVROS to 2.14.0 in the robot and GCS images (0.20.9) #433 restores the old layout by pinning MAVROS 2.14.0. This PR makes the stack correct on any MAVROS release instead, so the pin can go.Removes hotfix: pin MAVROS to 2.14.0 in the robot and GCS images (0.20.9) #433's pin. Rebased onto develop after the hotfix: pin MAVROS to 2.14.0 in the robot and GCS images (0.20.9) #433/hotfix: pin pytest below 9.2 in the test requirements (0.20.10) #434 sync. The robot and GCS images install MAVROS from the regular Jazzy apt repository again (2.16.0 today): hotfix: pin MAVROS to 2.14.0 in the robot and GCS images (0.20.9) #433's ROS snapshot source and its 2.14.0/mavlink version pins are removed from
Dockerfile.robotandDockerfile.gcs.Please add videos and images to demonstrate the feature.
No visual change. Evidence is the ROS graph; see Testing below.
How did you implement it?
interface.launch.py:mavros_launch_namespace()reads the installed MAVROS version from itspackage.xml. On 2.15.x and 2.16.x it passes an empty launch namespace, which puts the plugin topics atinterface/mavros/<topic>(the UAS node itself becomesinterface/mavros). Every other release keepsnamespace:=mavros. If MAVROS can't be found or parsed, it falls back tomavros.airstack ready(.airstack/modules/ready.sh) and the liveliness test accept either UAS node name (.../interface/mavros/mavrosor.../interface/mavros).px4_config.yamlplugin parameters (mavros#2294, fixed in 2.16).full_default,lite_default,full_droan,full_droan_cpuandfull_macvo. The old 2.15-era goldens recorded the MAVROS inputs as "no publishers". After normalisinginterface/mavros/mavros→interface/mavros,full_droan,full_droan_cpuandfull_macvoeach differ from their old golden only by two MAVROS edges, with no node, QoS or type changes elsewhere.full_defaultandlite_defaultshow no node changes, and no topic changes outsideinterface/mavros/.action_relayand the Foxglove visualizer subscribe to the robot'sinterface/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:
Expected: MAVROS 2.16.0,
0topics undermavros/mavros/, and/robot_1/interface/mavros/stateplus/robot_1/interface/mavros/local_position/odompresent.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?
What are the expected results of the tests?
Wiring:
test_wiring_matches_goldenpasses 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_presentpassed. Eachfull_droan*/full_macvosnapshot 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 usedpytest<9locally, before hotfix: pin pytest below 9.2 in the test requirements (0.20.10) #434 pinnedpytest<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
.envfile according to semantic versioning?Yes: 0.21.0-dev.17 → 0.21.0-dev.18.
🤖 Generated with Claude Code