fsstudio-team / ZeroSimROSUnity

Robotic simulation in Unity with ROS integration.
https://roboticsimulationservices.com/
MIT License
168 stars 21 forks source link

Cannot Import URDF as described in tutorial #17

Open angelr31 opened 2 years ago

angelr31 commented 2 years ago

Hello, I am trying to import the ur10 urdf as seen in the tutorial, however each time I import the urdf file I get the following error: " DirectoryNotFoundException: Could not find a part of the path "/home/angel/ur10/package:/ur_description/meshes/ur10/visual/base.dae" " Screenshot from 2021-12-15 15-32-59

Is there anything I need to modify to successfully import the urdf?

micahpearlman commented 2 years ago

Apologies, there are a couple of major errors and critical exclusions in this video. We hope to fix this in the near future. In the meantime:

  1. There is an error in the copying the meshes from docker. It should be: docker cp my_zerosim_vnc_docker:/catkin_ws/src/universal_robot/ur_description/meshes .
  2. The URDF mesh file paths need to be fixed up. Best option is to run sed from the command line on the URDF:
# fix the initial paths
sed -i 's#package://ur_description#.#g' ur10.urdf 

# ZeroSim can only load OBJ files so convert DAE extension to OBJ.  
# Remember we did a conversion of the DAE files to OBJ in the Docker image
sed -i 's#.dae#.obj#g' ur10.urdf

Now you should be able to import UR10 into ZeroSim.