Page 1 of 1

sw2urdf export x.urdf can not be loaded to pybullet

Posted: Thu Dec 14, 2017 6:43 am
by hotgarlic
As my discription, I transfer an assembly in solidworks by sw2urdf plugin tool.
Copy the x.urdf to directory fo pybullet physical sever.
Run loadURDF code, the error printed"Can not load"

I dont know what step is wrong.

Re: sw2urdf export x.urdf can not be loaded to pybullet

Posted: Thu Dec 14, 2017 11:01 am
by ardabbour
When you export using the sw2urdf tool, you can't just move or copy the URDF file alone without its folder. You should give the path of URDF in the folder exported by the tool. So, if you move the entire folder exported by the sw2urdf tool to your root directory, you should be able to use something like this:

p.loadURDF("drawingname/urdf/drawingname.urdf")

I hope it is clear now.

Re: sw2urdf export x.urdf can not be loaded to pybullet

Posted: Thu Dec 14, 2017 11:53 am
by hotgarlic
Thanks!

I got the model I want follow your advise.