ros2-patterns

Provide ROS 2 node templates for publishers, subscribers, services, and actions.

2|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/zeeshan080/ai-native-robotics --skill ros2-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ros2-patterns
Source: https://github.com/zeeshan080/ai-native-robotics/tree/main/.claude/skills/ros2-patterns
Command: npx skills add https://github.com/zeeshan080/ai-native-robotics --skill ros2-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides ready-to-use ROS 2 node templates and message types to accelerate robotics development following Humble conventions.

Core Features & Use Cases

  • Publisher and Subscriber templates
  • Service Server and Action Server patterns
  • Clear node structure with comments and guidance

Quick Start

Use the publisher.py or subscriber.py templates as a starting point for a ROS 2 project and adapt to your hardware.

Frequently Asked Questions about ros2-patterns

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

FAQPage Schema
How do I create a ROS 2 publisher node?

ROS 2 publisher templates provide ready-to-use node scaffolding that handles message creation, topic publishing, and QoS configuration. Use the publisher.py template as a starting point, adapt the message type and topic name for your hardware, and follow the included comments for integration with Humble conventions.

What's the difference between ROS 2 publishers, subscribers, services, and actions?

ROS 2 communication patterns serve different needs: publishers and subscribers handle continuous data streams, services enable request-response interactions, and actions support long-running tasks with feedback. This Skill provides templates for all four patterns with documented usage scenarios and standard QoS configurations.

Can I use ROS 2 node templates for Humble development?

Yes. These templates are specifically designed for ROS 2 Humble development contexts. They include error handling, docstrings, comments, adherence to Humble conventions, and standard QoS configurations built in.

How do I set up a ROS 2 service or action server?

ROS 2 service and action server templates provide node structures with error handling and QoS configuration pre-configured. Adapt the service or action server template to your message types and callback logic, following the documented patterns and Humble conventions included.

What message types are included in the ROS 2 templates?

The templates include common ROS 2 message type definitions ready for publishers, subscribers, services, and actions. Adapt these predefined types to your specific robotics hardware and use case following the template guidance.