Skip to content

Rcl consolidate wait set functions#540

Merged
sloretz merged 3 commits intomasterfrom
rcl_consolidate_wait_set_functions
Aug 27, 2018
Merged

Rcl consolidate wait set functions#540
sloretz merged 3 commits intomasterfrom
rcl_consolidate_wait_set_functions

Conversation

@sloretz
Copy link
Copy Markdown
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
Copy Markdown
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.

// 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
Copy Markdown
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
Copy Markdown
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.

2 participants