Skip to content

Commit

Permalink
Get perception to work on a docker container (#228)
Browse files Browse the repository at this point in the history
Temporarily fix a bug that perception does not work on a docker container
This requires the root privileges

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
  • Loading branch information
IshitaTakeshi and kenji-miyake authored Aug 19, 2021
1 parent dcbcc61 commit c92b39a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ gdown --id 1wLWyOlfH_-k4VYBgae1KAFlKdwJnH_si
xhost +local:

# Run Autoware in the simulation mode
rocker --nvidia --x11 --user --volume ~/rosbag_simulation -- autoware:pre-built
ros2 launch autoware_launch logging_simulator.launch.xml map_path:=$HOME/rosbag_simulation/map vehicle_model:=lexus sensor_model:=aip_xx1
# NOTE: Autoware runs with root privileges since NVIDIA driver has to be enabled
# TODO(Kenji Miyake): Fix to support non-root execution
rocker --env NVIDIA_DRIVER_CAPABILITIES=all --nvidia --x11 --volume ~/rosbag_simulation:/root/rosbag_simulation -- autoware:pre-built
ros2 launch autoware_launch logging_simulator.launch.xml map_path:=/root/rosbag_simulation/map vehicle_model:=lexus sensor_model:=aip_xx1

# Play the sample rosbag file in another terminal
rocker --nvidia --x11 --user --volume ~/rosbag_simulation -- autoware:pre-built
Expand Down

0 comments on commit c92b39a

Please sign in to comment.