-
Notifications
You must be signed in to change notification settings - Fork 2
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
Avoid setting control mode at each control loop iteration #41
Comments
The problem is that the setTorques block is setting the control mode at each control loop, see https://github.com/robotology-playground/WBI-Toolbox/blob/new_wbi_ID/libraries/wbInterface/src/wbInterface.cpp#L1362 . Setting the control mode is a costly RPC operation, and should be done only once. A sketch of the cost of every part of the functions is given in this debug output:
|
The reason why this was not a problem back in v0.1 is this issue: robotology-legacy/yarp-wholebodyinterface#9 . |
The same test after robotology-legacy/yarp-wholebodyinterface@6086e55 :
|
Leaving this issue open because in the long term we should try to avoid to redo setControlMode calls at each control loop. |
cc @francesco-romano @DanielePucci , on this topic check also robotology-legacy/yarp-wholebodyinterface#9 |
It isn't completely clear to me if this issue was solved at the yarp-wholeBodyInterface level. I remember @traversaro saying that in v0.2 once it's set future calls for the same control mode are ignored. Am I correct here? |
Yes, that is the behaviour that I have implemented to solve this issue but I really don't like it, but solving this is low priority I guess. |
cc @francesco-romano
The text was updated successfully, but these errors were encountered: