-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add legs FT IMU frames #122
Conversation
- add individual accelerometer and gyroscope type frames to the associated IMU frame - fix naming conventions - sensorName to be all in small letters - do not export these frames as zero-mass links in the urdf - just add these frames as sensor frames to the associated link
….txt Cmake will add the params to the yaml file only when building the normal iCub2.5 model
Using urdf_parser_py's commit 31474b9baaf7c3845b40e5a9aa87d5900a2282c3, that precedes the regression introduced in ros/urdf_parser_py#26 (ros/urdf_parser_py#26) and discussed in robotology/simmechanics-to-urdf#36 (robotology/simmechanics-to-urdf#36). The commit used is based from the info contained in this icub-models commit: robotology/icub-models@b69b989 (robotology/icub-models@b69b989).
Now the cI tests seems to be correctly working. There is a test failure:
the error is valid (a 0.1 mm difference between r_sole and l_sole frames, probably hinting to some strange asymmetry in the model), but given the small difference we can just increase the tolerance in https://github.com/robotology/icub-model-generator/blob/bada6e53f0c874d80812a0b3cd146145d1ea85c9/tests/icub-model-test.cpp#L195 for now and open a issue for tracking this problem later. |
Can you copy your message here? This is a public repo, and not everyone reading this issue/PR will have access to the repo that you linked, thanks! |
@traversaro Definitely. @traversaro said,
@prashanthr05 said,
@fjandrad said,
@traversaro said,
@prashanthr05 said,
|
CI is finally green, @prashanthr05 can you please approve? Thanks! |
Small note: as discussed in robotology/icub-models#20 (comment), merging this PR may change the orientation and location of the upper body frames. cc @kouroshD @GiulioRomualdi @S-Dafarra @Yeshasvitvs @lrapetti @MiladShafiee |
I hope none of the frame transformations are hard-coded anywhere? If that's the case, it's really bad practice and I strongly suggest to change it. Possible hard-codes should only be the frame names! if this shouldn't be a blocking issue, I will proceed and approve the PR. |
We had a few discussion about this on the xsens-based retargeting, I think @kouroshD @Yeshasvitvs @lrapetti can provide more links or explain f2f . |
They are not hardcoded, but you need to know how a frame is oriented to define desired values for example. An issue is given by the desired orientation of the torso in the walking (https://github.com/robotology/walking-controllers/blob/master/app/robots/iCubGenova04/dcm_walking/hand_retargeting/qpInverseKinematics.ini#L7) or how the oculus device gives the references. I am afraid this could be a major issue. |
I think for the xsens-based retargeting there are indeed hardcoded in the human link <---> robot link transform. |
Yes, they are "hardcoded" in the model |
Relevant issue for automatic updated robot model generation from human to robot links |
Hi @Yeshasvitvs , as that issue is not public, I suggest to copy any info that you may find relevant directly here, thanks. |
Unfortunately that model (if I am not wrong) still uses the meshes from the icub-models's iCubGazeboV2_5, so if the link frames of that model change, the meshes will also change, and so the visualization for that model can break. |
yes, it is as you said, but as I was saying the visualization is achieved trough |
Unless there are objections, I plan to merge this on the 20th of November. This will trigger an update of the icub-models repo. |
CC |
Obviously I had forgot about this. @prashanthr05 @MiladShafiee for the future, please ping me whenever you see that something is not happening as announced, thanks! |
To be honest, this PR still needs to be reviewed, so if you could review it @prashanthr05 @MiladShafiee @DanielePucci then we can merge, thanks! |
Please @prashanthr05, @nunoguedelha and @MiladShafiee provide code review. This is important, if we could do it today it would be great |
Just to clarify, even a single review is ok for the merge. |
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.
I approve of the PR hoping that the consequent induced changes in the frame transformations on the upper body will not disrupt any workflow and keeping the changes minimal for specific user-cases like task-space control in walking described by @S-Dafarra here and in retargeting described by @lrapetti here, or more.
I approved this PR based on our reviews of previous PRs (which were closed, changes accounted for in this PR) that lead to these changes. The major review was the error tolerance in the tests, that was causing the Travis to fail and also reverting back to stable versions of dependencies. However, since an issue remains open indicating these changes, we can proceed with the merge. Previous PRs: |
I can review it and would you please guide me what should I check mostly? 😄 |
Thanks, @prashanthr05 already reviewed. For the future, a good guide to code reviews is available at https://google.github.io/eng-practices/review/reviewer/ . |
As a side note, I reviewed the changes anyway. |
As second side, for the next times, it's recommended, when possible, to have the PR reviewed and approved by people that didn't participate in the changes. |
I totally agree. |
See #113 .