[ros2action] Display info about action goals on an action server

Open
#222 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start with the proposed ros2 action goal list and ros2 action goal info entry points, then review the stated need for new rcl-level access to goal request arguments. Done means active and terminated goals can be listed and queried for their request, status, and result as described.

Written by the indexing model from the issue text.

Description

backlog enhancement

Feature request

Feature description

Proposed originally in https://github.com/ros2/ros2cli/issues/202.

Add a goal verb for getting info about active or terminated goals for a given action server.

Proposed usage:

  • List goals for a given action name. Output node names with action servers and goal IDs.
ros2 action goal list [--count] ACTION_NAME

E.g.

$ ros2 action goal list /fibonacci
/node/foo: 2
    152790028afb49a3b3c61383e6b97320
    8c3449e71c9941ed8ad3d68fdd7f553c
/another/node/bar: 1
    b07cb18ca2dc4cca95acfc131fc49223
$ ros2 action goal list --count /fibonacci
/node/foo: 2
/another/node/bar: 1
  • Get details for a specific goal (request, result, status).
ros2 action goal info [--goal-only] [--status-only] [--result-only] ACTION_NAME GOAL_UUID
$ ros2 action goal info /fibonacci 152790028afb49a3b3c61383e6b97320
Goal:
  order: 5

Status: EXECUTING
$ ros2 action goal info /fibonacci 8c3449e71c9941ed8ad3d68fdd7f553c
Goal:
  order: 5

Status: SUCCEEDED

Result:
  sequence: [0, 1, 1, 2, 3]
Implementation considerations

I believe most of the proposed API should be feasible, except for accessing the goal request arguments, which requires adding some new API for getting this information to the rcl level.

Dominant language
Python
Stars
274
Forks
246
Avg merge
1d 14h
Merged PRs (30d)
12

Getting set up

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.

More from ros2/ros2cli

All issues in ros2/ros2cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.