-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix the discrepancy of the output IAnalogSensor device between real robot and gazebo-yarp-plugins #476
Comments
Note that |
Another difference we need to handle is that, on the real robot, |
@traversaro just to let you know that this issue would be a blocker for our 2020.08 application demo. |
Hi @kouroshD @pattacini @xEnVrE , |
Hi @traversaro Relevant info is provided in this post: robotology/community#152 (comment). TL;DR
The law is: joints[i] = (1.0-std::min(1.0,std::max(0.0,analogs[2+i]/255.0))) * (chain[i].getMax()-chain[i].getMin()) + chain[i].getMin(); |
Thanks. Given that the plugin is extremely specific (it is explicitly named |
In particular, the place that needs to be modified is https://github.com/robotology/gazebo-yarp-plugins/blob/master/plugins/maissensor/src/MaisSensorDriver.cpp#L211 , the joint hw limits can also be readed from Gazebo. |
Fixed, isn't it? |
Currently, the outputs of the IAnalogSensor Device from the real robot are the raw values, i.e., 0-255 values. However, the output of simulated robot are in radians. This behavior has been observed for the values of the analog sensors of the hand joints.
CC @traversaro
The text was updated successfully, but these errors were encountered: