AGENT SKILL

simulation-setup

Prepare and diagnose the ROS Noetic, Gazebo, catkin, launch, and Velodyne runtime used by DRL-robot-navigation without claiming unavailable native simulator verification.

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

01 前言 Front Matter

name
simulation-setup
license
MIT
metadata
{ "disco-role": "operating" }
description
Prepare and diagnose the ROS Noetic, Gazebo, catkin, launch, and Velodyne runtime used by DRL-robot-navigation without claiming unavailable native simulator verification.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Simulation setup

Use this skill when a Researcher must make the ROS/Gazebo simulator available, understand how the repository starts it, or diagnose a startup, package, resource, sensor, display, or process-lifecycle failure. This is an operating guide, not a training or reward guide.

Contract and limits

  • Target baseline: ROS Noetic on Ubuntu 20.04, with the Python/PyTorch versions stated by 'the project README. The simulator also depends on Gazebo ROS packages and a catkin toolchain.
  • The normal build is catkin_make_isolated from the workspace root. Source the ROS and workspace setup files in every shell that uses roslaunch, rospack, or Gazebo.
  • The composite launch is the repository's TD3/assets/multi_robot_scenario.launch; its resolved package launch files and sensor xacro are summarized in references/launch-topology.md.
  • Full ROS/Gazebo/roscore/roslaunch/catkin native verification was unavailable in the extraction environment. The bundled checker is static and safe: it never starts ROS, Gazebo, Docker, xacro, or a long-lived process. Do not report native runtime success from its output.
  • Do not silently change launch files, substitute a 2-D laser for the Velodyne topic, or claim that a headless Docker build is a verified workaround. Route navigation state, reward, TD3, and policy behavior to the sibling skills.

First response to a setup request

  1. Identify the execution boundary: a supported Ubuntu/ROS host, a ROS Noetic container, or a host without ROS. Ask for a supported provisioned environment when /opt/ros/noetic and the ROS commands are absent; do not fake them with pip packages.

  2. Run the bundled, read-only check from this skill directory:

    python3 scripts/check_ros_prerequisites.py --workspace <catkin-workspace>
    

    Add --json for machine-readable diagnostics. It checks command presence, the ROS prefix, workspace paths, and environment values; it does not launch anything.

  3. In a shell intended for the run, source the installed ROS setup and then the workspace setup (the latter is produced only after a successful build):

    source /opt/ros/noetic/setup.bash
    cd <catkin-workspace>
    source devel_isolated/setup.bash
    

    Keep ROS_MASTER_URI, ROS_HOSTNAME, and the simulator port consistent across every shell. If the ROS prefix is missing, follow the safe path in references/troubleshooting.md.

  4. Configure the resource path before Gazebo resolves TD3.world and mesh assets. Preserve any existing entries rather than replacing them:

    export ROS_HOSTNAME=localhost
    export ROS_MASTER_URI=http://localhost:11311
    export ROS_PORT_SIM=11311
    export GAZEBO_RESOURCE_PATH=<catkin-workspace>/src/multi_robot_scenario/launch${GAZEBO_RESOURCE_PATH:+:$GAZEBO_RESOURCE_PATH}
    
  5. Build manually from the workspace root when the prerequisites are present:

    catkin_make_isolated
    

    Review the first package or dependency failure; do not paper over it by copying generated devel* files from another machine.

Startup topology and expected contracts

  • multi_robot_scenario.launch includes empty_world.launch, which starts gzserver with TD3.world, then includes pioneer3dx.gazebo.launch for model r1 at the origin.

  • The robot launch expands pioneer3dx.xacro, spawns r1, and starts robot/joint state publishers. The xacro wires the diff-drive plugin (/r1/cmd_vel, /r1/odom) and the CPU Velodyne VLP-16 (/velodyne_points).

  • The composite also starts RViz unconditionally using pioneer3dx.rviz; its gui arg does not disable that RViz node. A display-less Docker shell therefore needs an explicitly headless-safe launch choice; the documented Docker path is not native verification and is not automatically repaired by this skill.

  • Confirm package resolution before debugging Gazebo:

    rospack find multi_robot_scenario
    rospack find velodyne_description
    rospack find velodyne_gazebo_plugins
    

    The standalone pioneer3dx.urdf.launch contains a stale multi_robot_tutorial package reference and is not the composite path. Prefer the composite topology unless a user intentionally maintains a corrected standalone launch.

Velodyne readiness

The robot's VLP-16 macro uses CPU ray mode (gpu:=false), 16 vertical lasers, 360 horizontal samples, 10 Hz, horizontal angles [-1.57, 1.57], and topic /velodyne_points. The plugin emits sensor_msgs/PointCloud2 with x, y, z, intensity, ring, and time fields. The environment subscribes to the absolute topic and therefore will not receive data from an arbitrary remapped or 2-D laser topic. The plugin activates sensor production when it has a subscriber, so check the subscriber and topic before treating an empty cloud as a Gazebo failure. See references/velodyne-sensor.md for a diagnostic order.

Headless/container guidance

The README documents docker build -t drl_noetic ., an interactive docker run, and starting training inside the container. The Dockerfile sets software rendering, GAZEBO_HEADLESS_RENDERING=1, an empty DISPLAY, ROS localhost values, and a launch resource path, then clones a named remote branch and builds with catkin_make. Treat this as a reproducible starting point only: it performs a network-dependent build, follows a branch rather than this snapshot, has no persistence with --rm, and the composite still contains an unconditional RViz node. Read references/container.md before using it. Do not add an automatic Docker build/run helper or an infinite training/launch script.

Handoff and evidence

Report which checks passed, which are missing, and whether the result is host or container based. Keep these separate:

  • static prerequisites and package/path evidence;
  • successful catkin build and generated setup file;
  • actual roscore/roslaunch/Gazebo startup;
  • live /velodyne_points, /r1/odom, and Gazebo service evidence.

The current source snapshot supports the first category and documents the others, but the available environment did not support the final three. Use the troubleshooting reference for xacro/package errors, missing resources, Gazebo/RViz display problems, plugin loading, and orderly shutdown. If the request is about observation binning, reward, action scaling, or TD3 parameters, hand it to the corresponding sibling sub-skill instead of expanding this one.

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