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
This article shares the specific code of JavaScri...
<textarea></textarea> is used to crea...
WeChat applet form validation, for your reference...
Preface As we all know, bash (the B ourne-A gain ...
Table of contents need: Main points: According to...
Table of contents 1. Introduction to Nginx 2. Ima...
Knowing which for loop or iterator is right for o...
Table of contents 1. JavaScript Objects 1).Array ...
I recently used the ssm framework when doing a pr...
Here we only introduce the relatively simple inst...
A colleague asked for help: the login to the back...
Virtualization and containerization are two inevi...
This article uses the gearman+mysql method to imp...
template <el-table :data="dataList"&...
MySQL replication detailed explanation and simple...