← 返回
内容创作 中文

ROS 2 Skill

Controls and monitors ROS 2 robots directly via rclpy CLI. Use for ANY ROS 2 robot task: topics (subscribe, publish, capture images, find by type), services...
通过 rclpy CLI 直接控制和监控 ROS 2 机器人。适用于所有 ROS 2 机器人任务:主题(订阅、发布、捕获图像、按类型查找),服务等。
adityakamath
内容创作 clawhub v1.0.6 4 版本 99903 Key: 无需
★ 1
Stars
📥 1,010
下载
💾 20
安装
4
版本
#latest

概述

ROS 2 Skill

Controls and monitors ROS 2 robots directly via rclpy. This skill provides a unified JSON interface for standard ROS 2 operations and agent-optimized workflows like closed-loop movement and image capture.

🚀 Capabilities

  • Introspection: List and find topics, nodes, services, and actions.
  • Data Access: Subscribe to any topic, capture camera images, and monitor diagnostics/battery.
  • Interactions: Call services and send action goals with feedback monitoring.
  • Movement: Agent-optimized publish-until (closed-loop with odom) and publish-sequence (timed).
  • Configuration: Get/set parameters, use presets, and manage lifecycle nodes.
  • System: Run ros2 doctor, manage launch files via tmux, and control ros2_control hardware.
  • Packages: List installed packages, resolve prefix paths, enumerate executables, and read package.xml manifests — no live graph required.

🏗️ Architecture

  • Entry Point: scripts/ros2_cli.pythis is the only file you should ever run directly.
  • Interface: Agent → ros2_cli.py → rclpy → ROS 2 Graph
  • Format: All commands output JSON. Errors contain {"error": "..."}.

> ⚠️ Internal modules — do not run directly.

> All scripts/ros2_.py files other than ros2_cli.py are *internal

> implementation modules**, not standalone scripts. Running one directly

> prints an error to stderr and exits with code 1 — it performs no ROS

> operation. Always invoke commands through ros2_cli.py:

> ```bash

> python3 scripts/ros2_cli.py [subcommand] [args]

> python3 scripts/ros2_cli.py --help # list all commands

> ```

📚 Documentation Reference

To maintain performance and accuracy, this skill uses Progressive Disclosure:

  1. references/RULES.md (CRITICAL): Mandatory Agent Behaviour Rules (0–26), Safety Protocols, and Decision Frameworks. These are hard constraints — not guidelines. Read and follow before performing any robot action. Violation = immediate halt, self-correct, retry.
  2. references/COMMANDS.md: Full technical reference for all CLI subcommands, flags, and JSON payload structures.
  3. references/EXAMPLES.md: Practical walkthroughs for common tasks like "Move N meters" or "Capture Camera Image".
  4. references/CLI.md: Direct CLI usage reference for debugging and development. Not needed during normal agent operation.

🛠️ Setup & Preconditions

1. Source ROS 2

source /opt/ros/${ROS_DISTRO}/setup.bash

2. Verify Connection

Before any operation, verify the ROS 2 environment is active:

python3 scripts/ros2_cli.py version

3. Safety First

Always check for velocity limits and active nodes before issuing movement commands. If a command hangs or the robot moves unsafely, use:

python3 scripts/ros2_cli.py estop

版本历史

共 4 个版本

  • v1.0.6 当前
    2026-05-03 03:20 安全 安全
  • v1.0.3
    2026-03-29 18:37 安全 安全
  • v1.0.4
    2026-03-27 21:16
  • v1.0.0
    2026-03-07 01:57

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,547
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 861 📥 200,188
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,112