-
Notifications
You must be signed in to change notification settings - Fork 39
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
Bugfix in Yarp iRobotControl implementation #118
Bugfix in Yarp iRobotControl implementation #118
Conversation
… in YarpRobotControl class
…e when the YarpRobotControl interface is initalized
a96a357
to
8c17556
Compare
constexpr unsigned maxIter = 100; | ||
constexpr unsigned timeout = 500; |
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.
Is it worth putting them as part of the initialization parameters?
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.
We can have default values and the user can change them. Do you agree?
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.
Absolutely
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.
Done in 78738d2
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.
Approved considering the changes suggested by @S-Dafarra !
…eter in the YarpRobotControl class
Waiting for @S-Dafarra approval before merging |
ok = ok && ptr->getParameter("positioning_tolerance", m_pimpl->positioningTolerance); | ||
// optional parameters | ||
int temp = 0; | ||
if (ptr->getParameter("reading_timeout", temp)) |
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.
The problem with this is that if the reading_timeout
field is missing, it will always throw an error. We may need to add a "quiet" mode for optional parameters. Anyways, this goes outside the scope of this PR.
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.
The problem with this is that if the reading_timeout field is missing, it will always throw an error. We may need to add a "quiet" mode for optional parameters. Anyways, this goes outside the scope of this PR.
Yes, this is really annoying. I opened an issue for that: #120
This PR fixes two bugs in the
yarp
implementation of theiRobotControl
class.