Skip to content

feat(contract): localization pose is nav_msgs/Odometry on the stream QoS - #3

Open
Latuuuuu wants to merge 1 commit into
developfrom
feat/contract-odometry-pose
Open

Latuuuuu wants to merge 1 commit into
developfrom
feat/contract-odometry-pose

Conversation

@Latuuuuu

Copy link
Copy Markdown
Contributor

feat(contract): localization pose is nav_msgs/Odometry on the stream QoS

What / Why

LOCALIZATION_POSE (/robot/localization/pose) now matches what the localization and navigation
templates actually use:

  • type geometry_msgs/msg/PoseWithCovarianceStamped → nav_msgs/msg/Odometry. The 2026
    final_pose is an Odometry (fusion_node.cpp publishes it; child_frame_id = robot frame,
    pose.covariance from the EKF). Eurobot-Template-Localization and Eurobot-Template-Navigation
    remap final_pose onto this name in their bringup.launch.py.
  • qos sensor → stream (reliable, volatile, depth 10). Localization publishes and Nav2
    subscribes reliable / depth 10. With sensor (best_effort), a publisher that followed the
    contract would never match Nav2's reliable subscribers, silently.

Also: test_contract.cpp checks the sensor profile on HEARTBEAT and adds a stream test on
LOCALIZATION_POSE; docs/reference/config.md lists the stream profile (it said three
profiles); docs/contract.md regenerated; CHANGELOG entry.

How it was tested

  • ditx test (unit) passes
  • ditx test --integration passes (all domains + contract check)
  • Ran on the sim robot: ditx deploy -d <domain> -r sim
  • Ran on a real robot: ditx deploy -d <domain> -r <robot>, overlay id: ...

Interfaces changed?

  • No
  • Yes: contract.yaml / .msg / .srv changed. The base fingerprint changes, so every
    domain must be rebuilt and robots need the new base image (develop/stable) before
    overlays built on it can run. Owners of affected domains are tagged below.

Risk / rollback

A node that still publishes or subscribes /robot/localization/pose as PoseWithCovarianceStamped
no longer connects (type mismatch). None is launched in the current templates. Rollback: revert this
PR, then rebuild the base image and every domain.

Checklist

  • ditx lint is clean
  • CHANGELOG.md updated under Unreleased (if user-visible)
  • Docs / README updated (if behaviour or usage changed)
  • I can explain every line of this diff, including AI-generated parts

@Latuuuuu
Latuuuuu requested a review from SeanChangX as a code owner November 25, 2026 12:58

@SeanChangX SeanChangX left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

This branch has not been deployed

No deployments
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.

2 participants