スキル一覧に戻る
zeeshan080

ros2-patterns

by zeeshan080

AI-Native Robotics Textbook - Physical AI & Humanoid Robotics educational platform

1🍴 0📅 2026年1月4日
GitHubで見るManusで実行

SKILL.md


name: ros2-patterns description: ROS 2 node templates and message types for robotics development. Use when creating ROS 2 nodes, understanding message types, or writing publisher/subscriber patterns. allowed-tools: Read, Bash

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

PatternTemplateUse Case
Publisherpublisher.pySending data to topics
Subscribersubscriber.pyReceiving 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 for common message types. See templates/ for complete templates.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です