Skip to content

[rclcpp] Add class Waitable - #589

Merged
jacobperron merged 13 commits into
masterfrom
jacob/waitable
Nov 22, 2018
Merged

jacobperron merged 13 commits into
masterfrom
jacob/waitable

Conversation

@jacobperron

Copy link
Copy Markdown
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
Comment thread rclcpp/include/rclcpp/waitable.hpp Resolved
@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

@hidmic hidmic left a comment

Copy link
Copy Markdown
Contributor

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

timer_handles_[i].reset();
}
}
for (size_t i = 0; i < timer_handles_.size(); ++i) {

Copy link
Copy Markdown
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
Copy Markdown
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

hidmic commented Nov 21, 2018

Copy link
Copy Markdown
Contributor

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

@sloretz

sloretz commented Nov 21, 2018

Copy link
Copy Markdown
Contributor

Should add NodeWaitables to lifecycle node as well

@jacobperron

Copy link
Copy Markdown
Member Author

Should add NodeWaitables to lifecycle node as well

Thanks, LGTM.

@jacobperron

Copy link
Copy Markdown
Member Author

With tests:

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

@sloretz

sloretz commented Nov 22, 2018 •

Copy link
Copy Markdown
Contributor
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@jacobperron

Copy link
Copy Markdown
Member Author

Rebuild:

  • macOS Build Status
  • Windows Build Status

@hidmic

hidmic commented Nov 22, 2018

Copy link
Copy Markdown
Contributor

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

jacobperron commented Nov 22, 2018 •

Copy link
Copy Markdown
Member Author

Windows: Build Status

@hidmic hidmic left a comment

Copy link
Copy Markdown
Contributor

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
21 of 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
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
* [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
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