Тёмный

ROS2 Docker GUI for Windows and Linux 

Muhammad Luqman
Подписаться 6 тыс.
Просмотров 29 тыс.
50% 1

Windows 10 and Ubuntu 20.04
ROS1 and ROS2
This Video makes you understand how Docker can be utilized for different ROS versions on different operating systems.
📝 Online School : www.robotisim.com/
🛠️ Share your Problems at Discord :
- / discord
00:00 - Introduction
01:48 - WIN : Docker and Xlaunch server Installation
03:55 - WIN : Get ROS image and Docker commands.
06:10 - WIN : Running ROS docker image
08:22 - WIN : Multiple ROS image running
11:46 - WIN : Launch ROS1 and ROS2 in docker simultaneously
13:27 - WIN : How to use GUI tools in Docker
19:54 - WIN : Docker file
21:10 - WIN : Docker file
23:11 - WIN : Tips for RUN apt-get command
24:44 - WIN : Creating image from docker file
26:00 - WIN : Concepts Wrapup
27:56 - WIN : Running from Repo
33:00 - LINUX : Bridging the gap
35:00 - LINUX : Docker without GUI
36:00 - LINUX : Important advice
37:25 - LINUX : Running Docker on GPU
📚 ROS WIki Tutorial Link :
- wiki.ros.org/docker/Tutorials/...
🎥 RU-vid Playlist :
- • ROS Wiki Demonstrations
👨‍💻 Github Repository Link :
- github.com/noshluk2/ros1_wiki
Github repository mentioned for Maze Solving Docker Image :
github.com/HaiderAbasi/ROS2-P...
🤓 Lets join on Discord :
- / discord
🖐My Social Profiles :
- Linkedin: / muhammad-luqman-9b227a11b
- Twitter: / noshluk2
- Facebook Group : / roboticswithluqman

Опубликовано:

 

4 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 132   
@aaronmurphy9271
@aaronmurphy9271 9 месяцев назад
spent a full day trying to setup virtual machines and almost installing ubuntu on my windows machine and then attempting to follow poor notation about how to setup ros and I finally stumbled across this guys video, you are a godsend
@robotisim
@robotisim 9 месяцев назад
i can feel that been there -> wasted time -> created a video to save other's time :)
@Invictusrudra
@Invictusrudra 2 месяца назад
Best ROS and Docker combined tutorial I have seen! I was having a lot of trouble figuring out docker as I am new to it, and needed it urgently and this was the perfect tutorial!
@robotisim
@robotisim 2 месяца назад
A video that I needed when i started workign with ROS2 and docker :)
@jirivchi
@jirivchi Год назад
Aewsome tutorial! you are a Master in this field. I hope you can upload more videos like this.
@robotisim
@robotisim Год назад
Thanks Man . Yes all in for robotics :)
@jachymzaba
@jachymzaba Месяц назад
This is really awesome and exactly what I was looking for (and much more). Thank you for saving me plenty of time, I can not imagine how I would find all these information!
@robotisim
@robotisim Месяц назад
nopes :D
@gabrielpb876
@gabrielpb876 26 дней назад
Thank you very much by that, there are a bunch of valuable information and they are shown in a detailed way!
@robotisim
@robotisim 26 дней назад
Glad it was helpful!
@Himans4
@Himans4 10 месяцев назад
Thanks for making a wholesome video about docker and ros. Really helpful
@robotisim
@robotisim 10 месяцев назад
Our pleasure!
@Adks007
@Adks007 11 месяцев назад
Thank you so much for making this video ❤❤. Exactly what I was looking for
@robotisim
@robotisim 11 месяцев назад
You're so welcome!
@lucasmartim
@lucasmartim Год назад
Awesome tutorial! I am going to move everything to Docker now!
@robotisim
@robotisim Год назад
:)
@guillaumetreheux7455
@guillaumetreheux7455 9 месяцев назад
Hi, I very very rarely comment on youtube but your content deserves more attention. Thank you for providing thorough instructions for people who cannot use Linux 😀
@robotisim
@robotisim 9 месяцев назад
You're very welcome!
@adeolajoseph7276
@adeolajoseph7276 11 месяцев назад
Thank you so much for this tutorial. Great content
@robotisim
@robotisim 11 месяцев назад
You're very welcome!
@giovanniromio2767
@giovanniromio2767 11 месяцев назад
Awesome tutorial and awesome explanation!
@robotisim
@robotisim 11 месяцев назад
Glad you liked it!
@jingchengzhao392
@jingchengzhao392 Год назад
Amazing Video! Thank you very much!
@robotisim
@robotisim Год назад
your welcome
@muhammadowais2992
@muhammadowais2992 11 месяцев назад
This video is really a masterpiece.
@robotisim
@robotisim 11 месяцев назад
Thanks :)
@obensustam3574
@obensustam3574 11 месяцев назад
- I haven't expected to do an application with Docker. I am really grateful for that ☺ - To be honest, when I first saw the thumbnail of the video, I thought it is an old recorded video and lecture content won't be supported via images/animations. Maybe it happened only to me but I wanted to give you this feedback. My friendly suggestion would be to put newer image on thumbnail to get more views 😎 - Thank you for your effort. I appreciate your work and finished one of your Udemy course already 😃
@robotisim
@robotisim 11 месяцев назад
Thank you for the suggestion
@sandro5437
@sandro5437 7 месяцев назад
I have been trying to run ROS in both my Mac and Windows for weeks, but I have been stumbling across several dependencies and hardware-specific problems. I had this idea yesterday, that maybe Docker would come in handy to solve the dependency-wise issues. I am so happy I found this video, because even though I just initialized turtlesim at 19:25, this is by far the most successful attempt in weeks. @Muhammad, thank you so much for sharing this!
@robotisim
@robotisim 7 месяцев назад
Thanks :)
@syedjameelahmed19
@syedjameelahmed19 11 месяцев назад
I really liked it. I would love to have more videos like this.
@robotisim
@robotisim 11 месяцев назад
for ros-docker ? this video was to just show how to run docker-ROS things
@syedjameelahmed19
@syedjameelahmed19 11 месяцев назад
@@robotisim I meant helpful ros related videos like this🙂, I have a request, please can you make some videos on behavior trees in ros
@syedjameelahmed19
@syedjameelahmed19 6 месяцев назад
@@robotisim Its been 4 months since i found your channel and these detailed tutorials helped me a LOT!!, I want to express gratitude for giving us these beneficial tutorials.🙂
@robotisim
@robotisim 6 месяцев назад
Sure thanks @@syedjameelahmed19
@mdmahedihassan2444
@mdmahedihassan2444 Год назад
Thsi is very boss level video, Alhamdulillah........ very easy steps, Special Thanks 20:15
@robotisim
@robotisim Год назад
Welcome :)
@carlosnarvaez1151
@carlosnarvaez1151 Год назад
Estoy impresionado por tu trabajo, muchas gracias por compartir tu conocimiento
@robotisim
@robotisim Год назад
Mi placer
@123twini123
@123twini123 11 месяцев назад
amazing! Thank you!
@robotisim
@robotisim 11 месяцев назад
Thank you too!
@jiajun6810
@jiajun6810 Месяц назад
Thanks a lot!!! Great presentation.
@jiajun6810
@jiajun6810 Месяц назад
Another quesetion: In windows use wsl2 & docker install ros2, how to set up the env to let the ros2 use gpu? Do I still need to Nvidia Container Toolkit? Or just set env --gpus=all? I think it's an important issue to talk.
@jiajun6810
@jiajun6810 Месяц назад
I can use nvidia-smi in wsl Ubuntu or in container, and gazeob can load the world. but it seems that gazebo use cpu not gpu to acclearate. I'm confused. I searched a lot and restarted container a lot , but all failed
@robotisim
@robotisim Месяц назад
You are welcome!
@robotisim
@robotisim Месяц назад
i do not known about wsl and how does it access gpu but in docker for nvidia gpu you need to install nvidia docker
@whispering_shadows57
@whispering_shadows57 8 месяцев назад
That's really helpful❤
@robotisim
@robotisim 8 месяцев назад
I'm so glad!
@colesmith2136
@colesmith2136 Год назад
This tutorial was amazing.
@robotisim
@robotisim Год назад
Yup :)
@colesmith2136
@colesmith2136 Год назад
@@robotisim I’m a college student trying to learn more about ros2 and docker. I’m trying to build a signal processing project that analyzes signals with machine learning. I was curious if you were going to cover projects like this from end to end in the future or can point me in the right direction?! Thank you so much!!
@robotisim
@robotisim Год назад
@@colesmith2136 whats with signal processing and ros2
@arina6094
@arina6094 7 месяцев назад
thank you so much!!!!
@robotisim
@robotisim 7 месяцев назад
You're welcome!
@SPeeDKiLL45
@SPeeDKiLL45 9 месяцев назад
Habibi!!!! Thank you so much. God bless you.
@robotisim
@robotisim 9 месяцев назад
Habibi thanks :)
@franciscoolleropacheco8460
@franciscoolleropacheco8460 9 месяцев назад
Magnífico!!.
@robotisim
@robotisim 9 месяцев назад
:)
@kimanton
@kimanton Год назад
Hi! I just started to learn Docker. I was wondering, is it possible to exchange ROS messages between a container and the host machine?
@robotisim
@robotisim Год назад
I think we can, but never tried it. There is some port configuration which enables network communications.
@nasosgerontopoulos5267
@nasosgerontopoulos5267 8 месяцев назад
Hello, I have coded some packages in ros into a Virtual machine (cause in my device i run windows), and now I am trying to run the packages with docker. However, I see the error message "package not found". I have mounted the catkin workspace file into the container, I have sourced ros and the catkin workspace, but i see that error. Do I have to change anything in the build/devel files to run smoothly in the container?
@robotisim
@robotisim 7 месяцев назад
Verify the paths used in the docker run command for mounting.
@BarkatullaShaik
@BarkatullaShaik 4 месяца назад
Hello, I'm facing an issue where I have two Windows host machines (Hosts A and B), both with Docker installed and connected via the same LAN. On Machine A, I have the publisher container, and on Machine B, I have the subscriber container. I've attempted various networking workarounds to establish communication between them, but none have been successful. Could you please assist me in resolving this? Thank you in advance.
@robotisim
@robotisim 4 месяца назад
I understand the frustration of dealing with networking issues. But i do not have experience in that.
@masues
@masues Год назад
Hi! I'm using fedora, docker engine version 20, and the same image as you (osrf/ros:noetic-desktop). When I start the rospy_tutorial listener, the container stops. Does anyone have the same problem?
@robotisim
@robotisim Год назад
Not here .
@MasoomaMaryum
@MasoomaMaryum Год назад
Hi, i am trying to install ROS on my macOS. However, I can't seem to run rospy tutorials. Even though i have followed all steps that you mentioned in your video. It shows the following message: Usage: rosrun [--prefix cmd] [--debug] PACKAGE EXECUTABLE [ARGS] rosrun will locate PACKAGE and try to find an executable named EXECUTABLE in the PACKAGE tree. If it finds it, it will run it with ARGS. What needs to be done? Please help. A beginner this side.
@robotisim
@robotisim Год назад
provide details of your error on ros wiki and link it here . because screenshot can make it possible to understand you problem. - What i think the error is -> your workspace is not sourced to the ros system . -> Source your workspace
@olubukolaogunsola5864
@olubukolaogunsola5864 10 месяцев назад
Great job. how do you use your local ROS installation a the base image. I used the osrf image and it didn't work on my raspberry pi.
@robotisim
@robotisim 10 месяцев назад
Will produce a video around that as well soon
@manigoyal4872
@manigoyal4872 Год назад
is this the same method used for deplyment of ROS codes globally (in another machines using cloud), and do we need not to build our workspace before launching?
@robotisim
@robotisim Год назад
no need if all source code is already built in docker . Yes on cloud that is how it is deployed
@triquiop3257
@triquiop3257 Год назад
Hi, I have an issue that the volume $XAUTH is giving me an error: docker: Error response from daemon: error while creating mount source path '/host_mnt/tmp/.docker.xauth': mkdir /host_mnt/tmp/.docker.xauth: file exists. ERRO[0001] error waiting for container:
@robotisim
@robotisim Год назад
Windows ?
@hellyesOo
@hellyesOo Год назад
What are the system requirements to have all this stuff working smoothly, I have a jetson nano but looks I’ll get short
@robotisim
@robotisim Год назад
I have seen jetson with 4gb ram working good with docker
@VinayakPattanashetti
@VinayakPattanashetti 8 месяцев назад
Thank you very much. BTW, can ROS be able to use GPU in WSL/Docker??
@robotisim
@robotisim 8 месяцев назад
Yes , Here in Linux Example it is Utilizing GPU For that you need to install nvidia-docker as wel .
@user-no8zu1qw2h
@user-no8zu1qw2h 7 месяцев назад
hello sir.' i have a problem. in my pc i can run your image and container which available to use rviz2 and gazebo. but whenever i close the pc and try to run the docker container again it can not display the rviz and gazebo. how to solve this point?
@robotisim
@robotisim 7 месяцев назад
how do you connect the container 2nd time ?
@faustoallegrini2641
@faustoallegrini2641 Год назад
hi, amazing tutorial! I have a problem. When I try do build the dockerfile it gives me an Error on the 3 command: errno 13 Permission denied. How can I solve it? Thanks!!
@robotisim
@robotisim Год назад
add sudo before command
@pooryakhanali6921
@pooryakhanali6921 3 месяца назад
Hi, thanks for the explanation, as I saw the part about the GPU utilization, could you please guide me on how to visualize the Gazebo or Rviz from a docker container using GPU but not CPU?
@robotisim
@robotisim 3 месяца назад
in this video - where i am using linux , i am using GPU , that requires nvidia docker as well
@pooryakhanali6921
@pooryakhanali6921 2 месяца назад
Please check the command "watch nvidia-smi", because when I run GPU container there will not be any usage of GPU regarding the visualization of Gazebo!
@XanderSoldaat1
@XanderSoldaat1 Год назад
I have used ROS in a Docker container, and it works, for the most part. I can run things, and display them via the XQuartz X11 server for Mac. However, rviz refuses to run. It will core dump every single time. I have tried using --env=" LIBGL_ALWAYS_INDIRECT=1", but that simply does nothing. Other GL Apps work fine in the indirect mode, including glxgears, which gets between 1900-2500 FPS. Do you have any suggestions? Running Ubuntu in a VM works fine, of course, but that doesn't seem as elegant.
@robotisim
@robotisim Год назад
For mac i have no suggestions . As we only work with linux and windows :/
@raphaelkoskas7069
@raphaelkoskas7069 Год назад
Hi, did you find any solution ?
@DavldLangner
@DavldLangner Год назад
Can I install Ron with docker on macOS too? I got a M1 MacBook and was wondering how to install ROS2 Galactic
@robotisim
@robotisim Год назад
Yes you. Can There are some video i cam across Docker is a good solution if you no proper compiled solution
@DavldLangner
@DavldLangner Год назад
@@robotisim do you have any recommendations on which videos/tutorials are best?
@woddenhorse
@woddenhorse 9 месяцев назад
Exactly what I needed 🤌🤌
@robotisim
@robotisim 9 месяцев назад
Great to hear that
@kevindarren756
@kevindarren756 Год назад
Great tutorial, ran into an issue though when docker pulling ros foxy. It says authenthication required, even though I ran cmd as adminstrator. Any fixes?
@robotisim
@robotisim Год назад
strange , post error some where so i can see
@kevindarren756
@kevindarren756 Год назад
@@robotisim Got the issue resolved, my isp for some reason didn't allow for the file transfer here in india (through JIO sim), used a vpn and it worked
@muhammadowais2992
@muhammadowais2992 11 месяцев назад
@@kevindarren756 I also got the same error, had to use docker login and then provide dockerhub username and password, worked fine for me
@krisshcool6381
@krisshcool6381 Год назад
Hi, A Great tutorial on ROS docker. I am using linux machine and want to run GUI. When I run turtlesim_node command, I am getting the following error. I have checked it in other sources but couldn't solve it. Error: qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Could you please help me out? TIA
@robotisim
@robotisim Год назад
It is mentioned in video how to connect to display
@kavehsedigh4268
@kavehsedigh4268 Год назад
Well Done Muhammad. Great Video. Will try docker for my projects. I have a question; I am using ZED2 camera in my projects, therefore I use cuda and the gpu all the time, Is docker compatible with cuda libraries? IF YES; is it the same for windows and linux? How about Nvidia jetson kits?
@robotisim
@robotisim Год назад
Yes , the linux version is running using Cuda on my system . and jetson nano ( the lowest one ) also have the cuda docker enabled .
@DeeshaRajput-sx1gj
@DeeshaRajput-sx1gj Год назад
Hello Sir, Thank you for a wonderful video. I was able to launch Rviz following your tutorial. But the Rviz window is blank. FYI I am using Ubuntu 20.04 and docker ROS foxy and noetic using rosbridge. I want to run the bag file, the bag file is running and the Rviz is launching too but unable to see anything. Do I need GPU for visualization. Please Kindly suggest.
@robotisim
@robotisim Год назад
No gpu is not a requirement, check yur drivers and update
@DeeshaRajput-sx1gj
@DeeshaRajput-sx1gj Год назад
@@robotisim Thank you sir. You are right, it worked on the same day when i Questioned you.
@ccyokubenimaru1988
@ccyokubenimaru1988 Год назад
Hi! I am doing fine until " rosrun rospy", the error of "Usage: rosrun [--prefix cmd] [--debug] PACKAGE EXECUTABLE [ARGS] rosrun will locate PACKAGE and try to find an executable named EXECUTABLE in the PACKAGE tree. If it finds it, it will run it with ARGS." came out. I am a beginner of ROS, How to fix this problem?
@robotisim
@robotisim Год назад
Is the name of package rospy?
@ccyokubenimaru1988
@ccyokubenimaru1988 Год назад
@@robotisim Hi! Thanks for your reply!~I fixed the problem. Instead click Enter I should click Tab, then everything works fine.
@iamnamniar
@iamnamniar Год назад
Hi, First of all thank you for the video. I am trying to install ros through docker on windows. Turtlesim node is working perfectly for me. But gazebo and rviz are having some issue open up. Some libGL error is coming up. Did you face the same issue?
@robotisim
@robotisim Год назад
Gui access is required to docker
@robotisim
@robotisim Год назад
use the software i showed in the video
@iamnamniar
@iamnamniar Год назад
I figured out the issue... the Native opengl was checked by default in the xlaunch. Gazebo and rviz worked fine when I unchecked that option. Thank you for helping..
@iamnamniar
@iamnamniar Год назад
I just have a doubt regarding the nvidia graphics card. When I tried to run the docker image by setting --runtime=nvidia, I am getting error: Error Response from daemon: Unknown runtime specified nvidia. Right now the GUI application is running on my Intel grpahics card and it is very slow. I got an Nvidia RTX 3070Ti card on my lap. Could you help me on this? Thanks in advance
@robotisim
@robotisim Год назад
@@iamnamniar install nvidia docker package and restart docker demon
@hongkyang7107
@hongkyang7107 Год назад
Thank you, Muhammad. I want to ask have you tried to run ros from docker to a remote master, how would you config docker network and ROS_IP, ROS_HOSTNAME.
@robotisim
@robotisim Год назад
Did not tried it !
@MrEngineer_
@MrEngineer_ 5 месяцев назад
Blown away by the simplicity after having to do all this in Virtual-box, I just have some questions, can docker be used along with raspberry pi ? because in real world application, i'm gonna be deploying the programs in a raspberry pi in a robot. I also want to ask you how versatile is this ? I am so excited and curious at the same time a bit hesitant about it's scalability. Please enlighten me !!
@robotisim
@robotisim 5 месяцев назад
Simply putting DOCKER > Virtual BOX You can provide access to your network and ping RPI , with same domain Name Scalability depends on your understanding of containers and architecture.
@robotisim
@robotisim 5 месяцев назад
Docker compose helps alot in practicle applications - OS setup in docker_1 - Package and GUI in docker_2 - Only binaries in docker_3 Compose all there is a video about it on my channel as well
@jirivchi
@jirivchi Год назад
I am here again. I am trying to connect raspberry pi 4 and my computer with ros. I was using virtualbox and they cannot comunicate. Now I am trying with docker and I am not able to connect. I tested with two raspberries and they can comunicate with ros2. The problem I think is the network. with the command HOSTNAME -I I can see the ip which my router give the devices. why in docker or virtual machines you have like this 172.17.0. ... instead of 192.168.1. ... ? Maybe if in the docker or virtual machine have their own ip like raspberries I can solve my problem. Any advise, how do they connect in our network? thanks in advance
@robotisim
@robotisim Год назад
ROS1 or 2 ?
@robotisim
@robotisim Год назад
The IP 172.17.0 something is because i am not connecting with internet , it is connected to a HOTSPOT without internet access
@manigoyal4872
@manigoyal4872 Год назад
will docker be using my GPU?
@robotisim
@robotisim Год назад
yes as in the last part of linux , i am running on my gpu
@shyamkganatra
@shyamkganatra Год назад
Sir the video quality is very poor unable to read anything in video
@robotisim
@robotisim Год назад
RU-vid is currently processing HD version , Will take 30 mins
@shyamkganatra
@shyamkganatra Год назад
@@robotisim thanks for the response, yes now it's available in HD
@kumarj744
@kumarj744 20 дней назад
im getting this error : non-network local connections being added to access control list root@docker-desktop:/# source /opt/ros/foxy/setup.bash root@docker-desktop:/# ros2 run turtlesim turtlesim_node qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
@robotisim
@robotisim 12 дней назад
connect the display , when you run docker allow display connection
Далее
ROS Services using custom applications
27:39
Просмотров 6 тыс.
Docker 101
20:01
Просмотров 20 тыс.
Using docker in unusual ways
12:58
Просмотров 428 тыс.
ROS1 vs ROS2 - Practical Overview for ROS Developers
45:36
The Unreasonable Effectiveness of Linux Workstations
12:47
New to Linux? Yeah, DON'T Use Manjaro...
15:55
Просмотров 195 тыс.
Docker for Robotics Pt 1 - What and Why??
17:09
Просмотров 31 тыс.
Linux on Windows......Windows on Linux
23:54
Просмотров 331 тыс.