Dockerfile of different ROS distributions and robots.
# Clone this repository
git clone git@github.com:YueErro/dockers.git ~/git/dockers
The following debian installation is required to run the dockers:
sudo apt-get install python3-rocker
cd ~/git/dockers/<"ros/ROSdistro"or"robot/ROSDistro">
# build
bash build.sh
# run according to your graphics card (Nvidia or integrated Intel)
bash run.sh <nvidia/intel>
Latest changes in rocker don't support privileged flag and fail to run the docker. The rocker version that is currently compatible with this package is python3-rocker_0.2.12-100_all.deb. I recommend to hold this debian after installing it if you are experiencing this issue:
sudo dpkg -i python3-rocker_0.2.12-100_all.deb
sudo apt-mark hold python3-rocker
It can be done generating a new catkin profile using catkin_tools
(sudo apt-get install python-catkin-tools
):
catkin config --profile <profile_name> -x _<profile_name>
catkin build --profile <profile_name>
_<profile_name>
can be different from <profile_name>
but it is recommended to be something similar to the <profile_name>
.
It can be opened as many as wanted terminal in the same docker container by just executing the following command in an already running docker container:
terminator -u &
These docker containers automatically share the users home directory. It has been added a shared directory in order to have organized the workspaces used in dockers: ~/git/dockers/shared
.
|__ros
| |__indigo
| |__kinetic
| |__melodic
| |__noetic
|__ros2
| |__humble
|__tiago
| |__noetic
|__tiago_dual
|__melodic
|__noetic
Keep in mind that anything there will be available in the docker and in your local machine.