Skip to content
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

Propagate return values alongside the data #495

Merged
merged 1 commit into from
Jun 3, 2015
Merged

Conversation

barbalberto
Copy link
Collaborator

Each value broadcasted inside the stateExt port is paired with a boolean flag telling if the value is valid or not.
The flag will be set to true if the corresponding getXXX function in the remote device driver was succesful or false otherwise.
In this way if the user application tries a getMotorAcceleration and the robot/simulator does not implement this function (or it fails somehow) the return value in the user application will be false.
Right now, since all broadcasted values are always available the return value was always true but I think this is not correct.
This will re-establish the same behaviour of the former version of yarp without the stateExt.

… remote

client if a specific field data is correct or not.

Increased protocol version number
@lornat75
Copy link
Member

lornat75 commented Jun 1, 2015

This change looks ok to me.

drdanz added a commit that referenced this pull request Jun 3, 2015
Propagate return values alongside the data
@drdanz drdanz merged commit ef3d254 into master Jun 3, 2015
@randaz81
Copy link
Member

randaz81 commented Jun 3, 2015

now getEncoders() returns false and yarpmotorgui does not open anymore... please test before merge! (and add a test case on the return values in the test suite...)

UPDATE: it was found that icub-main was not updated to the last version. Do we need to increase the tweak number? Or increase the run-time check on the wrapper/control board protocol?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants