Skip to content
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

update docs about possibility of rcl_take no taking #356

Merged
merged 2 commits into from
Dec 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rcl/include/rcl/subscription.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ rcl_subscription_get_default_options(void);
* if one is available.
* If taken is false after calling, then the ROS message will be unmodified.
*
* The taken boolean may be false even if a wait set reports that the
* subscription was ready to be taken from in some cases, e.g. when the
* state of the subscription changes it may cause the wait set to wake up
* but subsequent takes to fail to take anything.
*
* If allocation is required when taking the message, e.g. if space needs to
* be allocated for a dynamically sized array in the target message, then the
* allocator given in the subscription options is used.
Expand Down
4 changes: 3 additions & 1 deletion rcl/include/rcl/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ rcl_wait_set_add_service(
* this function returns.
* Items that are not `NULL` are ready, where ready means different things based
* on the type of the item.
* For subscriptions this means there are messages that can be taken.
* For subscriptions this means there may be messages that can be taken, or
* perhaps that the state of the subscriptions has changed, in which case
* rcl_take may succeed but return with taken == false.
* For guard conditions this means the guard condition was triggered.
*
* Expected usage:
Expand Down