- To install docker (only for linux user)
sudo apt install docker.io
Check if docker is active run: sudo systemctl status docker
. If status is not active, activate it run: sudo systemctl enable --now docker
- To install docker-compose
sudo apt install docker-compose
- Note: it is recommended to create docker group refer: https://docs.docker.com/engine/install/linux-postinstall/, However not mandatory.
- Create a directory. (any name of your choice eg.
docker
) - Create a YAML file name it as
docker-compose.yml
- Copy paste everthing of docker-compose.yml (see above) to it.
- RUN in CLI
xhost +local:docker
. - Go to the file where it is located see step 1.
cd docker
- RUN
sudo docker-compose up
.
- At the bottom left press ADD
- Under By display type ADD RobotModel
- Under By topic ADD InteractiveMarkers and MarkerArray
- Check whether the simulation worked or not on RobotModel