Skip to content

Conversation

@Shivam-Bhardwaj
Copy link

Summary

  • Adds --build-type ament_cmake flag to the ros2 pkg create command in the Creating-an-Action tutorial
  • Adds explanatory note that interface packages must be CMake packages
  • Adds best practice note about keeping interface files in separate packages

This aligns the action tutorial with the Custom-ROS2-Interfaces tutorial, which already includes this flag and explanation.

Closes #4986

Test plan

  • sphinx-lint passes
  • HTML builds without errors

🤖 Generated with Claude Code

The Creating-an-Action tutorial was missing the --build-type flag
when creating the interface package. This could lead users to
accidentally create an ament_python package, which cannot contain
interface definitions (msg, srv, or action files).

This change:
- Adds --build-type ament_cmake to the ros2 pkg create command
- Adds a note explaining that interface packages must be CMake packages
- Adds a best practice note about separating interfaces into their own packages

Closes ros2#4986

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a warning to action doc that it cannot be created under ament_python

1 participant