ros2-code-example-writer

Generate ROS 2 Python rclpy code examples with tiered variants.

2|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/uneezaismail/Physical-AI-Humanoid-Robotics --skill ros2-code-example-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ros2-code-example-writer
Source: https://github.com/uneezaismail/Physical-AI-Humanoid-Robotics/tree/main/.claude/skills/ros2-code-example-writer
Command: npx skills add https://github.com/uneezaismail/Physical-AI-Humanoid-Robotics --skill ros2-code-example-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill focuses on generating concise, pedagogically sound ROS 2 Python (rclpy) code examples across tiers (Simulation, Jetson, Robot) to accelerate learning.

Core Features & Use Cases

  • Tiered Examples: Tier A (simulation CPU), Tier B (edge AI), Tier C (hardware robots).
  • Comprehensive Coverage: Node basics, publishers/subscribers, services, actions, TF, Nav2, VSLAM, VLA.
  • Use Case: A student can copy-paste a Tier A example to learn publishers and subscribers.

Quick Start

Generate a Tier A simple publisher example that publishes a greeting to the /hello topic.

Frequently Asked Questions about ros2-code-example-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate ROS 2 Python code examples for learning?

Generate working ROS 2 Python (rclpy) code examples across three tiers: Tier A for CPU simulation, Tier B for edge AI on Jetson, and Tier C for hardware robots. Examples cover node basics, publishers/subscribers, services, actions, TF, Nav2, and VSLAM with beginner-friendly pedagogy and comprehensive code quality standards.

What ROS 2 Python patterns and topics are included in the examples?

Examples cover core rclpy patterns including publishers/subscribers, services, actions, parameters, transform (TF), Nav2 integration, and VSLAM. All code follows ROS 2 Humble conventions with complete comments, docstrings, error handling, and lifecycle management suitable for educational curricula.

Can I use these ROS 2 code examples across different deployment tiers?

Yes. Tier A examples run on CPU simulation for initial learning, Tier B scales to edge AI inference on Jetson platforms, and Tier C adapts to physical robots. Each tier maintains the same pedagogical structure and rclpy patterns while addressing deployment-specific requirements.

How do I start with a simple ROS 2 publisher example?

Request a Tier A simple publisher example specifying your topic (e.g., /hello) and message type. The Skill generates copy-paste-ready code with comments explaining node initialization, topic publishing, and lifecycle management aligned with modern rclpy best practices.

Are these ROS 2 examples production-ready or for learning only?

Examples prioritize pedagogical clarity and educational use cases with complete code quality standards: comprehensive comments, docstrings, error handling, and lifecycle. They are suitable for classroom learning and curriculum integration; production deployment may require additional hardening.