-
Notifications
You must be signed in to change notification settings - Fork 3
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
CREO2URDF – MVP-2 kick-off #23
Comments
Today w/ @mfussi66 noticed that the features inside the copy geometry can be taken transparently (e.g. as axis or as csys), so we didn't need to do anything in this sense. We started then modifying See 4932222 We noticed that the |
See 4932222#r114447105 . |
Alongside @mfussi66 we fixed some bugs in axis definitions (see ef64224). We noticed that we are missing the SCSYS for the first link (NECK_1), this is required for us to correctly define the transforms from links. We are assuming that the first one is an identity but it is not what we actually have. We are still getting errors in the export of the urdf, maybe it is due to the fact we have the wrong first transform, or maybe we have some bug around. |
See robotology/idyntree#1064 . As a first test we can try https://stackoverflow.com/questions/10150468/how-to-redirect-cin-and-cout-to-files , even if it is probably not clean as it interferes with the global process state. |
See https://github.com/robotology/idyntree/blob/v9.0.0/src/model_io/codecs/src/URDFModelExport.cpp#L365 . See also other |
And indeed we have the error on the exporter, related to the first joint:
|
By defining the joint origin as the position of the child coordinate system we were able to fix the error. Initially, we put (0 0 0) assuming that the origin would be taken from the required transform, see here . I'm not 100% sure that it is the intended usage, but the urdf is now valid. However, we still need to correct the wrong pose of some of the links and joints. Since we loop through the kinematic chain, it might be just a matter of checking if all the correct steps are taken, and apply the fix from @Mick3Lozzo . |
Added |
So in the urdf in the previous post there was a problem in the link transforms. Basically, whenever we retrieved them, they had an unexpected rotation around the Z axis of 180deg, compared to the measurement by hand inside Creo. So after a lot of checks and verifications, I think we have a potentially working URDF of the head, with all the links and joints in correct order and placement: BUTWhat fixed the problem? Since we need the transforms as iDynTree structures, we made a deep copy to convert from I'm fairly sure that there are no other errors in the code that compensate for this transposition, but it might be useful to make a test in an environment with only two coordinate systems, and see what the transform is when printed from the toolkit in (row, col). |
Probably it is not a col/row problem, just a matter of |
I suspected that too, but what worried me was the fact that a simple retrieval of a transform would return only the rows and columns of the rotation matrix switched, compared to the program: |
Task description
As preliminary steps of MVP-2 we would like:
Definition of done
The above list is completed
The text was updated successfully, but these errors were encountered: