-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add option to skip initial calibration and use zero offsets #72
Add option to skip initial calibration and use zero offsets #72
Conversation
@@ -942,7 +961,7 @@ bool WholeBodyDynamicsDevice::applyLPFSettingsFromConfig(const yarp::os::Propert | |||
{ | |||
return false; | |||
} | |||
|
|||
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.
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 in b495053
{ | ||
this->setFTSensorOffsetsToZero(); | ||
validOffsetAvailable = true; | ||
ok = ok && true; |
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.
It is not really clear what is the point of this line.
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.
I added that redundant code to debug and forgot to remove.
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 in b495053
if ( !(prop.check("skipResetOffset") && prop.find("skipResetOffset").isBool()) ) | ||
{ | ||
yWarning() << "wholeBodyDynamics: skipResetOffset bool parameter missing."; | ||
yWarning() << "wholeBodyDynamics: setting skipResetOffset to the default value of false, please remember to resetOffset through the rpc port."; |
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.
This is misleading. On the real robot, you don't have to remember to call resetOffset
.
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.
Noted. I will remove that line.
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 in b495053
Thanks! Minor comments: to be honest, the parameter name Furthermore note that a similar functionality (let user specify user-defined offsets, not just 0) is also provided in #45, so we should consider if the two options can coexist (probably yes, |
Agreed. I think
I revisited that PR and noticed that. Indeed, it allows the user to add an However, if its agreed to have both the options so that they can be used without any confusion, I will rename the parameter to what is agreed upon. Otherwise, we can close this PR. |
I agree that having both options make sense, especially for simulation users so that they do not need to add a complex |
I will proceed to rename the option with |
b495053
to
ef3b7f6
Compare
ef3b7f6
to
68fef48
Compare
CHANGELOG.md
Outdated
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. | |||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | |||
|
|||
## Unreleased | |||
### Added | |||
- Added 'skipResetOffset' to disable/enable bypassing of resetOffset rpc call for setting FT sensor offsets to zero. (See [!72](https://github.com/robotology/whole-body-estimators/pull/72)). |
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.
- Added 'skipResetOffset' to disable/enable bypassing of resetOffset rpc call for setting FT sensor offsets to zero. (See [!72](https://github.com/robotology/whole-body-estimators/pull/72)). | |
- Added 'startWithZeroFTSensorOffsets' to disable/enable bypassing of resetOffset rpc call for setting FT sensor offsets to zero. (See [!72](https://github.com/robotology/whole-body-estimators/pull/72)). |
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 in 52813c1
Approved, but check the CHANGELOG suggestion. |
68fef48
to
52813c1
Compare
Perfect! |
This PR addresses #67.
The idl files were autogenerated due to addition of parameter
skipResetFTSensorOffsetstartWithZeroFTSensorOffsets
toidl/wholeBodyDynamicsSettings/wholeBodyDynamicsSettings.thrift
. The autogenerated files are also committed along with this PR.Since by default the parameter
skipResetOffsetstartWithZeroFTSensorOffsets
is set tofalse
(as per the regular workflow), only configuration related to simulation was modified by this PR.devices/wholeBodyDynamics/app/wholebodydynamics-icub-external-six-fts-sim.xml