ir-sim
This skill routes agents through IR-SIM's YAML robot simulation, navigation, sensing, mapping, planning, rendering, and extension workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ir-sim
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- This skill routes agents through IR-SIM's YAML robot simulation, navigation, sensing, mapping, planning, rendering, and extension workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-surface.md2.8 KB
- 参考文档references/repo-provenance.md2.4 KB
- 参考文档references/repo-routing-metadata.json413 B
- 参考文档references/troubleshooting.md3.9 KB
- 脚本scripts/check_env.py1.6 KB
- 脚本scripts/run_headless.py2.5 KB
03 SKILL.md 正文
IR-SIM
Use this repo skill when a task names IR-SIM/ir-sim, asks for a lightweight
Python robot simulator, or involves YAML-driven mobile-robot navigation,
collision detection, LiDAR/FMCW sensing, occupancy maps, RVO/SFM/ORCA,
programmatic path planning, or external controller integration.
Install and verify
IR-SIM 2.10.2 supports Python 3.10+. Install the base package for CPU/headless work, then verify the import:
python -m pip install ir-sim==2.10.2
python -c "import irsim; print(irsim.__version__)"
Use python -m pip install 'ir-sim[keyboard]' only for live pynput keyboard
input. Add imageio[ffmpeg]/system ffmpeg for MP4 output and pyrvo for ORCA;
none is needed for the core simulator, headless Matplotlib, maps, sensors,
behaviors, or planners. Read troubleshooting
when installation or optional imports fail. Run
scripts/check_env.py --help and then python scripts/check_env.py for a
read-only package/optional-dependency diagnostic from any working directory.
Route by task
| Task intent | Read |
|---|---|
| Create/step/reset/reload/render/close worlds, headless or 3D runs, external stepping, multiple environments | simulation-environments |
| Author YAML, add robots/obstacles, choose shapes/kinematics, distributions, collision policy, inspect object state | scene-configuration |
| Configure LiDAR/FMCW/FOV/fog, inspect scans, build image/Perlin occupancy maps | sensing-and-mapping |
| Choose dash/RVO/SFM/ORCA, avoid agents/lines, run A*/JPS/RRT/RRT*/PRM planners | navigation-and-planning |
| Register custom behaviors/kinematics/map generators, connect an external controller, use keyboard/mouse control | extension-and-control |
For a task that spans routes, start with the lifecycle route, then follow its scene, sensing, planning, or extension links. The cross-cutting public surface is summarized in api-surface.md.
Safe operating defaults
- Prefer an explicit YAML path and
display=False; setMPLBACKEND=Aggbefore importing Matplotlib-dependent code in batch environments. - Use
seed=<integer>orirsim.util.random.set_seed()when comparing random scenes. IR-SIM's RNG is process-level; separate processes are needed for independent parallel streams. - In internal mode, call
env.step(action)or let configured behaviors act. In external mode, update every controlled object's state and velocity, then callenv.step()with no action; useenv.refresh()for a no-clock sync. - Bound every simulation/planning loop and close environments in
finally. Never assume a planner result is usable: handleNone, empty arrays, blocked endpoints, and sampling failure explicitly. - Keep source-repository examples as evidence only. Use the bundled helpers linked from the sub-skills; they create tiny temporary fixtures and do not require this checkout.
Scope and freshness
This graph covers public package use, not maintainer release/CI workflows,
large datasets, live desktop verification, or project-specific CBF/QP systems.
Read repo-provenance.md before trusting the
skill for a changed checkout; if the commit, dirty state, package version, or
public evidence paths differ, use refresh-repo-skill.
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).