-
Notifications
You must be signed in to change notification settings - Fork 310
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
fix multiple system unconfigured rise cleanup #1175
fix multiple system unconfigured rise cleanup #1175
Conversation
636616e
to
59b72d1
Compare
Hi @anscipione, thanks for your PR and reporting the issue. Have you checked the test locally? This change breaks the tests. I have a proposal to make the change more readable. Please add these lines at the very beginning of the methods.
And we should update the tests too. |
59b72d1
to
deb4753
Compare
- fix system components - fix other components
b47e71a
to
63b725d
Compare
I applied the suggested change. |
…figured_components
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1175 +/- ##
==========================================
+ Coverage 47.89% 47.93% +0.03%
==========================================
Files 41 41
Lines 3451 3461 +10
Branches 1876 1881 +5
==========================================
+ Hits 1653 1659 +6
- Misses 444 446 +2
- Partials 1354 1356 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7f8af64
to
5184402
Compare
@@ -197,6 +197,11 @@ return_type Sensor::read(const rclcpp::Time & time, const rclcpp::Duration & per | |||
{ | |||
// TODO(destogl): discuss what should be default return value, e.g., "NOT_EXECUTED" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO(destogl): discuss what should be default return value, e.g., "NOT_EXECUTED" | |
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | |
{ | |
return return_type::OK; | |
} |
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | ||
{ | ||
return return_type::OK; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | |
{ | |
return return_type::OK; | |
} |
@@ -216,6 +216,11 @@ return_type System::read(const rclcpp::Time & time, const rclcpp::Duration & per | |||
{ | |||
// TODO(destogl): discuss what should be default return value, e.g., "NOT_EXECUTED" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO(destogl): discuss what should be default return value, e.g., "NOT_EXECUTED" | |
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | |
{ | |
return return_type::OK; | |
} |
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | ||
{ | ||
return return_type::OK; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | |
{ | |
return return_type::OK; | |
} |
@@ -233,6 +238,11 @@ return_type System::write(const rclcpp::Time & time, const rclcpp::Duration & pe | |||
{ | |||
// TODO(destogl): discuss what should be default return value, e.g., "NOT_EXECUTED" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO(destogl): discuss what should be default return value, e.g., "NOT_EXECUTED" | |
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | |
{ | |
return return_type::OK; | |
} |
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | ||
{ | ||
return return_type::OK; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (impl_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED) | |
{ | |
return return_type::OK; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to move these methods as in the proposals. I cannot merge those directly, unfortunately.
Hello @anscipione! Do you have time to address the comments of @destogl? or shall i take over and fix it in a different PR?. Right now, I ended up doing the same without knowing about this PR Thank you, |
I'll fix asap. |
Co-authored-by: Dr. Denis <[email protected]>
I couldn't introduce changes to this, so opened a follow-up #1279 |
#1171