This is a Dockerfile to use CARLA ROS bridge on Docker container.
- NVIDIA graphics driver
- Docker
- nvidia-docker2
Please download the CARLA Simulator and addtional map file from https://github.com/carla-simulator/carla/releases/tag/0.9.8.
And, please put CARLA Simulator in the same directory as the Dockerfile.
This time, I used the following package.
CARLA_0.9.8.tar.gzAdditionalMaps_0.9.8.tar.gz
$ docker build -t carla:0.9.8 -f Dockerfile.melodic .$ ./launch_container.shPlease launch CARLA Simulator by the following command.
$ cd CARLA_0.9.8
$ ./CarlaUE4.sh -windowed -ResX=160 -ResY=120$ cd CARLA_0.9.8/PythonAPI
$ python util/config.py -m Town03 --fps 10$ roslaunch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch vehicle_filter:='vehicle.toyota.prius*'Please launch CARLA Simulator by the following command.
$ cd CARLA_0.9.8
$ ./CarlaUE4.sh -windowed -ResX=160 -ResY=120$ cd CARLA_0.9.8/PythonAPI
$ python util/config.py -m Town01 --fps 10$ roslaunch carla_ad_demo carla_ad_demo_with_rviz.launch vehicle_filter:='vehicle.toyota.prius*'