ros-skill
由 lpigeon 提供
Web & Frontend Development简介
Controls ROS/ROS2 robots via rosbridge WebSocket CLI.
描述
该技能的功能
Controls ROS and ROS2 robots through a rosbridge WebSocket connection using a Python CLI. Supports topics, services, nodes, parameters, and actions. All output is JSON.
Lets an agent interact with any ROS/ROS2 robot without needing a native ROS install on the agent host, only rosbridge on the robot side.
何时使用
- Move a robot forward and stop it after a set duration
- Subscribe to laser scan data from a sensor
- Call a ROS service to spawn or reset simulation objects
- Set ROS2 node parameters at runtime
- Inspect active topics and nodes on an unfamiliar robot
示例工作流
User asks: move the robot forward 2 seconds then stop
- 1
Connect to rosbridge with
ros_cli.py connect - 2
Check message structure with
topics message geometry_msgs/Twist - 3
Publish a sequence with forward velocity for 2.0s followed by zero velocity for 0.5s using
topics publish-sequence - 4
Verify no error field in JSON output
Robot moves forward for 2 seconds and stops; publish-sequence confirms completion
前置要求
- rosbridge_server installed and running on the robot (ROS or ROS2)
安装
clawhub install lpigeon/ros-skill运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。