Skip to content

Add goal file input to ros2 action send_goal - #1276

Open
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:feature-696-action-goal-file
Open

Add goal file input to ros2 action send_goal#1276
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:feature-696-action-goal-file

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Addresses the goal-file input part of #696.

Add --goal-file FILE to ros2 action send_goal so goal request values can be read from a YAML file instead of being provided inline or through standard input.

The new option participates in the same mutually exclusive input group as the existing positional goal and --stdin.

Example:

ros2 action send_goal /fibonacci example_interfaces/action/Fibonacci --goal-file goal.yaml

-f is already used by --feedback, so the file input uses the unambiguous long option --goal-file.

Testing

Added a focused test that verifies the file contents are passed unchanged to the existing goal sending path.

Did you use Generative AI?

Yes. AI was used to assist with tests.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
@mergify

mergify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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.

1 participant