UAV Intellisense Contest--Simulator Installation

development environment

win11+wsl2

Precautions

Please use it with the video. If you don’t watch the video, you will be confused about the configuration process below. Because I wanted to install it on ubuntu18.04 at the beginning, but found that ubuntu18.04 does not have ros-noetic, so I switched to ubuntu20.04 configuration.
video link

step

1. wsl --install -d Ubuntu-18.04
Because I have an Ubuntu-20.04 as the development environment of ROS + PX4, so install another version of the Ubuntu system
Ubuntu subsystem installation
here .
insert image description here
2. Change the source of the new system.
If there is no gedit, download sudo apt-get install gedit
and open a system source file. sudo gedit /etc/apt/source.list
Open the Tsinghua source website.
Select the version, copy it to source.list, save, execute these two
insert image description here
sudo apt-get update
sudo apt-get upgrade
lines of code, and update it .
insert image description here
Linux development
official link

1) sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
2) sudo apt install curl
3) curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
insert image description here
Solution
443 access error solution
Regarding step 3), I have tried the above methods, but it doesn't work, but I can connect to this website. So, copy it directly, create a new key.txt under the current path of Ubuntu, copy it into it, and execute curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add key.txt
OK!
insert image description here
4) sudo apt update
sudo apt-get upgrade
5) Yuxiang ros one-click installation assistant to download ros-noetic
ROS environment construction reference here
Embarrassing, only to find ros-noetic supporting ubuntu20.04 here.
6) Download the source code
insert image description here
and enter the path
insert image description here
7) Build roswrapper
8) Download and start the emulator on the WIN side
9) Start roswrapper on the LINUX side
Note: Increase the authority chmod 777 simulator.sh
to download the packagesudo apt install gnome-terminal

The startup is successful and the configuration is complete!
insert image description here

Guess you like

Origin blog.csdn.net/private_Jack/article/details/128528854