ucla-mobility / OpenCDA

A generalized framework for prototyping full-stack cooperative driving automation applications under CARLA+SUMO.
Other
1k stars 198 forks source link

Ubuntu16.04 can NOT run Two-lane highway test #127

Closed CharlesWolff6 closed 2 years ago

CharlesWolff6 commented 2 years ago

Hi, Thanks for the great work

I try to run the single_2lanefree_carla on Ubuntu 16.04, but it failed:


~/OpenCDA$ python opencda.py -t single_2lanefree_carla OpenCDA Version: 0.1.0 Traceback (most recent call last): File "opencda.py", line 56, in main() File "opencda.py", line 40, in main testing_scenario = importlib.import_module("opencda.scenario_testing.%s" % opt.test_scenario) ... import open3d as o3d File "/home/anaconda3/envs/opencda/lib/python3.7/site-packages/open3d/init.py", line 56, in _CDLL(str(next((_Path(file).parent / 'cpu').glob('pybind*')))) File "/home/anaconda3/envs/opencda/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /home/anaconda3/envs/opencda/lib/python3.7/site-packages/open3d/cpu/pybind.cpython-37m-x86_64-linux-gnu.so)

I searched in google and found that it maybe the problem of open3d which uses glibc 2.27 Ubuntu16.04 seems to not be supported anymore. Ubuntu 16.04 use only glibc 2.23

https://github.com/isl-org/Open3D/issues/1898

so Am I must upgrade my Ubuntu to 18.04?

DerrickXuNu commented 2 years ago

Hi, thanks for reporting this. Actually, I think you can just downgrade your open3d to a previous version to give a try first.

CharlesWolff6 commented 2 years ago

Hi, I downgrade the open3d to 0.9.0.0 It has another error:

File "/home/OpenCDA/opencda/core/sensing/perception/perception_manager.py", line 345, in init self.o3d_vis = o3d_visualizer_init(vehicle.id) File "/home/OpenCDA/opencda/core/sensing/perception/o3d_lidar_libs.py", line 104, in o3d_visualizer_init top=270) RuntimeError: [Open3D ERROR] GLFW Error: GLX: Failed to create context: GLXBadFBConfig

I think maybe the open3d version is too old. So I modified the "single_2lanefree_carla.yaml" line 20,  change lidar_visualize from true to false.   It worked.
DerrickXuNu commented 2 years ago

What gpu and driver you are using?