Skip to content

TecnicoFuelCell/Docker-ROS2-Humble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker ROS2-Humble

Simple Dockerfile to run ROS2 Humble. This can/will be updated according to new needs of the TFC team.

Pre-requisites

Script Procedure

  • If you are using Windows, run the win script
  • If you are using Linux, run the lin script

No Script Procedure

  • Download the docker file
  • On the directory where the docker file is, open a terminal (not a wsl one) and write:
docker build -t <name_you_want_to_give_to_the_image> .
  • Open xLaunch and select the display number as 0 and proceed with the pre-selected things
  • Create on the same directory as the Dockerfile a directory /share/catkin_ws/src
  • Create the container as follows:

If you are using Windows:

docker run --name <name_you_want_to_give_to_the_container> -e DISPLAY=host.docker.internal:0.0 -it -v ${PWD}/share:/opt/share <name_of_your_image>

If you are using Linux:

docker run --name <name_you_want_to_give_to_the_container> -e DISPLAY=host.docker.internal:0.0 -it -v $PWD/share:/opt/share <name_of_your_image>

Additional information

For usefull info about docker commands, check this.

For a video tutorial of the basics, check this video.

About

Dockerfile used to create ROS2 humble container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published