smithery/zeeshan080

ros2-patterns

ROS 2 node templates and message types for robotics development. Use when creating ROS 2 nodes, understanding message types, or writing publisher/subscriber patterns.

Installation

$ npx skills add smithery/zeeshan080 --skill ros2-patterns

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/zeeshan080.

npx skills add smithery/zeeshan080

Browse all from smithery/zeeshan080

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Bash

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,354 B
  • docs SUMMARY.md 187 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

ROS 2 Patterns

Instructions

When creating ROS 2 code:

  1. Use the provided templates as starting points
  2. Follow ROS 2 Humble conventions
  3. Include proper error handling
  4. Add docstrings and comments

Common Patterns

Pattern Template Use Case
Publisher publisher.py Sending data to topics
Subscriber subscriber.py Receiving data from topics
Service Server (extend publisher) Request/response pattern
Action Server (advanced) Long-running tasks

Node Structure

import rclpy
from rclpy.node import Node

class MyNode(Node):
    def __init__(self):
        super().__init__('node_name')
        # Initialize publishers, subscribers, timers

    def callback(self, msg):
        # Handle incoming messages
        pass

def main(args=None):
    rclpy.init(args=args)
    node = MyNode()
    rclpy.spin(node)
    node.destroy_node()
    rclpy.shutdown()

if __name__ == '__main__':
    main()

Reference

See [messages.md](messages.md) for common message types. See [templates/](templates/) for complete templates.