Skip to content

Add goal file input to ros2 action send_goal - #1276

Open
sylvesterkaczmarek wants to merge 5 commits into
ros2:rollingfrom
sylvesterkaczmarek:feature-696-action-goal-file
Open

Add goal file input to ros2 action send_goal#1276
sylvesterkaczmarek wants to merge 5 commits 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 unit coverage for runtime file reading, empty files, and read failures, plus an end-to-end launch test that sends a goal from --goal-file to the Fibonacci action server and verifies successful completion.

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

@fujitatomoya fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the PR quality is not good enough, requesting change.

Comment thread ros2action/ros2action/verb/send_goal.py Outdated
Comment thread ros2action/test/test_send_goal_file.py
Comment thread ros2action/ros2action/verb/send_goal.py Outdated
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
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.

2 participants