当前位置:网站首页>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 .
边栏推荐
- MySQL (UDF authorization)
- 使用paping工具进行tcp端口连通性检测
- MQClientException: No route info of this topic: type_ topic
- All English in the code
- ROS2——topic话题(八)
- new和malloc的区别
- CGroup CPU group source code analysis
- Technical conference arrangement
- ‘mongoexport‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
- 基于Cortex-M3、M4的GPIO口位带操作宏定义(可总线输入输出,可用于STM32、ADuCM4050等)
猜你喜欢
扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
SolidWorks template and design library are convenient for designers to call
MySQL (UDF authorization)
Vant weave swipecell sets multiple buttons
代码中的英语全部
Package webapp or H5 pages into apps
Redis-01. First meet redis
Orin installs CUDA environment
7. Oracle table structure
SD_CMD_SEND_SHIFT_REGISTER
随机推荐
摄像头的MIPI接口、DVP接口和CSI接口
Ros2 - workspace (V)
Lexin interview process
Orin installs CUDA environment
Unity 之 ExecuteAlways正在取代ExecuteInEditMode
Volcano 资源预留特性
In C language, int a= 'R'
[MySQL 8.0 does not support capitalization of table names - corresponding scheme]
[Chongqing Guangdong education] National Open University 2018 autumn 0702-22t contemporary Chinese political system reference questions
Technical conference arrangement
kata container
ROS2——安装ROS2(三)
Logical structure and physical structure
LSA Type Explanation - lsa-5 (type 5 LSA - autonomous system external LSA) and lsa-4 (type 4 LSA - ASBR summary LSA) explanation
2022 winter vacation training game 5
Financial risk control practice -- feature derivation based on time series
About vscode, "code unreachable" will be displayed when calling sendline series functions with pwntools“
Log4qt usage of logbase in QT project
ethtool 原理介绍和解决网卡丢包排查思路(附ethtool源码下载)
Record of problems in ollvm compilation