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-09-03
- Stars
- ★ 351
- Forks
- 27
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 资源文件 5
- 参考文档references/api-reference.md7.2 KB
- 参考文档references/troubleshooting.md5.6 KB
- 参考文档references/workflows.md5.0 KB
- 脚本scripts/icpslam_smoke.py3.8 KB
- 脚本scripts/pointfusion_smoke.py3.9 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
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).