Skip to content

Bond cleanups#87

Merged
mjcarroll merged 11 commits intoros2from
bond_cleanups
Jun 13, 2022
Merged

Bond cleanups#87
mjcarroll merged 11 commits intoros2from
bond_cleanups

Conversation

@mjcarroll
Copy link
Copy Markdown
Member

Replaces #76

Split out into multiple commits for easier reviews:

  • Remove a condition variable that wasn't used c66eaf3
  • Use a type alias rather than std::function f6471a5
  • Use a delegating constructor and default initialization to reduce some boilerplate 14986f9
  • Improve locking by separating the state machine locks from the pending callbacks lock, as well as reducing the scope of locks wherever possible 5c7b65c
  • Other test improvements from Fix bond tests #76

Michael Carroll added 5 commits June 2, 2022 10:58
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
@mjcarroll mjcarroll self-assigned this Jun 2, 2022
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

I've done a particular review and left some things to consider inline. I'll do a more thorough review tomorrow.

Besides those things, I think we can also make some of the getters (like getTopic) const methods, as well as the isBroken method.

Michael Carroll added 2 commits June 6, 2022 10:50
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Also switch to rclcpp::Duration internally

Signed-off-by: Michael Carroll <michael@openrobotics.org>
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

I've left a few more comments. This is definitely getting closer; this feels a lot more robust now.

Michael Carroll added 2 commits June 13, 2022 10:20
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

One more fix (for what I think is a bug), and I think this is good to go.

Signed-off-by: Michael Carroll <michael@openrobotics.org>
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Thanks for all of the iteration here. I think this leaves the code in much better shape.

@mjcarroll mjcarroll merged commit ce5346d into ros2 Jun 13, 2022
@mjcarroll mjcarroll deleted the bond_cleanups branch June 13, 2022 16:03
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.

2 participants