Object_detection_birds_view.py fails with freeglut error

Good news. This resolved my issue. I could not run “sudo ubuntu-drivers install” as it complained about broken packages. However, I already had the drivers installed (NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 ) and I went ahead with the test. It worked.

Here is the output for “glxinfo | grep OpenGL”. So, it seems the “prime-select nvidia” solved the issue for me.

neel@neel-Precision-5570:/usr/local/zed/samples/object detection/birds eye viewer/python$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA RTX A2000 8GB Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.65.01
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 515.65.01
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.65.01
OpenGL ES profile shading language version string: O