当前位置:网站首页>Ros2 - install ros2 (III)
Ros2 - install ros2 (III)
2022-07-05 06:51:00 【Me and nano】
ROS Robot operating system
List of articles
Preface
I've learned about ROS2 What is it? , If a worker wants to do a good job, he must sharpen his tools first , Now let's install ROS2.
One 、 Step on the pit diary
Remember to install a new 22.04 The system of ,20.04 What happened , It's been a whole afternoon, but it hasn't been solved , A new system , All the way unimpeded .
Two 、 Source change
1. Replace the source of China University of science and technology
Enter the following command
sudo gedit /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
Replace... With the following
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
Save and exit
3、 ... and 、 install ROS2
1. Set encoding
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
2. Add source
sudo apt update && sudo apt install curl gnupg lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
There may be a mistake here
perform
sudo vi /etc/hosts
Add the following sentence , Just execute it again
185.199.108.133 raw.githubusercontent.com
3. install ROS2
sudo apt update
sudo apt upgrade
sudo apt install ros-humble-desktop
4. Set the environment variable
source /opt/ros/humble/setup.bash
echo " source /opt/ros/humble/setup.bash" >> ~/.bashrc
Four 、 Example of Little Turtle
function
ros2 run turtlesim turtlesim_node
ros2 run turtlesim turtle_teleop_key
You can see the little turtle coming out , thus ROS2 Installation completed .
summary
ROS2 The installation of stepped on thunder , use 22.04 clear , If there are other problems in the process, you need to solve them yourself .
边栏推荐
- The “mode“ argument must be integer. Received an instance of Object
- SOC_SD_DATA_FSM
- 2. Addition and management of Oracle data files
- Preemption of CFS scheduling
- Ros2 - workspace (V)
- Vscode configures the typera editor for MD
- 乐鑫面试流程
- [Gaode map POI stepping pit] amap Placesearch cannot be used
- 6-2 sequence table operation set
- . Net core stepping on the pit practice
猜你喜欢
Rehabilitation type force deduction brush question notes D1
SRE核心体系了解
[QT] QT multithreading development qthread
'mongoexport 'is not an internal or external command, nor is it a runnable program or batch file.
how to understand the “model independent.“
Database mysql all
达梦数据库全部
[algorithm post interview] interview questions of a small factory
Orin 两种刷机方式
Ros2 - node (VII)
随机推荐
[Chongqing Guangdong education] 1185t administrative leadership reference test of National Open University in autumn 2018
程序中的负数存储及类型转换
ROS2——常用命令行(四)
Orin 两种刷机方式
Error: “MountVolume.SetUp failed for volume pvc 故障处理
Cookie、Session、JWT、token四者间的区别与联系
Stack acwing 3302 Expression evaluation
Vscode editor
Design specification for mobile folding screen
Database mysql all
Error: "mountvolume.setup failed for volume PVC fault handling
Orin two brushing methods
SRE核心体系了解
How to answer when you encounter a jet on CSDN?
达梦数据库全部
H5内嵌App适配暗黑模式
解读最早的草图-图像翻译工作SketchyGAN
逻辑结构与物理结构
[nvidia] CUDA_ VISIBLE_ DEVICES
ROS2——初识ROS2(一)