AGENT SKILL

sensing-and-mapping

This skill guides users through IR-SIM LiDAR, FMCW sensing, field-of-view fog, and occupancy-map workflows.

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

01 前言 Front Matter

name
sensing-and-mapping
license
MIT
metadata
{ "disco-role": "operating" }
description
This skill guides users through IR-SIM LiDAR, FMCW sensing, field-of-view fog, and occupancy-map workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Sensing and mapping

Use this route when a task involves lidar2d, fmcw_lidar2d, scan payloads, radial velocity, FOV sensing, fog-of-map exploration, image/Perlin occupancy grids, or a map passed to a planner. The package target is ir-sim==2.10.2 with Python 3.10 or newer.

Route the task

  1. Start with the sensor contract in sensor-api.md when the question is about YAML fields, env.get_lidar_scan(id), arrays, offsets, noise, or update timing.
  2. Start with map-api.md for image/Perlin generators, resolve_obstacle_map, build_grid_from_generator, World.get_map, resolution, downsampling, collision, or planner handoff.
  3. Use troubleshooting.md for installation, optional backends, missing map data, malformed sensor/map configuration, and stale readings after manual state changes.
  4. Run the bundled deterministic checks from arbitrary working directories: python scripts/scan_smoke.py --help, then python scripts/scan_smoke.py --sensor-type lidar2d (or fmcw_lidar2d), and python scripts/map_smoke.py. They create only temporary tiny fixtures.

A scan belongs to a robot index, not a sensor index: env.get_lidar_scan(id) selects env.robot_list[id]. If one object has both sensor classes, inspect env.robot_list[id].sensors and call the selected sensor's get_scan() rather than assuming the convenience getter selected the desired class. The first LiDAR-like sensor is also exposed as obj.lidar by the object layer.

Scene/object YAML and shapes belong to scene-configuration; environment lifecycle, headless rendering, and external stepping belong to simulation-environments; planner selection and path algorithms belong to navigation-and-planning. The package must be installed/importable before using any route; do not depend on an original checkout, source example, private environment path, or bundled large map asset at runtime.

Operating contracts

  • Sensor lookup: env.get_lidar_scan(id=0) takes a robot-list index, not a sensor index. If one robot carries both classes, select the instance from env.robot_list[id].sensors by sensor.sensor_type and call its get_scan().
  • Payload branching: standard lidar2d returns ranges plus Cartesian velocity and no valid/radial_velocity; fmcw_lidar2d returns ranges, boolean valid, and scalar radial_velocity, and removes velocity. Both keep the scalar angle/timing metadata and intensities=None.
  • Map handoff: use env.get_map(resolution=...) once for a planner and inspect grid, grid_resolution, and world_offset before choosing planner parameters. The planner constructor and planning() contract belong to navigation-and-planning, not this route.

Minimal access pattern

scan = env.get_lidar_scan(id=0)
ranges = scan["ranges"]
points = env.robot_list[0].get_lidar_points()  # local 2 x N, or None

Use scan["valid"] and scan["radial_velocity"] only for an FMCW scan. A standard scan instead exposes a Cartesian velocity array (usually zeros) and has no validity mask or radial-velocity key. Full keys, timing semantics, map construction, and collision details are in the linked references.

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