Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

[rclcpp] Add class Waitable #589

Merged
merged 13 commits into from
Nov 22, 2018
Merged

[rclcpp] Add class Waitable #589

merged 13 commits into from
Nov 22, 2018

Conversation

jacobperron
Copy link
Member

Provides a virtual API for interacting with wait sets.

Closes #588

Provides a virtual API for interacting with wait sets.
@jacobperron jacobperron added the in progress Actively being worked on (Kanban column) label Nov 21, 2018
@jacobperron jacobperron added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Nov 21, 2018
@jacobperron jacobperron self-assigned this Nov 21, 2018
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM but for a small doubt

if (!wait_set->timers[i]) {
timer_handles_[i].reset();
}
}
for (size_t i = 0; i < timer_handles_.size(); ++i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@jacobperron twice on timers? I feel like I'm missing something here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy-pasta 😬. Fixed in a4a5493.

@hidmic
Copy link
Contributor

hidmic commented Nov 21, 2018

@jacobperron one CI run and this guy is good to go.

@sloretz
Copy link
Contributor

sloretz commented Nov 21, 2018

Should add NodeWaitables to lifecycle node as well

@jacobperron
Copy link
Member Author

Should add NodeWaitables to lifecycle node as well

Thanks, LGTM.

@jacobperron
Copy link
Member Author

With tests:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@sloretz
Copy link
Contributor

sloretz commented Nov 22, 2018

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@jacobperron
Copy link
Member Author

Rebuild:

  • macOS Build Status
  • Windows Build Status

@hidmic
Copy link
Contributor

hidmic commented Nov 22, 2018

I believe Windows is failing because those RCLCPP_PUBLIC macros in ros2/system_tests#314 shouldn't be there. I'll take them out and re-trigger the job (if CI is there still).

@jacobperron
Copy link
Member Author

jacobperron commented Nov 22, 2018

Windows: Build Status

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM!

@jacobperron jacobperron merged commit 27b0428 into master Nov 22, 2018
@jacobperron jacobperron removed the in review Waiting for review (Kanban column) label Nov 22, 2018
@jacobperron jacobperron deleted the jacob/waitable branch November 22, 2018 22:03
@sloretz sloretz mentioned this pull request Nov 27, 2018
24 tasks
cho3 pushed a commit to cho3/rclcpp that referenced this pull request Jun 3, 2019
* [rclcpp] Add class Waitable

Provides a virtual API for interacting with wait sets.

* [rclcpp] Add node interface for Waitables

* [rclcpp] Implement node interface for Waitables

* [rclcpp] Integrate Waitable entities with executor

* Implement remaining logic for integrating Waitables

* Add visibility macros and other refactoring to Waitable class

* Return zero size for entities in a Waitable by default

* Bugfix: Clear list of waitable handles

* Bugfix: update Waitable handle list based on readiness

* Bugfix: update for loop condition

* Give node a node_waitables_

* Give lifecycle node a node_waitables
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
Signed-off-by: Donghee Ye <donghee.ye@samsung.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants