#!/usr/bin/env bash source bash_utils.sh CONFIG_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) CONFIG_DIR=$(readlink -f $CONFIG_DIR) # this reads the actual path if a symbolic directory is used OpenCV_DIR=/usr/local/include cd $CONFIG_DIR # this brings us in the actual folder of this config script (not the symbolic one) #echo "current dir: $CONFIG_DIR" # ==================================================== # C++ standard # ==================================================== export CPP_STANDARD_VERSION=17 # we need c++17 since nvcc does not support c++20 yet (probably we can try mixing c++ standards and just let nvcc use c++17 ... not sure this is the best choice) # ==================================================== # OpenCV Settings # ==================================================== # 1: ON, 0: OFF export USE_LOCAL_OPENCV=1 # use a local installation of OpenCV # or you can set manullay OpenCV_DIR # export OpenCV_DIR="path to my OpenCV folder" # export OpenCV_DIR # here not set #export OPENCV_VERSION=4 # ==================================================== # CUDA Settings # ==================================================== # N.B: if you do not have installed opencv with CUDA support you must set above: # USE_LOCAL_OPENCV=1 # 1: ON, 0: OFF export USE_CUDA=1 # use CUDA in PLVS sparse SLAM export CUDA_VERSION="cuda-11.1" # must be an installed CUDA path in "/usr/local"; # if available, you can use the simple path "/usr/local/cuda" which should be a symbolic link to the last installed cuda version if [ ! -d /usr/local/$CUDA_VERSION ]; then CUDA_VERSION="cuda" # use last installed CUDA path in standard path as a fallback fi export PATH=/usr/local/$CUDA_VERSION/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/$CUDA_VERSION/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export CUDADIR=/usr/local/$CUDA_VERSION # ==================================================== # Dataset Settings # ==================================================== # to be used in run/xterm scripts export DATASETS_FOLDER="~/Work/datasets/rgbd_datasets/tum/" # ==================================================== # ROS Settings # ==================================================== export INSTALL_CATKIN_TOOLS=1 # now this is compulsory export USE_ZED_CAMERA=0 # ( you need to install the last zed camera SDK) export USE_REALSENSE_D435=0 export USE_ELAS_ROS=0 # ==================================================== # Check and Manage Settings # ==================================================== # auto-managed things below ... # ==================================================== # SIMD # check SIMD supports export HAVE_SSE3=$(gcc -march=native -dM -E -