This file will get you started with the ZED2i cameras.
The first step is to install the ZED SDK, before installing:
- Ensure you have nvidia-drivers installed, check with
nvidia-smi
. The installer will automatically install a CUDA 11.X version is you do not have it. - During the setup, you will be asked whether the Python API should be installed. Make sure to activate the venv of conda env you want to use with the ZED cameras. (You can also answer
no
and install the Python package later.) - You can say
no
to the AI-model stuff.
Now follow this ZED Installation Guide.
You only need to complete the first part Download and Install the ZED SDK
.
If you did not install the Python API during the SDK setup, you can install it now:
conda activate airo-mono python /usr/local/zed/get_python_api.py
If this fails, install the dependencies from the ZED Python API Installation.
After finishing the installation reboot your pc.
First plug in the USB cable to the ZED into your laptop.
Then we can try opening the ZED_Explorer
by running the following command in a terminal:
/usr/local/bin/ZED_Explorer
This should open up a viewer that looks like this:
If the ZED_Explorer
works as expected, you can try the ZED_Depth_Viewer
:
/usr/local/bin/ZED_Depth_Viewer
If you get a segmentation fault and your CPU has a built-in GPU, have a look here for a possible fix. Basically you have to make sure that your external GPU is used when opening the ZED Depth Viewer.
Now We will test whether our `airo_camera_toolkit can access the ZED cameras. In this directory run:
conda activate airo-mono
python zed.py
Complete the prompts. If everything looks normal, congrats, you successfully completed the installation! 🎉
There is a ZED diagnostics tool that you can use if things are not working. run ZED_Diagnostic
. However, don't expect too much from it..