-
Notifications
You must be signed in to change notification settings - Fork 667
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
feat(accel_map_calibrator): publish estimated covariance #2551
feat(accel_map_calibrator): publish estimated covariance #2551
Conversation
415816c
to
e1a709b
Compare
Codecov ReportBase: 11.67% // Head: 11.61% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2551 +/- ##
==========================================
- Coverage 11.67% 11.61% -0.06%
==========================================
Files 1314 1314
Lines 91508 91940 +432
Branches 24366 24366
==========================================
Hits 10679 10679
- Misses 69679 70111 +432
Partials 11150 11150
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -152,6 +160,19 @@ AccelBrakeMapCalibrator::AccelBrakeMapCalibrator(const rclcpp::NodeOptions & nod | |||
std::copy(accel_map_value_.begin(), accel_map_value_.end(), update_accel_map_value_.begin()); | |||
std::copy(brake_map_value_.begin(), brake_map_value_.end(), update_brake_map_value_.begin()); | |||
|
|||
// inialize matrix for covariance calculation | |||
{ | |||
const auto genConstMat = [](const Map & map, const auto val) { |
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.
Map -> raw_vehicle_cmd_converter::Map
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.
addressed here ccf743d
Signed-off-by: takahoribe <horibe.takamasa@gmail.com>
bf09503
to
ccf743d
Compare
…ndation#2551) * add calcuration of data covariance for 4cell-calibration. * add publisher for offset_covariance. * fix publisher of offset_covariance. * refactor code Signed-off-by: takahoribe <horibe.takamasa@gmail.com> * change publisher variance to standard deviation. * fix error Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: takahoribe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: takahoribe <horibe.takamasa@gmail.com>
…ndation#2551) * add calcuration of data covariance for 4cell-calibration. * add publisher for offset_covariance. * fix publisher of offset_covariance. * refactor code Signed-off-by: takahoribe <horibe.takamasa@gmail.com> * change publisher variance to standard deviation. * fix error Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: takahoribe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: takahoribe <horibe.takamasa@gmail.com> Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…ndation#2551) * add calcuration of data covariance for 4cell-calibration. * add publisher for offset_covariance. * fix publisher of offset_covariance. * refactor code Signed-off-by: takahoribe <horibe.takamasa@gmail.com> * change publisher variance to standard deviation. * fix error Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: takahoribe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: takahoribe <horibe.takamasa@gmail.com>
Description
In order to see the quality of the calibration data, the variance (standard deviation) on each cell is calculated and published.
Note that the calculation of the standard deviation depends on the update algorithm (with a four-cell method, one data point effects on four cells stddev.).
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.