ros2-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 (list, call), actions (list, send goals), parameters (get, set, presets), nodes, lifecycle management, controllers (ros2_control), diagnostics, battery, system health checks, and more. When in doubt, use this skill — it covers the full ROS 2 operation surface. Never tell the user you cannot do something ROS 2-related without checking this skill first.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/adityakamath/ros2-skillWhat This Skill Does
The ros2-skill is a comprehensive interface for controlling and monitoring ROS 2-based robotic systems. Designed for the OpenClaw AI agent, it acts as a bridge between the agent's logic and the rclpy Python library, allowing for real-time interaction with robotics hardware and simulation environments. By providing a structured CLI wrapper, the skill enables the agent to inspect ROS 2 components, manage communication streams, and execute low-level robot control tasks without needing manual shell access.
Installation
To install this skill, use the ClawHub command: clawhub install openclaw/skills/skills/adityakamath/ros2-skill. Before operation, ensure the host machine has the necessary ROS 2 distribution installed and properly sourced using source /opt/ros/${ROS_DISTRO}/setup.bash. You must also install the required Python dependencies: pip install rclpy rosidl-runtime-py. The skill must be executed on the machine physically connected to the robot or within the same ROS 2 network namespace.
Use Cases
This skill is ideal for robotics researchers and engineers who need to perform autonomous debugging, data collection, or robot actuation via AI. Common use cases include:
- Fleet Monitoring: Listing active nodes and checking topic health across a robot network.
- Sensor Data Acquisition: Subscribing to telemetry or Lidar streams to provide context to the agent.
- Navigation Control: Setting movement parameters or triggering navigation actions for mobile robots.
- Diagnostics: Inspecting service and action interfaces to troubleshoot hardware failures or connectivity issues.
Example Prompts
- "Check the current topics on the robot and get the message structure for the /cmd_vel topic so I can start moving it."
- "Please subscribe to the /camera/image/compressed topic for 5 seconds and summarize if there are any visual obstructions."
- "The robot is drifting; use the parameters interface to adjust the PID gains on the /navigation_node and verify the changes."
Tips & Limitations
- Safety First: Always use the
estopcommand if the robot behaves unexpectedly. This is a critical safety feature that should be top-of-mind. - Environment Consistency: Always run the
versioncommand first to ensure the environment is correctly configured. - Network Constraints: This skill relies on standard ROS 2 middleware (DDS). Ensure your network configuration allows for cross-node communication if the agent is on a separate machine.
- JSON Output: Since all commands return JSON, you can rely on the agent to parse complex ROS data structures, but ensure your system has sufficient memory to handle large message dumps from topics.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-adityakamath-ros2-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution, network-access