ROS AGENTS.md

ROS AGENTS.md is an instructions file for Codex, OpenCode from lawliet206/ROS. It costs 1,724 tokens per session, scanned A, original, MIT.

Project instructions for a ROS-based two-wheel robot that uses sensors, motors, mapping, navigation, and simulation. ROS is software for building robot applications, while SLAM creates maps as a robot moves.

In plain words
What is it for?
They help agents safely modify robot bring-up, sensor and motor code, mapping, navigation, simulation, and related documentation without changing required environment versions.
Why use it?
They give coding agents the project’s structure, fixed software versions, hardware layout, and required build and launch conventions.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lawliet206/ros/agents-md
Clone the repo
git clone --depth 1 https://github.com/lawliet206/ROS

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ROS AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lawliet206/ros/agents-md.svg)](https://agentmods.dev/instructions/lawliet206/ros/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lawliet206/ros/agents-md"><img src="https://agentmods.dev/badge/instructions/lawliet206/ros/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,724 This file is loaded in full into every session.
When invoked 1,724 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01724 $0.01724
Opus 5 $0.00862 $0.00862
Sonnet 5 $0.00345 $0.00345
Haiku 4.5 $0.00172 $0.00172

Measured 6d ago against content hash d18e65c416ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ROS AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

本文件是给 Coding Agent(Claude Code / Cursor / OpenCode 等)的项目级指南。 目标:让 Agent 在不破坏现有功能的前提下,正确、安全地修改本仓库。

项目是什么

ROS Noetic + ESP32 + J1900 + LiDAR 两轮差速自主移动机器人平台

  • 三机架构:PC(ROS Master,跑 SLAM/导航/视觉)←WiFi→ J1900(车载,雷达驱动 + 摄像头采集)←USB→ ESP32(电机 PID + 编码器里程计 + IMU,rosserial)。
  • 核心功能:S9 雷达 SLAM 建图(gmapping)、AMCL + move_base + TEB 多点导航、EKF 里程计/IMU 融合、视觉+雷达融合人体跟随、Gazebo 仿真。

环境版本(不可随意升级/降级)

组件 版本
OS Ubuntu 20.04 (Focal)
ROS Noetic(PC 与 J1900 均安装)
Python 3.8(ROS 依赖)+ 3.x(视觉依赖 ultralytics/cv2 可在 PC 单独装)
固件 IDE Arduino IDE / arduino-cli,支持 ESP32 core 2.x
编译 catkin_make(不用 catkin tools 的混合布局)

目录结构(catkin 工作空间根 = 仓库根)

src/robot_bringup/   # ★ 实物包(PC 与 J1900 都要编译部署)
  launch/            # bringup / slam / navigation / follow / follow_vision / ekf / odom_ekf
  scripts/           # robot_start.sh j1900_start.sh + 6 个 Python 节点
  config/            # ekf.yaml patrol_goals.yaml slam.rviz
  urdf/robot.urdf    # 实物模型(轮距 0.180 m)
src/robot_sim/       # 仿真包(仅 PC)
  launch/            # simulation / sim_slam / sim_navigation
  scripts/           # sim_slam.sh / sim_navigation.sh / sim_follow.sh
  urdf/worlds/rviz/config
esp32_firmware/      # ESP32 固件(独立于 ROS,用 Arduino 编译)
  esp32_firmware.ino # ★ 主固件:PCNT 编码器 + 双路 PID + MPU6050 + rosserial
  esp32_board_test/  # 板级测试固件(单项验证)
  libraries/ros_lib/ # vendored rosserial Arduino 库(已修复 ESP32 ros.h 兼容,勿随意改)
tests/               # pytest 纯逻辑回归测试(协议解析 / 状态机 / 角度换算)
tools/               # 调试工具(不入部署链)
docs/                # 架构文档 / 开发指南 / 论文

重要 launch 与脚本(命名与参数以代码为准,改文档必须同步)

  • 实物一键总控(PC 执行):bash src/robot_bringup/scripts/robot_start.sh {slam|patrol|follow|stop|status}
  • 车载一键(J1900 执行 / robot_start.sh 通过 SSH 自动调用):bash src/robot_bringup/scripts/j1900_start.sh {base|vision|stop|status}
  • 仿真:bash src/robot_sim/scripts/sim_slam.sh / sim_navigation.sh [map.yaml] / sim_follow.sh
  • 关键 launch:slam.launch(gmapping)、navigation.launch(map_server+AMCL+move_base+TEB)、follow_vision.launch(YOLO+雷达融合跟随)、odom_ekf.launch(EKF 节点唯一来源,被 slam/navigation/ekf include,不要重复定义 EKF 节点)。
  • 雷达型号切换:bringup.launchlidar_model 参数(s9_fsrd / ydlidar_x4 等)。

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 87 lines · 1,724 tokens per session scan A d18e65c416ce

Subscribe to this mod's changes

ROS AGENTS.md is an instructions file published in the GitHub repository lawliet206/ROS (103 stars, last pushed 13d ago), licensed MIT. It adds 1,724 tokens to every session, about $0.0086 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

FastLED CLAUDE.md

Claude Code instructions for FastLED/FastLED, covering fastled ai agent guidelines, read the right file for your task, key commands, core rules (all agents) and git and code publishing.

FastLED/FastLED · 3,059 tokens

FastLED GEMINI.md

Gemini CLI instructions for FastLED/FastLED, a project described as: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.

FastLED/FastLED · 9 tokens

clawdmeter-plus CLAUDE.md

Claude Code instructions for sorryhumans/clawdmeter-plus, covering project context, hardware (critical pins), amoled-2.16 (original), amoled-1.8 (newer port) and amoled-1.8 (c6) — waveshareamoled18c6.

sorryhumans/clawdmeter-plus · 4,837 tokens

RuView CLAUDE.md

Claude Code instructions for ruvnet/RuView, covering ruview repository instructions for claude code, non-negotiable rules, repository map, contributor metaharness (@ruvnet/[email protected]) and diagnose the installed harness.

ruvnet/RuView · 2,365 tokens

RuView AGENTS.md

AGENTS.md instructions for ruvnet/RuView, covering ruview repository instructions for codex, operating contract, repository map, ruview contributor harness and homecore metaharness.

ruvnet/RuView · 1,965 tokens

xiaozhi-esp32 AGENTS.md

AGENTS.md instructions for 78/xiaozhi-esp32, covering agents.md, project, architecture, required rules and boards and configuration.

78/xiaozhi-esp32 · 1,079 tokens