range-mcl
range-mcl copied to clipboard
Error with the DISPLAY environment variable
Hi there, thanks for providing the code to test. However, I got an issue running the code.
==================================================================
Message=index 0 is out of bounds for axis 0 with size 0
Source=F:\Capstone\algorithms\range_mcl\src\utils.py
StackTrace:
File "F:\Capstone\algorithms\range_mcl\src\utils.py", line 340, in load_poses_kitti
inv_frame0 = np.linalg.inv(poses[0])
File "F:\Capstone\algorithms\range_mcl\src\main_range_mcl.py", line 49, in
======================================================================
I tried to search for the GLFWError 65544 but none of the solutions seems to work. Is there anything idea what is happening?
Regards Jimmy
Hey @GinWeng, thanks for using our code.
It seems that you are using a remote or virtual machine which leads to an OpenGL issue.
So far, we have no solution for running in the remote or virtual environment.
I will just put your original log here, which explicitly indicates the error, and see whether others have any solutions.
================================================================== ubuntu@windowsOfJin:/mnt/f/Capstone/algorithms/range_mcl/src$ python3 main_range_mcl.py INFO - 2021-12-16 14:47:17,664 - acceleratesupport - OpenGL_accelerate module loaded INFO - 2021-12-16 14:47:17,667 - arraydatatype - Using accelerated ArrayDatatype Load mesh map and initialize map module... /home/ubuntu/.local/lib/python3.8/site-packages/glfw/init.py:834: GLFWError: (65544) b'X11: The DISPLAY environment variable is missing' warnings.warn(message, GLFWError) Traceback (most recent call last): File "main_range_mcl.py", line 54, in map_module = MapModule(map_poses, map_file) File "/mnt/f/Capstone/algorithms/range_mcl/src/map_module.py", line 32, in init window = OffscreenWindow(show=False) File "/mnt/f/Capstone/algorithms/range_mcl/src/map_renderer/offscreen_window.py", line 13, in init if not glfw.init(): raise RuntimeError("Unable to initialize glfw.") RuntimeError: Unable to initialize glfw.