dim_slam: one module wrapping the merged cuVSLAM+fusion binary - #3595
Draft
jeff-hykin wants to merge 5 commits into
Draft
dim_slam: one module wrapping the merged cuVSLAM+fusion binary#3595jeff-hykin wants to merge 5 commits into
jeff-hykin wants to merge 5 commits into
Conversation
…d off The C++ module was replaced upstream by a Rust one, which moved the pose graph and loop closure downstream into the fusion filter, so enable_slam and the corrected_odometry port no longer have anything behind them. publish_tf exists because the filter publishes odom->base_link too. Two publishers on that edge race, and giving this module its own root instead leaves base_link with two parents, which is a malformed tree rather than a redundant one. Off, this publishes odometry alone and the filter owns the edge.
The Rust filter shipped in the same derivation as cuvslam_odometry but had no Python side, so nothing in dimos could run it. Every source publishes onto one sources port and is told apart by header.frame_id, which makes adding a source a config change rather than a port change. imu_init_samples carries the weight here: on a 517 s Alfred drive, leaving the raw gyro bias in costs 19.8 m of final error against 1.6 m with it removed, which is worse than fusing no IMU at all.
The Rust filter gained a use_imu switch so it can be seeded level from the first source message and coast between measurements rather than propagating on IMU. `#[native_config]` supplies no defaults and rejects unknown keys, so the Python config has to carry the field for the module to start at all. Off is worth having on Alfred: measured against point-lio over the 517 s drive, wheel and cuVSLAM fused without the IMU lands at 3.53 m, while the same pair with the IMU added lands at 71.32 m.
The native module publishes a range-gated depth_cloud and takes the gate from two
config fields. `#[native_config]` supplies no defaults and rejects unknown keys, and
the runtime rejects a module whose declared ports do not match the binary's, so
without both the field pair and the port the process died on startup every run:
failed to deserialize config: missing field `depth_cloud_min_range`
topics do not match module ports: missing ["depth_cloud"]
That killed CuvslamOdometry silently in alfred-mls-nav — the stack came up, the
remaining modules ran, and the fusion filter simply never saw a visual source. With
both in place cuvslam publishes odometry at 30 Hz on Alfred.
dimSLAM merged its two binaries into one dim_slam executable that feeds the tracker's pose into the fusion filter in-process, so the two wrapper modules collapse into one DimSlam module with the flat union of both configs. The internal visual odometry stream no longer crosses the wire; external sources still arrive on the sources input, told apart by header.frame_id.
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## jeff/feat/cuvslam #3595 +/- ##
====================================================
Coverage ? 75.74%
====================================================
Files ? 1268
Lines ? 122239
Branches ? 11255
====================================================
Hits ? 92591
Misses ? 26580
Partials ? 3068
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
Stacked on #3391 (jeff/feat/cuvslam).
dim_slamexecutable (dimensionalOS/dimSLAM jeff/feat/dim_slam); the CuvslamOdometry + OdometryFusion wrappers collapse into oneDimSlammodule with the flat union of both configssources, split by header.frame_iddim-slamreplacescuvslam-odometry+odometry-fusion