-
Notifications
You must be signed in to change notification settings - Fork 48
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
Wrong initialization of stepTime in the ControlBoardDriver #475
Comments
I've checked, it's still the case in |
nunoguedelha
changed the title
WIP: Wrong initialization of stepTime in the ControlBoardDriver
Wrong initialization of stepTime in the ControlBoardDriver
Apr 7, 2020
The fix is quite simple: |
Fixed by #478. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While analyzing another issue and looking into a trace of the code executed in
GazeboYarpControlBoardDriver::onUpdate
, I noticed a bug in the initialization of thestepTime
variable.More precisely, the bug is in the block:
gazebo-yarp-plugins/plugins/controlboard/src/ControlBoardDriver.cpp
Lines 453 to 458 in 2839964
The first time computation should be applied to all controlboards, but is only applied to the first one (torso) because we use here a "static" variable which is static to the class method but not separately for each object.
So the computed
stepTime
is correct for the first updated controlboard, but wrong for the others. this issue has little or no consequence on the behavior except if we use Derivative (Kv) or Integral (Ki) gains.I still have to check if this is true in the last commit, so I left the issue in [WIP].CC @traversaro
The text was updated successfully, but these errors were encountered: