sw2urdf export x.urdf can not be loaded to pybullet

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
hotgarlic
Posts: 7
Joined: Sun Dec 10, 2017 3:49 pm

sw2urdf export x.urdf can not be loaded to pybullet

Post by hotgarlic » Thu Dec 14, 2017 6:43 am

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.

ardabbour
Posts: 9
Joined: Fri Oct 06, 2017 8:42 am

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

Post by ardabbour » Thu Dec 14, 2017 11:01 am

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.

hotgarlic
Posts: 7
Joined: Sun Dec 10, 2017 3:49 pm

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

Post by hotgarlic » Thu Dec 14, 2017 11:53 am

Thanks!

I got the model I want follow your advise.

Post Reply