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

Rcl consolidate wait set functions #540

Merged
merged 3 commits into from
Aug 27, 2018

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Aug 21, 2018

connects to ros2/rcl#285

@sloretz sloretz added enhancement New feature or request in review Waiting for review (Kanban column) labels Aug 21, 2018
@sloretz sloretz self-assigned this Aug 21, 2018
Copy link
Member

@dirk-thomas dirk-thomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Beside the little question.

@@ -131,13 +131,13 @@ GraphListener::run_loop()

// Resize the wait set if necessary.
if (wait_set_.size_of_guard_conditions < (node_graph_interfaces_.size() + 2)) {
ret = rcl_wait_set_resize_guard_conditions(&wait_set_, node_graph_interfaces_.size() + 2);
ret = rcl_wait_set_resize(&wait_set_, 0u, node_graph_interfaces_.size() + 2, 0u, 0u, 0u);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question regarding the u as is ros2/rcl#285 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc85162. Assuming change is safe and not re-running CI

@sloretz sloretz merged commit 4653bfc into master Aug 27, 2018
@sloretz sloretz deleted the rcl_consolidate_wait_set_functions branch August 27, 2018 18:55
@sloretz sloretz removed the in review Waiting for review (Kanban column) label Aug 27, 2018
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this pull request Aug 5, 2022
…ore shutdown (ros2#541)

fix ros2#540 
* if cache data exists, it needs to flush the data into the storage before shutdown.
* cache_ needs to reset after writing to storage.
* add reset_cache() method.

Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants