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.
sw2urdf export x.urdf can not be loaded to pybullet
-
- Posts: 7
- Joined: Sun Dec 10, 2017 3:49 pm
-
- Posts: 9
- Joined: Fri Oct 06, 2017 8:42 am
Re: sw2urdf export x.urdf can not be loaded to pybullet
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.
p.loadURDF("drawingname/urdf/drawingname.urdf")
I hope it is clear now.
-
- Posts: 7
- Joined: Sun Dec 10, 2017 3:49 pm
Re: sw2urdf export x.urdf can not be loaded to pybullet
Thanks!
I got the model I want follow your advise.
I got the model I want follow your advise.