Skip to content

Integrate MACSLAM Map v3 with passive pipeline - #3

Open
Zhaozhpe wants to merge 1 commit into
mainfrom
feature/passive_integration
Open

Integrate MACSLAM Map v3 with passive pipeline#3
Zhaozhpe wants to merge 1 commit into
mainfrom
feature/passive_integration

Conversation

@Zhaozhpe

@Zhaozhpe Zhaozhpe commented Aug 1, 2026

Copy link
Copy Markdown

Summary

  • Update submodule MACSLAM's repository URL.
  • mac_ros2/MACVO_torch.py
    • Adapt the torch coordinator wrapper to the MACSLAM Map v3 API.
    • Publish dense points with per-point covariance in the current camera frame.
  • mac_ros2/config/offroad_thermal.yaml: Adapt the thermal MACVO configuration to the Map v3 schema.

Why

The previous ROS adapter targeted the old MACVO graph API. The passive mapping pipeline also needs point covariance so downstream BEV processing can optionally account for positional uncertainty.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the ROS2 torch coordinator wrapper and configuration to work with MACSLAM Map v3, including publishing dense map points with per-point covariance in the current camera frame for downstream passive mapping / BEV consumers.

Changes:

  • Refactors mac_ros2/MACVO_torch.py to use Map v3 data structures, transform dense map points into the current camera frame, and publish covariance alongside color.
  • Updates mac_ros2/config/offroad_thermal.yaml to the Map v3 configuration schema and adds adapter-owned settings (resize + bounded-map reset interval).
  • Switches the mac_ros2/mac_slam submodule remote URL.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
mac_ros2/MACVO_torch.py Adapt coordinator wrapper to Map v3 API; extract/transform dense mapping points + covariance in camera frame; add bounded-map reset logic.
mac_ros2/config/offroad_thermal.yaml Migrate thermal config to Map v3 schema and add Adapter settings used by the wrapper.
.gitmodules Update MACSLAM submodule remote URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mac_ros2/MACVO_torch.py
Comment on lines +157 to +160
published_frame_id = self.frame_id - 1
if self._last_published_frame_id == published_frame_id:
assert self._cached_output is not None
return self._cached_output
Comment thread mac_ros2/MACVO_torch.py
Comment on lines +114 to +120
MACVO.is_valid_config(cfg.Odometry)
assert isinstance(cfg.Adapter.map_reset_interval, int), (
"Adapter.map_reset_interval must be an integer"
)
assert cfg.Adapter.map_reset_interval >= 0, (
"Adapter.map_reset_interval must be a non-negative integer"
)
Comment thread .gitmodules
Comment on lines 4 to +6
[submodule "mac_ros2/mac_slam"]
path = mac_ros2/mac_slam
url = git@github.com:castacks/MAC-SLAM-Stable.git
url = git@github.com:MAC-VO/MACSLAM-internal.git
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