ros2 / ros2/ros2cli

ros2 pkg create: Add --message and --service

Open
#1,015 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backlog enhancement
Dominant language
Python
Stars
262
Forks
228
Avg merge
23h 15m
Merged PRs (30d)
12

Description

Description

It would be nice if ros2 pkg create would also have --message and --service in addition to --node-name and --library-name.

Motivation

It would be great if pkg create could generate a properly configured package with messages and services.

Design / Implementation Considerations

When --message or --service is used, package type has to be ament_cmake.

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ros2 pkg create command and trace how the existing --node-name and --library-name options generate package contents. Inspect the package-generation path and ament_cmake handling first. Done means --message and --service generate a properly configured package, with package type constrained to ament_cmake.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.