Package Summary

Tags No category tags.
Version 0.20.2
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/demos.git
VCS Type git
VCS Version humble
Last Updated 2022-12-05
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Python action tutorial code

Additional Links

No additional links.

Maintainers

  • Audrow Nash
  • Michael Jeronimo

Authors

  • Jacob Perron
  • Mabel Zhang
README
No README found. No README in repository either.
CHANGELOG

Changelog for package action_tutorials_py

0.20.2 (2022-05-10)

0.20.1 (2022-04-08)

0.20.0 (2022-03-01)

0.19.0 (2022-01-14)

0.18.0 (2021-12-17)

  • Update maintainers to Audrow Nash and Michael Jeronimo (#543)
  • Contributors: Audrow Nash

0.17.0 (2021-10-18)

0.16.0 (2021-08-11)

0.15.0 (2021-05-14)

0.14.2 (2021-04-26)

0.14.1 (2021-04-19)

  • Use underscores instead of dashes in setup.cfg (#502)
  • Contributors: Ivan Santiago Paunovic

0.14.0 (2021-04-06)

0.13.0 (2021-03-25)

0.12.1 (2021-03-18)

0.12.0 (2021-01-25)

0.11.0 (2020-12-10)

  • Update the package.xml files with the latest Open Robotics maintainers (#466)
  • Contributors: Michael Jeronimo

0.10.1 (2020-09-21)

0.10.0 (2020-06-17)

0.9.3 (2020-06-01)

0.9.2 (2020-05-26)

0.9.1 (2020-05-12)

0.9.0 (2020-04-30)

0.8.4 (2019-11-19)

  • Make demos handle SIGINT gracefully. (#377)
  • Contributors: Michel Hidalgo

0.8.3 (2019-11-11)

0.8.2 (2019-11-08)

0.8.1 (2019-10-23)

  • Update setup.py versions
  • Contributors: Jacob Perron

0.8.0 (2019-09-26)

  • Remove non-existing dependency (#384)
  • Move Python action tutorials to a new package, action_tutorials_py (#378)
  • Contributors: Mikael Arguedas, Siddharth Kucheria

0.7.6 (2019-05-30)

0.7.5 (2019-05-29)

0.7.4 (2019-05-20)

0.7.3 (2019-05-10)

0.7.2 (2019-05-08)

0.7.1 (2019-04-26)

0.7.0 (2019-04-14)

0.6.2 (2019-01-15)

0.6.1 (2018-12-12)

0.6.0 (2018-12-07)

0.5.1 (2018-06-28)

0.5.0 (2018-06-27)

0.4.0 (2017-12-08)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged action_tutorials_py at answers.ros.org

Package Summary

Tags No category tags.
Version 0.9.4
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/demos.git
VCS Type git
VCS Version foxy
Last Updated 2022-07-25
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Python action tutorial code

Additional Links

No additional links.

Maintainers

  • Mabel Zhang
  • Michael Jeronimo

Authors

  • Jacob Perron
README
No README found. No README in repository either.
CHANGELOG

Changelog for package action_tutorials_py

0.9.4 (2022-07-25)

  • Update maintainer list for Foxy (#471)
  • Contributors: Michael Jeronimo

0.9.3 (2020-06-01)

0.9.2 (2020-05-26)

0.9.1 (2020-05-12)

0.9.0 (2020-04-30)

0.8.4 (2019-11-19)

  • Make demos handle SIGINT gracefully. (#377)
  • Contributors: Michel Hidalgo

0.8.3 (2019-11-11)

0.8.2 (2019-11-08)

0.8.1 (2019-10-23)

  • Update setup.py versions
  • Contributors: Jacob Perron

0.8.0 (2019-09-26)

  • Remove non-existing dependency (#384)
  • Move Python action tutorials to a new package, action_tutorials_py (#378)
  • Contributors: Mikael Arguedas, Siddharth Kucheria

0.7.6 (2019-05-30)

0.7.5 (2019-05-29)

0.7.4 (2019-05-20)

0.7.3 (2019-05-10)

0.7.2 (2019-05-08)

0.7.1 (2019-04-26)

0.7.0 (2019-04-14)

0.6.2 (2019-01-15)

0.6.1 (2018-12-12)

0.6.0 (2018-12-07)

0.5.1 (2018-06-28)

0.5.0 (2018-06-27)

0.4.0 (2017-12-08)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged action_tutorials_py at answers.ros.org

Package Summary

Tags No category tags.
Version 0.23.0
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/demos.git
VCS Type git
VCS Version rolling
Last Updated 2022-12-07
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Python action tutorial code

Additional Links

No additional links.

Maintainers

  • Aditya Pande
  • Audrow Nash
  • Michael Jeronimo

Authors

  • Jacob Perron
  • Mabel Zhang

Action Server

In the constructor for FibonacciActionServer, an action server is created with a callback that is called when a goal is accepted.

self._action_server = ActionServer(
            self,
            Fibonacci,
            'fibonacci',
            self.execute_callback)

There are three types of callbacks:

  • A goal_callback can optionally be added to conditionally accept or reject the goal, however, by default the goal is accepted.
  • A cancel_callback can also optionally be added to conditionally accept or reject the cancel goal request, however, by default the cancel goal request is accepted.
  • The execute_callback calculates the Fibonacci sequence up to order and publishes partial sequences as feedback as each item is added to the sequence.

The thread sleeps for 1 second between the calculation of each item in order to represent a long-running task. When execution is complete, the full sequence is returned to the action client.

Action Client

In the constructor for FibonacciActionClient, an action client for the fibonacci action is created:

self._action_client = ActionClient(self, Fibonacci, 'fibonacci')

A goal of type Fibonacci is created with order 10. The goal is sent asynchronously with callbacks registered for the goal response and the feedback:

self._send_goal_future = self._action_client.send_goal_async(
            goal_msg,
            feedback_callback=self.feedback_callback)

self._send_goal_future.add_done_callback(self.goal_response_callback)

Within the goal_response_callback, if the goal is accepted, the goal result is requested asynchronously. A callback is registered for receiving the result:

self._get_result_future = goal_handle.get_result_async()

self._get_result_future.add_done_callback(self.get_result_callback)

There are two types of callbacks:

  • The feedback_callback logs the partial sequences as they are received.
  • The get_result_callback logs the full Fibonacci sequence.
CHANGELOG

Changelog for package action_tutorials_py

0.23.0 (2022-11-02)

0.22.0 (2022-09-13)

0.21.0 (2022-04-29)

0.20.1 (2022-04-08)

0.20.0 (2022-03-01)

0.19.0 (2022-01-14)

0.18.0 (2021-12-17)

  • Update maintainers to Audrow Nash and Michael Jeronimo (#543)
  • Contributors: Audrow Nash

0.17.0 (2021-10-18)

0.16.0 (2021-08-11)

0.15.0 (2021-05-14)

0.14.2 (2021-04-26)

0.14.1 (2021-04-19)

  • Use underscores instead of dashes in setup.cfg (#502)
  • Contributors: Ivan Santiago Paunovic

0.14.0 (2021-04-06)

0.13.0 (2021-03-25)

0.12.1 (2021-03-18)

0.12.0 (2021-01-25)

0.11.0 (2020-12-10)

  • Update the package.xml files with the latest Open Robotics maintainers (#466)
  • Contributors: Michael Jeronimo

0.10.1 (2020-09-21)

0.10.0 (2020-06-17)

0.9.3 (2020-06-01)

0.9.2 (2020-05-26)

0.9.1 (2020-05-12)

0.9.0 (2020-04-30)

0.8.4 (2019-11-19)

  • Make demos handle SIGINT gracefully. (#377)
  • Contributors: Michel Hidalgo

0.8.3 (2019-11-11)

0.8.2 (2019-11-08)

0.8.1 (2019-10-23)

  • Update setup.py versions
  • Contributors: Jacob Perron

0.8.0 (2019-09-26)

  • Remove non-existing dependency (#384)
  • Move Python action tutorials to a new package, action_tutorials_py (#378)
  • Contributors: Mikael Arguedas, Siddharth Kucheria

0.7.6 (2019-05-30)

0.7.5 (2019-05-29)

0.7.4 (2019-05-20)

0.7.3 (2019-05-10)

0.7.2 (2019-05-08)

0.7.1 (2019-04-26)

0.7.0 (2019-04-14)

0.6.2 (2019-01-15)

0.6.1 (2018-12-12)

0.6.0 (2018-12-07)

0.5.1 (2018-06-28)

0.5.0 (2018-06-27)

0.4.0 (2017-12-08)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged action_tutorials_py at answers.ros.org

Package Summary

Tags No category tags.
Version 0.8.4
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/demos.git
VCS Type git
VCS Version eloquent
Last Updated 2020-11-04
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Python action tutorial code

Additional Links

No additional links.

Maintainers

  • Mabel Zhang
  • Michael Jeronimo

Authors

  • Jacob Perron
README
No README found. No README in repository either.
CHANGELOG

Changelog for package action_tutorials_py

0.8.4 (2019-11-19)

  • Make demos handle SIGINT gracefully. (#377)
  • Contributors: Michel Hidalgo

0.8.3 (2019-11-11)

0.8.2 (2019-11-08)

0.8.1 (2019-10-23)

  • Update setup.py versions
  • Contributors: Jacob Perron

0.8.0 (2019-09-26)

  • Remove non-existing dependency (#384)
  • Move Python action tutorials to a new package, action_tutorials_py (#378)
  • Contributors: Mikael Arguedas, Siddharth Kucheria

0.7.6 (2019-05-30)

0.7.5 (2019-05-29)

0.7.4 (2019-05-20)

0.7.3 (2019-05-10)

0.7.2 (2019-05-08)

0.7.1 (2019-04-26)

0.7.0 (2019-04-14)

0.6.2 (2019-01-15)

0.6.1 (2018-12-12)

0.6.0 (2018-12-07)

0.5.1 (2018-06-28)

0.5.0 (2018-06-27)

0.4.0 (2017-12-08)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged action_tutorials_py at answers.ros.org

Package Summary

Tags No category tags.
Version 0.14.4
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/demos.git
VCS Type git
VCS Version galactic
Last Updated 2022-12-07
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Python action tutorial code

Additional Links

No additional links.

Maintainers

  • Mabel Zhang
  • Michael Jeronimo

Authors

  • Jacob Perron
README
No README found. No README in repository either.
CHANGELOG

Changelog for package action_tutorials_py

0.14.4 (2022-12-06)

0.14.3 (2021-05-10)

0.14.2 (2021-04-26)

0.14.1 (2021-04-19)

  • Use underscores instead of dashes in setup.cfg (#502)
  • Contributors: Ivan Santiago Paunovic

0.14.0 (2021-04-06)

0.13.0 (2021-03-25)

0.12.1 (2021-03-18)

0.12.0 (2021-01-25)

0.11.0 (2020-12-10)

  • Update the package.xml files with the latest Open Robotics maintainers (#466)
  • Contributors: Michael Jeronimo

0.10.1 (2020-09-21)

0.10.0 (2020-06-17)

0.9.3 (2020-06-01)

0.9.2 (2020-05-26)

0.9.1 (2020-05-12)

0.9.0 (2020-04-30)

0.8.4 (2019-11-19)

  • Make demos handle SIGINT gracefully. (#377)
  • Contributors: Michel Hidalgo

0.8.3 (2019-11-11)

0.8.2 (2019-11-08)

0.8.1 (2019-10-23)

  • Update setup.py versions
  • Contributors: Jacob Perron

0.8.0 (2019-09-26)

  • Remove non-existing dependency (#384)
  • Move Python action tutorials to a new package, action_tutorials_py (#378)
  • Contributors: Mikael Arguedas, Siddharth Kucheria

0.7.6 (2019-05-30)

0.7.5 (2019-05-29)

0.7.4 (2019-05-20)

0.7.3 (2019-05-10)

0.7.2 (2019-05-08)

0.7.1 (2019-04-26)

0.7.0 (2019-04-14)

0.6.2 (2019-01-15)

0.6.1 (2018-12-12)

0.6.0 (2018-12-07)

0.5.1 (2018-06-28)

0.5.0 (2018-06-27)

0.4.0 (2017-12-08)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged action_tutorials_py at answers.ros.org