-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Deadline, Liveliness, and Lifespan QoS Event (rcl_event_t type) and their rcl_take_* Function #396
Conversation
Hi @wjwwood, can you take a look at this PR? |
Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Miaofei <[email protected]>
* EDIT: alphabetical order cmakelist and imports Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Miaofei <[email protected]>
* Drops legacy launch API usage. Signed-off-by: Michel Hidalgo <[email protected]> * Adds launch_testing as test dependency. Signed-off-by: Michel Hidalgo <[email protected]> Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Shane Loretz <[email protected]> Signed-off-by: Miaofei <[email protected]>
* Set symbol visibility to hidden for rcl Enabling symbol visibility feature in gcc and clang compilers. This will hep find symbol export related issues in linux and potentially reduce compile times. Discourse topic link: https://discourse.ros.org/t/set-symbol-visibility-to-hidden-for-rmw-and-rcl-packages/7981 Signed-off-by: Sachin Suresh Bhat <[email protected]> * Remove WIN specific compiler definition in configure_rcl Signed-off-by: Sachin Suresh Bhat <[email protected]> * Rename macro name rcl_set_symbol_visibility_hidden Signed-off-by: Sachin Suresh Bhat <[email protected]> * Change macro to args for rcl_set_symbol_visibility_hidden Signed-off-by: Sachin Suresh Bhat <[email protected]> Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Michel Hidalgo <[email protected]> Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]> Signed-off-by: Miaofei <[email protected]>
* Update rcl_action Doxyfile Add reference to rcl tagfile and fix generated tagfile name. Signed-off-by: Jacob Perron <[email protected]> * Fix minor doc errors Signed-off-by: Jacob Perron <[email protected]> Signed-off-by: Miaofei <[email protected]>
* update test to IDL-based action generation * update test to IDL-based action generation * fix merge conflict * update new tests * update action types * match renamed action types * style fix * update types using unique_identifier_msgs Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Jacob Perron <[email protected]> Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Miaofei <[email protected]>
Signed-off-by: Miaofei <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a rebase, as there seems to be lots of off-topic changes that are also in master (e.g. updating python code to use non-legacy launch API).
It was kind of hard to reverse engineer the purpose of having a separate init/take for each "kind" of event, especially since there's no API docs for them. Generally, starting with API function prototypes and their API docs is the best place to start if you want comments on your approach.
#include "rcl/subscription.h" | ||
#include "rcl/visibility_control.h" | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's lots of redundant whitespace in this file, please just use one blank line in all these places.
@@ -99,6 +99,13 @@ typedef rmw_ret_t rcl_ret_t; | |||
/// Argument is not a valid log level rule | |||
#define RCL_RET_INVALID_LOG_LEVEL_RULE 1020 | |||
|
|||
// rcl event specific ret codes in 20XX | |||
/// Invalid rcl_event_t given return code. | |||
#define RCL_RET_EVENT_INVALID 2000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not 1030
?
Sorry that this PR has gone kind of stale. We will update as soon as possible. The reason for separate init function for each "kind" of event is that the event needs to access the There are no separate take functions for each "kind" of event. |
You're right, sorry, I must have misread it. |
This PR is being replaced by #408. Closing this PR. |
Is thers samples or demos intruduce how to use liveness event by using rcl api? |
Implementation for Deadline, Liveliness, and Lifespan QoS. The design is at ros2/design#212
This change introduces a new
rcl_event_t
type as well as its respectivercl_take_event()
function.