I've put this documentation to supplement the awesome VIO repo from Auterion. While the VIO code performs very well it does take quite a bit of work to get up and running. So I'm covering this in my YouTube video and this gist.
Install ROS on Jetson Nano (YouTube Link)
Automatic Addison has great tutorials on ROS. His installation guide is the most concise out there. This section contains the commands from Addison's ROS installation guide.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'sudo apt updatesudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654sudo apt-get updatesudo apt install ros-melodic-desktop- Note: it's not necessary to do the full desktop install. I installed the base desktop package for the purposes of this tutorial.
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrcsource ~/.bashrcexport | grep ROS
ROS installation is complete. Let's install some Python dependencies that will help us when we build the VIO code shortly.
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essentialsudo apt install python-rosdepsudo rosdep initrosdep updaterosversion -d
Install librealsense for Jetson Nano (YouTube Link)
Instructions can be found here. These are the steps for this section:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDEsudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -usudo apt-get install librealsense2-utilssudo apt-get install librealsense2-dev
Install ROS Python Catkin Tools (YouTube Link)
The Python catkin package helps with managing and building workspaces. Here are the steps to install the tools:
sudo apt install python-catkin-toolsmkdir -p ~/catkin_ws/srccd ~/catkin_ws/srcgit clone https://github.com/dbaldwin/VIO.git
sudo apt install ros-melodic-mavros ros-melodic-mavros-extras- Note: change the command above to match your ROS version
wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.shsudo bash ./install_geographiclib_datasets.sh
sudo apt install ros-melodic-realsense2-camerasudo apt install ros-melodic-pcl-ros
cd ~/catkin_wscatkin build px4_realsense_bridge
- Make sure to set the right baud rate for commmunication
- If you follow the video this will be 500000 baud
- Make sure to set the correct IP address of your ground station
- Verify your T265 configuration is correct
- If you follow the video this will be pointed straight forward
source ~/catkin_ws/devel/setup.bashroslaunch px4_realsense_bridge bridge_mavros.launch
Now that your software is up and running you need to make sure you've configured your PX4 parameters properly. Be sure to watch the video covering this part.
Hello, librealsense v2.54.1 no longer supports t265. I wonder if you can solve this problem in the article