Main topicLet's talk about today's topic docker and ros2. This article will solve three problems: How to install docker on ubuntuHow to install ros2 in dockerHow to visualize the turtle in docker 1. Install Docker on UbuntuThis is very simple, it can be done in one sentence sudo apt install docker.io 2. Install ROS2-Foxy in DockerInstallation is not really a big deal. Here we directly pull the official image of ROS2 sudo docker pull osrf/ros:foxy-desktop After the pull is complete, use the following command to enter the installed image sudo docker run -it osrf/ros:foxy-desktop Then enter ros2 in the terminal
3. ROS2 docker visual running turtleInstall and start the mobaxterm remote tool Make sure you are in the same LAN as the computer where you installed Docker. Note the display here. Then we set the value of the DISPLAY environment variable of the ros2 image in docker. export DISPLAY=192.168.0.112:0.0 Then you can start the little turtle simulator and see ros2 run turtlesim turtlesim_node Then you will find a magical scene, a little turtle interface pops up on your Windows computer Then run the keyboard control node ros2 run turtlesim turtle_teleop_key Press the button and the little turtle will run. at lastThis is the end of this article about the detailed steps of installing ros2 with docker. For more information about installing ros2 with docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: 【HTML element】Detailed explanation of tag text
>>: Vue2 cube-ui time selector detailed explanation
Sometimes, we need to use the hyperlink <a> ...
Keyboard Characters English ` backquote ~ tilde !...
In the forum, I saw netizen jeanjean20 mentioned h...
Use Nginx to build Tomcat9 cluster and Redis to r...
1 Overview System centos8, use httpd to build a l...
The generation and verification of random codes i...
This article shares the specific code of JavaScri...
Recently, when using select query in a project, I...
When we use TypeScript, we want to use the type s...
Table of contents 1. Installation preparation 1. ...
Preface In JavaScript, this is the function calli...
This article shares the specific code for JavaScr...
Table of contents Previous words Usage scenarios ...
Table of contents Directory Structure bin directo...
Compared with ordinary programs, dynamic link lib...