Segfault urdf_to_collada indigo
I am trying to convert my urdf to a collada file to use it with MoveIt and FastIK. However when I run the command:
rosrun collada_urdf urdf_to_collada hand.urdf hand.dae
I get a segmentation fault. I ran the same command in debug mode similarly to ros forum question
gdb --args /opt/ros/indigo/lib/collada_urdf/urdf_to_collada my.urdf my.dae
and I got the following debug output:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6fdd764 in collada_urdf::ColladaWriter::_loadVertices(shapes::Mesh const*, daeSmartRef<ColladaDOM150::domGeometry>) () from /opt/ros/indigo/lib/libcollada_urdf.so
Something to do with loadVertices. In my urdf I have no meshes, I only use URF circle, box and cylinder geometric primitives. Any ideas how to convert a urdf to dae ?
I have attached my hand.urdf
Update : similar issue here
Asked by gpldecha on 2015-03-23 10:55:11 UTC
Answers
As far as I know, urdf_to_collada
is the only tool for that. You mention you have a cylinder in your urdf. Have you seen robot_model/issues/45?
I've read in multiple answers that the version on Hydro still works.
Asked by gvdhoorn on 2015-03-23 11:12:13 UTC
Comments
I have seen it. I have removed all visual elements from the links, only leaving the kinematic chain relation. I am running it again, but the converter takes a very long time (it does not complete or return). How long should the conversion process take ?
Asked by gpldecha on 2015-03-23 11:23:09 UTC
When I've used it, it usually returned almost instantly, depending on the contents of the urdf.
Asked by gvdhoorn on 2015-03-23 11:26:49 UTC
I have put my urdf file here: hand.urdf do you get the same problem if you were to try to convert it ?
Asked by gpldecha on 2015-03-23 11:39:16 UTC
Under Hydro no problem: hand.dae. Well, I mean the conversion runs to completion. I cannot say anything about the quality of course.
Asked by gvdhoorn on 2015-03-23 12:38:51 UTC
I have tried again and I get the following:
I/O error : No such file or directory I/O error : No such file or directory error : xmlNewTextWriterFilename : cannot open uri
Document successfully written to hand.dae
However there is no hand.dae created.
Asked by gpldecha on 2015-03-23 15:09:58 UTC
Comments