odometry-slam
This skill guides a Researcher through gradSLAM odometry selection, ICP configuration, map fusion, and small deterministic RGB-D SLAM workflows.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- odometry-slam
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- This skill guides a Researcher through gradSLAM odometry selection, ICP configuration, map fusion, and small deterministic RGB-D SLAM workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md7.2 KB
- 参考文档references/troubleshooting.md5.6 KB
- 参考文档references/workflows.md5.0 KB
03 SKILL.md 正文
Odometry and SLAM
Use this skill when a task must localize RGB-D frames, build a global
Pointclouds map, or choose between known poses, point-to-plane ICP, and
GradICP. Start with the input contract in
the API reference, then select a workflow from
the workflow guide. The bundled smoke programs are
CPU-only, in-memory, and do not download data or open a viewer:
python scripts/pointfusion_smoke.py --helppython scripts/icpslam_smoke.py --help
Route the odometry method
- Choose
gtwhen each frame has trustworthyposes. It is the deterministic baseline and is the appropriate first check for a new RGB-D/data pipeline. - Choose
icpfor non-differentiable point-to-plane LM alignment when the consecutive clouds have sufficient overlap, usable map normals, and a good initial pose. - Choose
gradicpwhen the alignment path must retain the package's differentiable GradLM-style update. Treat this as a differentiable odometry provider, not as proof that every map-building operation is differentiable. ICPSLAMandPointFusionaccept only the exact stringsgt,icp, andgradicp; reject any other value before constructing a long run.
Prepare inputs
- Keep RGB-D tensors in one device and dtype. The normal channels-last form is
colors: (B,L,H,W,3),depths: (B,L,H,W,1), intrinsics(B,1,4,4), and, when available, poses(B,L,4,4). Passchannels_first=Trueonly for the corresponding(B,L,C,H,W)tensors. - Use a
RGBDImagesobject for frames and aPointcloudsobject for map or live clouds. Point lists are(N,3)and normals must have the same shape as their point list. Use sequence slices such asframes[:, t]for a one-frame object. - For ICP or GradICP, ensure the map has normals. Invalid depths become zero vertices and can produce zero normals or no correspondences; use valid, non-degenerate depth geometry and inspect the resulting point counts.
- Start with
dsratio=1or2on a tiny test, then increase it only after correspondence counts and pose output are sensible.downsample_rgbdimagesand the SLAM localization path require a one-frame RGB-D object.
Run SLAM safely
ICPSLAM(odom=..., dsratio=..., numiters=..., damp=..., dist_thresh=..., lambda_max=..., B=..., B2=..., nu=..., device=...)returns(pointclouds, poses); poses are(B,L,4,4)and the map contains one global cloud per batch item.PointFusionhas the same odometry/solver arguments and additionally usesdist_th,angle_th(degrees), andsigmafor correspondence filtering and confidence-weighted fusion. Its map contains normals, colors, and confidence features when valid depths are present.- For
forward(frames), give a sequence. Forstep, give a one-framelive_frame; passprev_frameforicp/gradicp, and passNoneon the first frame. Withgt, poses on the live frame are used directly andprev_frameis not the odometry input. - Run a
gtsmoke first, then the same fixture withicpandgradicp. Check pose and padded map shapes, finite values, device, and point counts before interpreting trajectory quality.
Differentiability and devices
GradICP keeps tensor operations in the update path and is intended for
differentiable odometry. Nearest-neighbor index selection, conditionals,
point-cloud padding, and map fusion still limit smooth end-to-end gradients;
this skill does not claim a full differentiable SLAM graph. ICP uses a
trust-region/LM branch and is primarily an alignment routine. Ground truth
computes T = inverse(T1) @ T2 from the supplied poses. Keep CPU as the
portable baseline; an accelerated device is additive evidence, not implied by
successful CPU execution.
External data boundary
TUM, ICL, and ScanNet workflows need a user-provided dataset root and the
adapter's expected files/metadata. They are not replaced by the tiny smoke
fixture. Ask for the dataset layout and pose/depth conventions, validate one
batch into the RGB-D shape contract, and only then hand that batch to
PointFusion or ICPSLAM. Do not download data, open GUI viewers, or claim
that an external sequence was validated when only a synthetic fixture ran.
Recovery
For extension failures, invalid odometry choices, missing normals, empty correspondences, shape/device mismatches, fusion thresholds, and external-data handoff, use troubleshooting. For exact signatures, output shapes, solver controls, and fusion helper contracts, use the API reference. The scripts are intentionally small adapters, not replacements for dataset validation or benchmark runs.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.