ros2-publisher-subscriber

Generate ROS 2 Humble rclpy publisher and subscriber code templates.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/ayeshakhalid192007-dev/humanoid-ai-studio --skill ros2-publisher-subscriber-ayeshakhalid192007-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ros2-publisher-subscriber
Source: https://github.com/ayeshakhalid192007-dev/humanoid-ai-studio/tree/main/.claude/skills/ros2-publisher-subscriber
Command: npx skills add https://github.com/ayeshakhalid192007-dev/humanoid-ai-studio --skill ros2-publisher-subscriber-ayeshakhalid192007-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides ready-to-use ROS 2 publisher and subscriber code examples that follow Humble conventions for educational content, enabling instructors to demonstrate topic-based communication and node patterns quickly.

Core Features & Use Cases

  • Generate minimal, runnable rclpy publisher and subscriber templates
  • Provide worked examples for common pub/sub patterns and exercise prompts
  • Align examples with official ROS 2 Humble tutorials to ensure accuracy

Quick Start

Ask the AI to generate a minimal rclpy publisher and a corresponding subscriber that communicate on a single topic, following ROS 2 Humble conventions.

Frequently Asked Questions about ros2-publisher-subscriber

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

FAQPage Schema
How do I generate a minimal ROS 2 publisher and subscriber template using rclpy?

To generate a minimal ROS 2 publisher and subscriber template using rclpy, request the code samples from the AI. The skill automatically produces runnable rclpy nodes that communicate on a single topic following official Humble conventions.

What is the best way to create ROS 2 pub/sub examples for teaching robotics?

The best way to create ROS 2 pub/sub examples for teaching robotics is using standards-aligned templates. This skill provides ready-to-use rclpy code samples that demonstrate topic-based communication patterns for educational modules.

Does this ROS 2 rclpy code align with official Humble tutorials?

Yes, the generated ROS 2 rclpy code aligns with official Humble tutorials. The skill ensures accuracy in educational content by following official ROS 2 Humble patterns and including documentation references for instructors.

Can I use these ROS 2 templates for student exercises requiring topic-based communication?

Yes, you can use these ROS 2 templates for student exercises requiring topic-based communication. The skill provides consistent worked examples for common pub/sub patterns and exercise prompts to demonstrate node interactions quickly.

Why do I need ready-to-use ROS 2 publisher and subscriber code for educational content?

You need ready-to-use ROS 2 publisher and subscriber code to enable instructors to demonstrate topic-based communication quickly without writing boilerplate. It provides consistent, standards-aligned examples for teaching modules and robotics exercises.

What ROS 2 message types are supported by these rclpy publisher templates?

These rclpy publisher templates support common ROS 2 message types for topic-based communication. The skill generates worked examples for standard pub/sub patterns, providing consistent messaging examples aligned with ROS 2 Humble conventions.