tmkit icon indicating copy to clipboard operation
tmkit copied to clipboard

"Geometry Attributes" for stuff loaded via URDF

Open clemense opened this issue 7 years ago • 9 comments

Is it possible to add "Geometry Attributes" (like "isa") to things loaded via URDF?

clemense avatar Mar 22 '18 21:03 clemense

Alright, got it, sorry. Will just use "aarxc scene.urdf -s scene.robray" to convert to robray and then add things by hand. Unfortunately, this solution requires to redo these steps every time "scene.urdf" changes. If there's a more convenient solution I'm curious to know.

clemense avatar Mar 22 '18 21:03 clemense

Can you give a more specific example of what the URDF looks like and what attribute you want in the scene / robray file?

ndantam avatar Mar 22 '18 21:03 ndantam

I have an articulated object as part of the scene and would like to tag certain parts like handles via the "isa" property. Do you think this is the wrong way to model this?

clemense avatar Mar 22 '18 21:03 clemense

Sounds reasonable... Is the "isa" property included in standard URDF?

ndantam avatar Mar 22 '18 22:03 ndantam

No, URDF is very restricted.

clemense avatar Mar 22 '18 22:03 clemense

Is there an API to maybe modify the scene graph after it is loaded? In order to add such (semantic) properties.

clemense avatar Mar 22 '18 22:03 clemense

Yes, you could do this with a short Lisp script to load the scene file, modify the scene graph data structure, and then output the result. The relevant functions should mostly be here: https://github.com/golems/amino/blob/master/lisp/rx/scenegraph.lisp.

It would be possible to bind these functions in (CL)Python, if that would make the process more accessible. What do you think?

ndantam avatar Mar 22 '18 22:03 ndantam

Cool! Yes, I would prefer the python interface.

clemense avatar Mar 22 '18 22:03 clemense

OK, there is a partial CLPython binding already: https://github.com/golems/amino/blob/master/lisp/py/user.lisp

Just need to include the additional functions for scene graph I/O and manipulation. Please give me a couple days to look into this.

ndantam avatar Mar 22 '18 22:03 ndantam