A ROS package that continuously orientates a robot using a reference.
- docker
- docker-compose
-
Run the command
xhost +local:root
-
Create a new folder for docker environment.
-
Go to the new folder created.
-
Create a new file called docker-compose.yaml.
version: '3'
services:
turtlesim:
image: docker.pkg.github.com/ximenesfel/turtlesim_polaris/turtlesim_polaris:1.0.0
tty: true
volumes:
- ./app:/root/catkin_ws/src
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ~/.Xauthority:/root/.Xauthority
environment:
DISPLAY: $DISPLAY
QT_X11_NO_MITSHM: 1
-
Clone turtlesim_polaris package.
git clone https://github.com/ximenesfel/turtlesim_polaris.git
-
Rename turtlesim_polaris folder to app.
mv turtlesim_polaris app
-
Create the container.
docker-compose up -d
-
Access the container.
docker-compose exec turtlesim bash
-
Build turtlesim_polaris package
cd catkin_ws
catkin_make
-
Source the environment
source ~/.bashrc
-
Run the launch file
roslaunch turtlesim_bringup turtlesim.launch
-
Move Polaris with keyboard arrows keys.