The purpose of this project is to drive Carla, an autonomous vehicle around a track. The software is implemented with ROS Kinetic on a Ubuntu 16.04 Docker image.
- Clone the project repository
git clone https://github.com/sketchc89/CarlaAutonomous-P13.git ~/projects/CarlaAutonomous-P13
- Build the docker container
docker build . -t capstone
- Run the docker file
mkdir -p ~/tmp/log
docker run -p 4567:4567 -p 11311:11311 \
--mount type=bind,source=$HOME,target=/capstone \
--mount type=bind,source=$HOME/tmp/log,target=/root/.ros/ \
--mount type=bind,source=$HOME/projects/CarlaAutonomous-P13,target=/capstone/ros/CarlaAutonomous-P13
--rm -it \
capstone
- Make and run styx
cd CarlaAutonomous-P13/ros
catkin_make
source devel/setup.sh
roslaunch launch/styx.launch
- Run the simulator, check camera, and uncheck manual
Tips for using docker/ros:
- Start additional shells connected to docker container.
docker container ls
docker exec -it CONTAINER-ID-HERE bash