Skip to content

Backport Python Action examples to Crystal#229

Merged
nuclearsandwich merged 1 commit intocrystalfrom
master
Mar 10, 2019
Merged

Backport Python Action examples to Crystal#229
nuclearsandwich merged 1 commit intocrystalfrom
master

Conversation

@jacobperron
Copy link
Copy Markdown
Member

Only one new commit since the last release (#222).

* Copy rclpy action examples from #216

* Bump version of examples_rclpy_action to match other packages

* Consolidate composable action client example

* Add action client example that is not composable

* Wait for action server

* Restructure into separate packages for action client and action server examples

This package structure is consistent with examples for services and topics.

* Update API in action server examples

* Rename action server examples

Now the 'simplest' example is 'server.py'.

* Add action server example that is not composable

* Update setup.py

* Fix syntax

* Update action client examples to use goal handle API for the result

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Improve action client output and result handling

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update action server examples

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Move action examples into Python packages

This avoid top-level module names from clashing when installed.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Add action client cancel example

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Address review comments

* Update author
* Update copyright year
* Shutdown client example after result received

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* GoalResponse.ACCEPT_AND_EXECUTE -> GoalResponse.ACCEPT

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fix client_cancel example

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Remove race from server_single_goal example

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Add action server example that defers the execution of an accepted goal

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Reduce the timer period for the client cancel example

This makes it easy to experiment with the scenario where a deferred goal is canceled prior to execution.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Support canceling goals with non-composable action server example

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Add action server example that queues goals

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Address review

- Fix comment
- Add author tag to package.xml

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron added the in progress Actively being worked on (Kanban column) label Mar 7, 2019
@nuclearsandwich
Copy link
Copy Markdown
Member

CI building actions examples

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS (Crystal infra) Build Status
  • Windows Build Status

@nuclearsandwich nuclearsandwich merged commit a1d9fd1 into crystal Mar 10, 2019
@nuclearsandwich nuclearsandwich removed the in progress Actively being worked on (Kanban column) label Mar 10, 2019
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