Up Board to install ROS and mavros

Up Board to install ROS and mavros

1. Install Ubuntu system on Up Board

1.Material preparation

Up Board x1
Insert image description here

In addition, you need to prepare:
HDMI cable x1 for connecting the screen 5V4A DC power supply x1 to power the
microcomputer USB cable x1 to power the external screen Keyboard and mouse x1 to control the microcomputer External screen x1 U disk x1 Use as a drive disk to install the system for the microcomputer



2. Take an empty USB flash drive as the drive disk to install the system for Up Board

1. Download the Ubuntu18.04 image.
You can download it from the Ubuntu official website, or you can find resources online.
Baidu Netdisk:
https://pan.baidu.com/s/1FkBDt0oV6nfmsCdm7gyyOA
Extraction code: t849

  1. Make a boot disk (refer to the CSDN author "Who Stole My Dried Fish" here, the author provides very specific steps)
    https://blog.csdn.net/Albert_1000/article/details/95632770?ops_request_misc =%257B%2522request%255Fid%2522%253A%2522165227886616782388085717%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request _id=165227886616782388085717&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2 all sobaiduend ~ default -1-95632770-null-null.142%5Ev9%5Epc_search_result_control_group,157%5Ev4%5Econtrol&utm_term=Ubuntu%E9%A9%B1%E5%8A%A8%E7%9B%98&spm=1018.2226.3001.4187

①Download Ultra ISO (free trial available)
URL: https://cn.ultraiso.net/xiazai.html
Insert image description here
②Write file
Select the downloaded Ubuntu18.04 image
Insert image description here
③Write to U disk
Insert image description here
④After installation, the U disk displays Such:
Insert image description here

3. Install Ubuntu system

① First, plug the 5V4A DC power supply into the Up Board, connect the keyboard, mouse and USB flash drive to the Up Board, and connect the HDMI cable to the screen as a display ② The Up Board
defaults to the driver disk to start first, so it will automatically recognize it after the power is turned on. , and enter the installation system program
③ There are only a few cases where Up Board needs to enter a password before installing the system.
The password should be upassw0rd, you can find it by checking online
④ Then just follow the instructions. For the installation steps, please refer to CSDN author Koike Chehei (very detailed, It can basically solve the installation problem)
https://blog.csdn.net/h1475457833/article/details/105416883

2. Install ROS on Ubuntu system

I have written about the process of installing ROS before .
Because Up Board performance is limited and the operation process is relatively slow, I recommend here the one-click installation of Yuxiang ROS
https://fishros.org.cn/forum/topic/20/% E5%B0%8F%E9%B1%BC%E7%9A%84%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E7%B3%BB%E5% 88%97?lang=zh-CN

3. Configure and add the mavros function package to ROS

Here I install mavros according to the usage documentation of XTDrone Yuque

  1. Depends on installation
sudo apt install ninja-build exiftool ninja-build protobuf-compiler libeigen3-dev genromfs xmlstarlet libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
pip2 install pandas jinja2 pyserial cerberus pyulog==0.7.0 numpy toml pyquaternion empy pyyaml 
pip3 install packaging numpy empy toml pyyaml jinja2 pyargparse

Install mavros

sudo apt install ros-melodic-mavros ros-melodic-mavros-extras
wget https://gitee.com/robin_shaun/XTDrone/raw/master/sitl_config/mavros/install_geographiclib_datasets.sh
sudo chmod a+x ./install_geographiclib_datasets.sh
sudo ./install_geographiclib_datasets.sh 

Guess you like

Origin blog.csdn.net/m0_64730542/article/details/124720237