ROS: Instructions file for Codex

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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions OpenCode.

This is lawliet206/ROS's own configuration. It tells Codex and OpenCode how to work on ROS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ROS configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lawliet206/ROS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lawliet206/ROS/main/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ROS AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lawliet206/ros/agents-md"><img src="https://agentmods.dev/badge/instructions/lawliet206/ros/agents-md.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00690 $0.00690
Sonnet 5.5 $0.00345 $0.00345
Haiku 4.5 $0.00172 $0.00172

Measured 2mo ago against content hash d18e65c416ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.launch 的 lidar_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. 2mo 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 (106 stars, last pushed 27d ago), licensed MIT. It adds 1,724 tokens to every session, about $0.0069 per session on Opus 5.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

ROS AGENTS.md compared with instructions from other repositories

ROS AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ROS AGENTS.mdlawliet206/ROSInstructions file10627d agoMITA1,724Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot