AGENT SKILL

pypose

Use PyPose for differentiable robotics with PyTorch: Lie-group geometry, state estimation and control modules, dense or sparse nonlinear optimization, projection/spline utilities, and trajectory evaluation; route each task to the matching workflow and backend contract.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
pypose
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use PyPose for differentiable robotics with PyTorch: Lie-group geometry, state estimation and control modules, dense or sparse nonlinear optimization, projection/spline utilities, and trajectory evaluation; route each task to the matching workflow and backend contract.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

PyPose

PyPose is a PyTorch-based library for differentiable robotics, Lie groups, and physics-based optimization. Use this skill when a task mentions PyPose, pypose, LieTensor, SO3/SE3, pose graphs, bundle adjustment, filters, MPC, IMU preintegration, ICP/PnP, splines, reprojection, APE/RPE, or second-order optimization.

Start here

  1. Install the public package and a compatible PyTorch 2.x build: python -m pip install pypose (or install the repository package with its requirements/runtime.txt when working from a source checkout).
  2. Check the package before writing a larger experiment: python scripts/check_pypose_env.py.
  3. Decide the representation, module, objective, and device first. Keep all related tensors on one device and in a compatible floating dtype.
  4. Read exactly one focused sub-skill below, then its nearest API/workflow references and troubleshooting guide. Use bundled smoke scripts for a small deterministic check before a dataset-scale run.
import torch
import pypose as pp

xi = pp.se3([0.1, -0.2, 0.05, 0.02, 0.03, -0.01])
pose = xi.Exp()
points = torch.randn(8, 3)
transformed = pose.Act(points)
assert transformed.shape == points.shape

Route by task

  • lie-tensor — SO3/SE3/Sim3/RxSO3 groups and algebras; typed construction, Exp/Log, composition, inverse, point action, conversions, batching, gradients, and manifold parameters. Read sub-skills/lie-tensor/SKILL.md.
  • robotics-modules — dynamics and systems, EKF/UKF/PF, LQR/MPC, IMUPreintegrator, EPnP, ICP, and GeodesicLoss. Read sub-skills/robotics-modules/SKILL.md.
  • optimization — residual modules, GN/LM, solvers, damping strategies, robust kernels/correctors, schedulers, Jacobians, and BAE/CUDA sparse LM. Read sub-skills/optimization/SKILL.md.
  • geometry-evaluation — camera projection and reprojection, point-set utilities, splines, downsampling, trajectory association and APE/RPE. Read sub-skills/geometry-evaluation/SKILL.md.

If a request crosses routes, normalize the data and transform conventions in lie-tensor first, then use the owning workflow: for example, SE(3)-parameter LM belongs to optimization, while an EKF over SE(3) states belongs to robotics-modules.

Device and optional backend policy

The base package requires PyTorch 2.x and runs on CPU or a compatible PyTorch accelerator. CUDA may accelerate ordinary operations, but do not call a CPU smoke proof of CUDA support. The sparse Jacobian/sparse LM route is different: it requires CUDA and the optional bae backend, with the verified compatible release bae==0.2.1; it has no CPU substitute. Read optimization/references/sparse-optimization.md before selecting sjac, psjac, PCG, or sparse=True.

Use the root diagnostic for an import/version/device report. Use sub-skills/optimization/scripts/sparse_lm_smoke.py with --check-only when sparse readiness is a hard requirement. If CUDA or BAE is absent, narrow the task to dense optimization or record the sparse capability as unverified; do not silently switch to CPU and claim equivalent coverage.

Shared references and maintenance

  • Read references/troubleshooting.md for package import, PyTorch compatibility, device, optional dependency, and general shape failures.
  • Read references/repo-provenance.md before deciding whether this skill matches a repository revision; refresh it when the package version, public entry points, or evidence baseline changes.
  • references/repo-routing-metadata.json contains structured placement data for the managed repo-skill router; it is metadata, not a second usage guide.

The runtime files are self-contained. Original examples, tests, notebooks, data downloads, and plotting programs informed the references but are not runtime dependencies. Prefer the bundled helpers and small in-memory fixtures for verification. Do not copy private environment paths, activation commands, or checkout-specific imports into a Researcher task.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351