In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to install ROS2 and how to use docker environment. The content is concise and easy to understand. It will definitely make your eyes shine. I hope you can gain something from the detailed introduction of this article.
Why Docker?
Docker is a container that can be used to load images. I can package my base environment into a docker image, and everyone can use this image.
During the process of learning ROS, I found that the installation process would encounter many problems. I believe many students were blocked by the problems during installation, so I thought I could make a mirror of ROS for myself and everyone to use. So I chose docker, and found that there is a ready-made mirror directly---easy to start.
After improvement, it can also be packaged into its own mirror image.
Docker installation
1 Update software list
sudo apt-get update
2 Install docker
sudo apt-get install -y docker.io
3 Configuration Boot Start
systemctl start docker systemctl enable docker
4 Test installation successful
sudo docker --version
Pull ROS mirror
I use the foxy version.
1 Download image file, 3 multi-G need to wait a while
sudo docker pull osrf/ros:foxy-desktop
s2 View mirror information
sudo docker images
3 Start mirroring
sudo docker run -it osrf/ros:foxy-desktop
4 enjoy for your Ros
This step shows ROS2 help information, ROS2 has been installed, isn't it fast!!!
ros2 -h
Run ROS Turtle ros2 run turtlesim turtlesim_node
Open a new terminal, restart the image to enter the docker environment
sudo docker run -it osrf/ros:foxy-desktopros2 run turtlesim turtle_teleop_key The above content is about ROS2 installation and docker environment use. Have you learned knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.