Add --message field to the creation of ROS2 packages.#1202
Open
leander-dsouza wants to merge 3 commits intoros2:rollingfrom
Open
Add --message field to the creation of ROS2 packages.#1202leander-dsouza wants to merge 3 commits intoros2:rollingfrom
--message field to the creation of ROS2 packages.#1202leander-dsouza wants to merge 3 commits intoros2:rollingfrom
Conversation
Signed-off-by: Leander Stephen D'Souza <[email protected]>
Signed-off-by: Leander Stephen D'Souza <[email protected]>
peci1
approved these changes
Mar 2, 2026
Contributor
peci1
left a comment
There was a problem hiding this comment.
Thanks, I have a few small comments, but nothing important.
| @@ -0,0 +1,5 @@ | |||
| # TODO: Define the message fields here. | |||
Contributor
There was a problem hiding this comment.
License text is missing. However, the other template files also don't have it, so maybe let's leave it to another PR.
Contributor
Author
There was a problem hiding this comment.
Yes, sure.
We can add the license texts to all the template files in a future PR.
… types. Signed-off-by: Leander Stephen D'Souza <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basic Info
Description
--messagefield to theros2 pkg createcommand.MyMsg.msgament_cmakebuild type.MyMsgandOtherMsg.Usage
You can include the
--messagefield followed by an indefinite number of messages as follows:If you include an invalid message name, it would fail the creation step:
The creation step would also fail if the build type is not
ament_cmake:$ ros2 pkg create tutorial_interfaces --build-type ament_python --license Apache-2.0 --message MyMsg Aborted: --message is only supported with 'ament_cmake' build type.Is this user-facing behaviour change?
Yes, please refer to the
Usagesection for more details on how the implementation affects the user's creation of the ROS2 package.Did you use Generative AI?
No
Additional Information
Future work can include adding fields for actions and services.