-
Notifications
You must be signed in to change notification settings - Fork 13
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
Imu test - define and configure parameters of the test in the .ini file #67
Conversation
|
||
robotName = property.find("robot").asString(); // robot name | ||
portName = property.find("port").asString(); // name of the port from which the data are streamed | ||
partName = property.find("part").asString(); // name of the part of the robot on which the sensor is mounted |
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 this used anywhere?
As mentioned in an internal issue, are you sure that the code like this is able to test an IMU on the arm of the iCub? My guess is that |
You were right @traversaro, this is the error with iCubGazeboV2_5_visuomanip model: For the time being, I converted this into a draft PR. I'm going to find another solution |
I thought about a different solution, but I didn't find any. The only solution is to pass the controlled joints as a list in the configuration file (as per the controlboards), so that we can avoid the presence of the eyes_vergence or any other physical joints. For the part that concerns the joints movement of the part on which the sensor is mounted, that is: Lines 174 to 202 in a9b26df
There would be the same problem as before because opening a remote_controlboard for the remote port /icub/head and making the view on the IAxis interface, will return also the "actuated joints". Since I wasn't able to find a clean solution, as a workaround I thought that we could add a check: we could verify that the i-th joint retrieved with |
Talking f2f with @traversaro about the last comment, he suggested a better solution in terms of implementation. Instead of that workaround, it would be better to pass a list of the joints to be moved during the test inside the .ini configuration file. In this way, it would be easier (and also in terms of the execution time of the test) to test all the IMUs in future improvements. This would avoid the definition of another remote_controlboard which is unnecessary if we define at the beginning the Thanks again @traversaro for the hints! cc @Nicogene |
With b21417d, the last proposed changes have been implemented: now the list of movable joints is a parameter, as per the controlboards and the mean error value. Screencast.from.01-31-2024.11.43.38.AM.webmExcept for how the error is computed so far (tracked in another issue, to be fixed) and for the issues in the frame of the imu (roll and pitch values are swapped and the roll values jump between -pi and pi), it seems that the refactoring didn't modify the functionality of the test. I'm going to put this PR as ready for review |
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.
LGTM!
This PR aims to add the proposed improvements that came out from this PR review.
controlboards
a parameter to be defined in thetest_imu.ini
;cc @Nicogene