smithery.ai

ros2_build_master

Quản lý quy trình biên dịch gói tin ROS 2 sử dụng Colcon với các cấu hình tối ưu.

Installation

$ npx skills add https://smithery.ai

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.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

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

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,938 B
  • docs SUMMARY.md 127 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

ROS 2 BUILD MASTER SKILL

Mô Tả

Kỹ năng này cung cấp giao diện an toàn để Agent thực thi colcon build, đảm bảo các cờ (flags) quan trọng luôn được áp dụng để duy trì tính nhất quán của môi trường phát triển.

Chức Năng (Capabilities)

1. Build Symlink (Phát triển nhanh)

Sử dụng --symlink-install để tạo liên kết tượng trưng từ thư mục cài đặt (install/) trỏ về mã nguồn (src/). Điều này cho phép thay đổi trong Python scripts, launch files, và file cấu hình (.yaml) có hiệu lực ngay lập tức mà không cần biên dịch lại.

  • Command: colcon build --symlink-install

2. Build Chọn Lọc (Tiết kiệm thời gian)

Chỉ biên dịch gói tin chỉ định và các phụ thuộc của nó, giúp giảm thời gian chờ đợi trong các workspace lớn.

  • Command: colcon build --packages-select <package_name> --symlink-install

3. Build Debug (Gỡ lỗi C++)

Biên dịch với thông tin gỡ lỗi (debug symbols) để sử dụng với GDB.

  • Command: colcon build --cmake-args -DCMAKEBUILDTYPE=Debug --symlink-install

4. Clean Workspace (Dọn dẹp)

Xóa các thư mục artifacts để khắc phục lỗi cache CMake hỏng.

  • Command: rm -rf build/ install/ log/

Xử Lý Lỗi (Error Handling)

Nếu colcon trả về mã lỗi (non-zero exit code), Agent cần đọc tệp log tại log/latest_build/events.log hoặc phân tích stderr để xác định nguyên nhân:

  • Missing dependency: Gợi ý thêm vào package.xml.
  • CMake Error: Kiểm tra lại cú pháp CMakeLists.txt.
  • Linker Error: Kiểm tra việc thiếu amenttargetdependencies.