Idyntree: Parsing a URDF <visual> or <collision> with the origin tag produces an invalid `link_H_geometry` transform

Created on 27 Sep 2018  路  5Comments  路  Source: robotology/idyntree

If you parse a element such as:
~xml





~

the resulting link_H_geometry in the shape object is not initialized. If you just add a origin;
~xml






~

everything works fine.

Bug Help Wanted

Most helpful comment

Because iDynTree::Transform does not initialise to identity by default.
Should be enough to either

All 5 comments

Because iDynTree::Transform does not initialise to identity by default.
Should be enough to either

Because iDynTree::Transform does not initialise to identity by default.

Yes, that was a controversial decision but it proved to be necessary for performance (see https://github.com/robotology/idyntree/issues/98). Thanks for the quick suggestion!

Yes, I remember that decision. But I always forget about it. During tests I caught a couple of these errors, but I think I missed this one.

I think it would be nice to run again #98 with more modern compiler and C++ stuff (like = default) to see how things have changed during time.

Any way we can have a demo on how to use/get/read/dostuff with the collision and visual elements ?

Any way we can have a demo on how to use/get/read/dostuff with the collision and visual elements ?

Thanks for the suggestion, I opened a new issue at https://github.com/robotology/idyntree/issues/563 . Not sure if I can work on it in the next future, in the mean while there are some existing places in the codebase in which the API is used:

Was this page helpful?
0 / 5 - 0 ratings