Configuration for running ICE-BA on VIM3 Pro

VIM3 Pro

1. Download Ubuntu image [1]
* Version 4.9 is a relatively stable version through testing.
2. Create a Booting Card for VIM3 [3]
3. Insert the card into the SD-Card slot on your VIM3.
4. Connect the USB-C & HDMI cables, and VIM will power-on automatically.
5. Place your VIM3 into Upgrade Mode to complete your Firmware upgrade. [4]

* Recommend: Upgrade via a USB-C Cable. [5]
* Always remember to connect HDMI cable and USB3.0 cable after VIM3 has correctly booted up. 
* Create the SD card partition using NTFS format, and then use it as a external storage. (Mini tool will be helpful.)

Build ICE-BA

1. Follow [6] to install boost, Eigen, Gflags, Glog, Yaml, brisk.

* libtool should be installed before installing Glog.
$ sudo apt-get update -y
$ sudo apt-get install -y libtool

* Modify the content of CMakeLists.txt before compiling Yaml as following.
set(yaml_c_flags ${CMAKE_C_FLAGS}) =>  set(yaml_c_flags "${CMAKE_C_FLAGS} -fPIC")
set(yaml_cxx_flags ${CMAKE_C_FLAGS}) =>  set(yaml_cxx_flags "${CMAKE_C_FLAGS} -fPIC")

* Install libgtest-dev
$ sudo apt-get install libgtest-dev (do: sudo rm -rf /var/cache/apt/archives/lock, if get:E: Could not get lock /var/cache/apt/archives/lock)

* Replace CV_BGR2GRAY to cv::COLOR_BGR2GRAY when building brisk with OpenCV version newer than 3.0.

*OpenCV is already installed from the image, but if your OpenCV version is higher than 3.0.0, you have to revise some source code as following:
(1) Add #include <opencv2/imgproc/types_c.h> in ICE_BA/Fronted/feature_utils_feature_track.cc
(2) Add #include <opencv2/imgproc/types_c.h> in ICE_BA/Fronted/feature_utils_direct_matcher.cc
(3) Change all CV_AA to cv::LINE_AA in ICE_BA/Fronted/plotting_utils.cpp
(4) Change all CV_AA to cv::LINE_AA in ICE_BA/Fronted/pose_viewer.cc
(5) Change all CV_LOAD_IMAGE_GRAYSCALE to cv::ImreadModes::IMREAD_GRAYSCALE in ICE_BA/App/EuRoC_test.cpp 

* If you want to install ROS on VIM3 Pro, and face a conflict problem with opencv, please refer to [7-8]
Useful commands:
$ sudo dpkg --configure -a
$ sudo apt-get install -f 
$ sudo dpkg -i --force-overwrite xxx.deb

留言

這個網誌中的熱門文章

Tuing PID parameters in QGroundcontrol (2)

Useful PX4 Parameters

Burn linux image to eMMC storage on Banana Pi M3