A navigation simulator (navsim) API built on top of Python, Pytorch.
In the future, navsim may be compatible with a variety of simulators, but for now it uses A Realistc Open environment for Rapid Agent training(ARORA) Simulator, that is a highly attributed Unity3D GameEngine based Berlin city environment.
Getting started#
You can either run navsim inside container or directly in host without container.
Get the code#
clone the navsim
repo:
git clone --recurse-submodules git@github.com:ucf-sttc/navsim.git
All further commands should be done inside navsim repo: cd navsim
Errors FAQ#
vulkan error while starting the container#
ERROR: [Loader Message] Code 0 : /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so: cannot open shared object file: No such file or directory
No protocol specified
No protocol specified
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: cannot open shared object file: No such file or directory
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: cannot open shared object file: No such file or directory
ERROR: [Loader Message] Code 0 : /usr/lib/x86_64-linux-gnu/libvulkan_intel.so: cannot open shared object file: No such file or directory
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: cannot open shared object file: No such file or directory
ERROR: [Loader Message] Code 0 : /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so: cannot open shared object file: No such file or directory
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo/vulkaninfo.h:666:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
Solution: For fixing this error you have to update your nvidia driver and fix the id inside the container, as follows:
Check your nvidia driver with the following commands:
sudo apt list --installed | grep nvidia-driver
andnvidia-smi
For example on our laptop:
armando@thunderbird:~/workspace/navsim$ sudo apt list --installed | grep nvidia-driver
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
nvidia-driver-470/focal-updates,focal-security,now 470.182.03-0ubuntu0.20.04.1 amd64 [installed]
armando@thunderbird:~/workspace/navsim$ nvidia-smi
Sun May 14 10:53:30 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.182.03 Driver Version: 470.182.03 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
Reinstall the nvidia-driver or update it to latest one.
sudo apt update
sudo apt install nvidia-driver-530
sudo reboot
If you dont rebooot after installing the driver then you will get the following error:
Failed to initialize NVML: Driver/library version mismatch
Update the id inside the container as per section: fix the user id inside the container