Skip to content

VINS-Mono setup for different nvidia boards: Jetson TX2, Xavier, NX

Notifications You must be signed in to change notification settings

zinuok/VINS-MONO

Repository files navigation


VINS-MONO

  • hardware setup
    • jetson TX2 - Jetpack 4.2
    • jetson AGX Xavier
    • jetson Xavier NX - Jetpack 4.4
    • realsense D435i (color, infra1, infra2)
    • pixhawk4 mini

  • software setup
    • Ubuntu: 18.04
    • ROS: Melodic
    • OpenCV 3.4.1

  • github link: HKUST-Aerial-Robotics


Index

1. Prerequisites

    ● Eigen

    ● Ceres solver

2. Install

3. Jetson Boards

    ● Actually, there is no installation difference among TX2, Xavier, and NX

4. Run



1. Prerequisites

● Eigen

$ wget https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip
$ unzip eigen-3.3.7.zip
$ cd ~/eigen-3.3.7 && mkdir build && cd build
$ cmake ../ && sudo make install -j $(nproc)

● Ceres solver

  • Ceres solver from here
$ sudo apt-get install -y cmake libgoogle-glog-dev libatlas-base-dev libsuitesparse-dev
$ wget http://ceres-solver.org/ceres-solver-1.14.0.tar.gz
$ tar zxf ceres-solver-1.14.0.tar.gz
$ cd ceres-solver-1.14.0
$ mkdir build && cd build
$ cmake -DEXPORT_BUILD_DIR=ON \
        -DCMAKE_INSTALL_PREFIX=/usr/local \
        ../
$ make -j $(nproc) # number of cores
$ make test -j $(nproc)
$ sudo make install -j $(nproc)

● cv_bridge

  • if you built OpenCV manually(refer here), you should also build 'cv_bridge' manually from source.
  • Download from proper branch in here according to your ROS version. For example,
$ cd ~/catkin_ws/src
$ git clone -b melodic https://github.com/ros-perception/vision_opencv.git



2. Install

  • git clone and build from source
$ cd ~/catkin_ws/src
$ git clone https://github.com/HKUST-Aerial-Robotics/VINS-Mono.git
$ cd ../ && catkin build -DCMAKE_BUILDTYPE=Release -j $(nproc)
$ source ~/catkin_ws/devel/setup.bash

3. Jetson Boards

● Actually, no installation difference among TX2, Xavier, and NX



4. Run

● Uploaded folders for following setup: D435i, pixhawk4 mini

● for using your own sensor setup, you have to get a calibration data using kalibr

$ roslaunch realsense2_camera rs_camera.launch
$ roslaunch mavros px4.launch
$ roslaunch vins_estimator realsense_color.launch
$ roslaunch vins_estimator vins_rviz.launch

About

VINS-Mono setup for different nvidia boards: Jetson TX2, Xavier, NX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published