To run just 1 camera simply run in a terminal roslaunch pp_alvium_driver rgb_only.launch
or roslaunch pp_alvium_driver nir_only.launch
. The launch files should also work in your IDEs (tested on PyCharm Pro).
To run 2 cameras simultaneously:
- run
roslaunch pp_alvium_driver rgb_only.launch
in a terminal - then open another terminal, and run
conda activate <<virtual env>>
- in the activated conda's
<virtual env>>
runroslaunch pp_alvium_driver nir_only.launch
The whole point for the virtual environemnt is that I could not manage to use alvium's VimbaPython/Examples/multithreading_opencv.py
to get the desired frequencies for both cameras. Things start breaking up when my second camera wants to achieve fps > 20 Hz
- Instead of a typical
config.yaml
file, you set up your config directly in thescripts/*.py
files. Enter your camera ID ascam_id
, desired frequencyfrequency
and the camera calibration fileyaml_fname
- Install
Vimba_4_2
to a desired python as instructed byVimbaPython/Install.sh
- Make sure that
GENICAM_GENTL64_PATH
points topath/2/vimba/Vimba_4_2/VimbaUSBTL/CTI/x86_64bit
- This code has been tested on python 3.7 and python 3.8