pietrolechthaler / UR5-Pick-and-Place-Simulation

Simulate the iteration of a UR5 robot with Lego bricks
https://youtu.be/v45mPw_XEXA
MIT License
107 stars 25 forks source link

Vision file changed and not working #4

Open aryanrajan24 opened 1 year ago

aryanrajan24 commented 1 year ago

the last command for the vision folder doesn't exist as mentioned, and using the command rosrun vision lego-vision.py -show

gives the following error:

Traceback (most recent call last):
  File "/home/aryan/.local/lib/python3.8/site-packages/torch/__init__.py", line 172, in _load_global_deps
    ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
  File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/aryan/.local/lib/python3.8/site-packages/torch/lib/../../nvidia/cublas/lib/libcublas.so.11: file too short

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/aryan/UR5-Pick-and-Place-Simulation/catkin_ws/src/vision/scripts/lego-vision.py", line 5, in <module>
    import torch
  File "/home/aryan/.local/lib/python3.8/site-packages/torch/__init__.py", line 217, in <module>
    _load_global_deps()
  File "/home/aryan/.local/lib/python3.8/site-packages/torch/__init__.py", line 178, in _load_global_deps
    _preload_cuda_deps()
  File "/home/aryan/.local/lib/python3.8/site-packages/torch/__init__.py", line 158, in _preload_cuda_deps
    ctypes.CDLL(cublas_path)
  File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/aryan/.local/lib/python3.8/site-packages/nvidia/cublas/lib/libcublas.so.11: file too short

I don't really know how to fix it, I'm using a VM for Ubuntu 20.04 and ROS Noetic.