add-ros2-package

Create a ROS 2 package scaffold with CMakeLists.txt, package.xml, config, and launch templates.

84|28|Updated Jun 7, 2024
One-click install
npx skills add https://github.com/castacks/AirStack --skill add-ros2-package
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-ros2-package
Source: https://github.com/castacks/AirStack/tree/main/.agents/skills/add-ros2-package
Command: npx skills add https://github.com/castacks/AirStack --skill add-ros2-package

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating a standardized, ready-to-use ROS 2 package scaffold for new AirStack modules, ensuring consistent structure and configuration across planners, controllers, perception, world models, and behavior nodes.

Core Features & Use Cases

  • Scaffold a complete package with CMakeLists.txt, package.xml, config, launch, and optional Python setup.
  • Enforce standard AirStack dependencies and quickly scaffold modules (e.g., planners under local/planners/<package_name>).
  • Use this to streamline adding a new algorithm module and reduce integration errors.

Quick Start

Run the template to scaffold a ROS 2 package for your module and customize its structure.

Frequently Asked Questions about add-ros2-package

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

FAQPage Schema
How do I create a ROS 2 package scaffold for a new AirStack module?

To create a ROS 2 package scaffold, use this tool to generate standard files including CMakeLists.txt, package.xml, config, and launch templates, enforcing ament_cmake build and AirStack dependencies for reliable integration.

What files are included in a standard ROS 2 AirStack package?

A standard ROS 2 AirStack package includes CMakeLists.txt, package.xml, config files, and launch templates, with optional Python packaging setup to ensure consistent structure across planners, controllers, perception, world models, and behavior nodes.

Can I scaffold both local and global planner modules in ROS 2?

Yes, you can scaffold both local and global planner modules, along with controllers, perception, world models, and behavior nodes, placing them under the correct local or global directory structure for your AirStack architecture.

Do I need ament_cmake to build AirStack ROS 2 packages?

Yes, ament_cmake is strictly enforced as the build system for these ROS 2 packages, ensuring that your new AirStack modules integrate reliably with standard launch-time remapping strategies and dependencies.

How do I add Python packaging to a ROS 2 package for AirStack?

You can add Python packaging to a ROS 2 package by enabling the optional Python setup generation during the scaffolding process, creating a complete module structure alongside the standard CMakeLists.txt and launch templates.

Why use a standardized scaffold for ROS 2 AirStack modules?

Using a standardized scaffold for ROS 2 AirStack modules reduces integration errors and enforces consistent configuration, providing ready-to-use launch-time remapping strategies and standard dependencies for quick algorithm deployment.