Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement QoS: liveliness, deadline, lifespan (#171)
* initial qos interface changes Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * add creation of event waitable type Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Add rmw take_event interface Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * add rmw event type enum Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Modify events type from void** to rmw_event_t** Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * fix lint errors Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Added RMW QoS Event Definitions Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Added RMW QoS Event Definitions Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Code formatting fixes Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Change liveliness policy types to reflect actual settings Signed-off-by: Emerson Knapp <eknapp@amazon.com> Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Comment out types of liveliness that will not be supported in this iteration of the feature Signed-off-by: Emerson Knapp <eknapp@amazon.com> Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Re-enable manual liveliness, name to by_node Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Fixed style issues Removed unsupported QoS types Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Removed extra QoS types Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * add an invalid enum in rmw_event_type_t for variables to default to Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * change rmw_event_t APIs from create()/destroy() to init()/fini() pattern Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Move rmw_*_event_init implementation to rmw **Summary** Event initialization should require no modifications from the underlying rmw layer and therefore can be initialized in the rmw layer. Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Fix uncrustify divergence in event.c Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Remove erroneous rmw_delete_event Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Implement QoS: liveliness, deadline, lifespan **Summary** Provide init/fini and take functions for events. Modify wait_set to include event handles for notification of status changes. Details: * ADD initial qos interface changes * ADD rmw take_event interface * ADD rmw event type enum * MODIFY events type from void** to rmw_event_t** * ADD RMW QoS Event Definitions * ADD section about DCO to CONTRIBUTING.md * EDIT liveliness policy types to reflect actual settings * ADD an invalid enum in rmw_event_type_t for variables to default to * MOVE rmw_*_event_init implementation to rmw ** Event initialization should require no modifications from the underlying rmw layer and therefore can be initialized in the rmw layer. Signed-off-by: Ross Desmond <44277324+ross-desmond@users.noreply.github.com> Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Added missing documentation Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Edited added struct names for consistency Edited method signatures to follow const correctness Addressed style / linting review comments Updated documentation style Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * add assert_liveliness() APIs Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * address comments in PR (github.com/aws-ros-dev/pull/4) Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Edited documentation to account for unexpected errors Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * modify doc string regarding the requirement of asserting liveliness Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Edit documentation block to fix linting errors Signed-off-by: Devin Bonnie <dbbonnie@amazon.com> Signed-off-by: Burek <burekn@f45c89c6612b.ant.amazon.com> * Addressed documentation issues found in review Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
- Loading branch information