-
Notifications
You must be signed in to change notification settings - Fork 15k
uxrce_dds: support multi-instance uORB topics #26305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
haumarco
wants to merge
4
commits into
main
Choose a base branch
from
dds-multi-topic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
This was referenced Jan 20, 2026
Member
beniaminopozzan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add dedicated message type for auxiliary global position sources. Separates aux_global_position from VehicleGlobalPosition topic. Includes source field for identifying position source type.
Add per-instance parameters (ID, CTRL, MODE, DELAY, NOISE, GATE) for up to 4 auxiliary global position sources.
- Refactor aux_global_position into manager + per-source AgpSource class - Support up to 4 independent AGP sources simultaneously - Dynamic parameter lookup without boilerplate switch statements - Per-source state tracking and fusion logic - Update simulator to use new AuxGlobalPosition message
Enable DDS bridge to handle multi-instance uORB topics by mapping multiple topic instances to a single DDS topic with instance field.
e12ad30 to
7e8de5e
Compare
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 2016 byte (0.1 %)]px4_fmu-v6x [Total VM Diff: 1968 byte (0.1 %)]Updated: 2026-01-21T16:40:49 |
bkueng
reviewed
Jan 22, 2026
| } | ||
|
|
||
| ekf.resetAidSourceStatusZeroInnovation(aid_src); | ||
| int32_t AuxGlobalPosition::getModeParam(int instance) |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I see these can be called frequently and thus should be cached (specifically the param_get(param_find calls).
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.
This PR is part of the split up of #26151
Solved Problem
The DDS bridge could only map single-instance uORB topics to DDS topics. This prevented external systems from publishing multiple instances of the same message type (e.g., multiple positioning sources) through separate DDS topics.
Solution
This PR adds multi-instance uORB topic support to the DDS bridge:
Topic mapping configuration
instancesfield to specify number of topic instances_A,_B,_C,_D) for DDS topic namesCode generation updates
PublicationMultiarrays for multi-instance subscriptions/fmu/in/aux_global_position_A→aux_global_positioninstance 0Changelog Entry
For release notes:
Test coverage
Tested with
aux_global_positiontopic configured for 4 instances.Additional Notes
This is a prerequisite for multi-instance AGP fusion in EKF2. The same pattern can be extended to other multi-instance topics (e.g., distance sensors, external odometry sources).