Skip to content

Commit

Permalink
add test artifacts to drive
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
  • Loading branch information
oguzkaganozt committed Apr 30, 2024
1 parent de248e7 commit 6cd0c73
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 1,372,615 deletions.
4 changes: 0 additions & 4 deletions docker/autoware-openadk/modules/planning-control/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ RUN --mount=type=ssh \
# Copy launch file
COPY docker/autoware-openadk/modules/planning-control/planning_control.launch.xml /autoware/install/planning_control.launch.xml

# Copy test-scenario files
RUN mkdir -p /autoware/test-scenario
COPY docker/autoware-openadk/test/test-scenario/ /autoware/test-scenario/

# Create entrypoint
COPY docker/autoware-openadk/etc/ros_entrypoint.sh /ros_entrypoint.sh
RUN chmod +x /ros_entrypoint.sh
Expand Down
4 changes: 0 additions & 4 deletions docker/autoware-openadk/modules/simulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ RUN --mount=type=ssh \

COPY --from=ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt /autoware/install /autoware/install

# Copy test-scenario files
RUN mkdir -p /autoware/test-scenario
COPY docker/autoware-openadk/test/test-scenario/ /autoware/test-scenario/

# Create entrypoint
COPY docker/autoware-openadk/etc/ros_entrypoint.sh /ros_entrypoint.sh
RUN chmod +x /ros_entrypoint.sh
Expand Down
4 changes: 0 additions & 4 deletions docker/autoware-openadk/modules/visualizer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ RUN --mount=type=ssh \
/etc/apt/sources.list.d/docker.list /etc/apt/sources.list.d/nvidia-docker.list \
/usr/include /usr/share/doc /usr/lib/gcc /usr/lib/jvm /usr/lib/llvm*

# Copy test-scenario files
RUN mkdir -p /autoware/test-scenario
COPY docker/autoware-openadk/test/test-scenario/ /autoware/test-scenario/

# Create entrypoint
COPY docker/autoware-openadk/etc/ros_entrypoint.sh /ros_entrypoint.sh
RUN chmod +x /ros_entrypoint.sh
Expand Down
17 changes: 15 additions & 2 deletions docker/autoware-openadk/test/run-test-scenario.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/usr/bin/env bash

set -e

# download test artifacts from google drive
if [ ! -d ~/autoware_artifacts/test-artifacts ]; then
echo "Downloading test artifacts from google drive..."
gdown -O ~/autoware_artifacts/ 'https://drive.google.com/uc?export=download&id=1gTCWcye4JxqR7rSxl2b-iiLqgya6ShBR'
unzip -d ~/autoware_artifacts ~/autoware_artifacts/test-artifacts.zip
rm ~/autoware_artifacts/test-artifacts.zip
else
echo "Test artifacts are already downloaded."
fi

# enable xhost
xhost +
docker compose -f docker-compose.yaml up

# start containers
echo "Starting containers..."
docker compose -f test-scenario.docker-compose.yaml up
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,34 @@ services:
image: ghcr.io/autowarefoundation/autoware-openadk:latest-planning-control
volumes:
- /dev/shm:/dev/shm
- /home/${USER}/autoware_artifacts/test-artifacts:/autoware/test-artifacts/
network_mode: "host"
environment:
- ROS_LOCALHOST_ONLY=1
command: ros2 launch autoware_launch planning_simulator.launch.xml map_path:=/autoware/test-scenario/map/ vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit scenario_simulation:=true use_foa:=false perception/enable_traffic_light:=false rviz:=false
command: ros2 launch autoware_launch planning_simulator.launch.xml map_path:=/autoware/test-artifacts/map/ vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit scenario_simulation:=true use_foa:=false perception/enable_traffic_light:=false rviz:=false

simulator:
image: ghcr.io/autowarefoundation/autoware-openadk:latest-simulator
volumes:
- /dev/shm:/dev/shm
- /home/${USER}/autoware_artifacts/test-artifacts:/autoware/test-artifacts/
network_mode: "host"
environment:
- ROS_LOCALHOST_ONLY=1
depends_on:
- planning-control
command: ros2 launch scenario_test_runner scenario_test_runner.launch.py architecture_type:=awf/universe record:=false scenario:=/autoware/test-scenario/yield_maneuver_demo.yaml sensor_model:=sample_sensor_kit vehicle_model:=sample_vehicle map_path:=/autoware/test-scenario/map/ launch_autoware:=False initialize_duration:=60 global_frame_rate:=12
command: ros2 launch scenario_test_runner scenario_test_runner.launch.py architecture_type:=awf/universe record:=false scenario:=/autoware/test-artifacts/yield_maneuver_demo.yaml sensor_model:=sample_sensor_kit vehicle_model:=sample_vehicle map_path:=/autoware/test-artifacts/map/ launch_autoware:=False initialize_duration:=60 global_frame_rate:=12

visualizer:
image: ghcr.io/autowarefoundation/autoware-openadk:latest-visualizer
volumes:
- /dev/shm:/dev/shm
- /tmp/.X11-unix:/tmp/.X11-unix
- /home/${USER}/autoware_artifacts/test-artifacts:/autoware/test-artifacts/
network_mode: "host"
environment:
- DISPLAY=$DISPLAY
- ROS_LOCALHOST_ONLY=1
depends_on:
- simulator
command: /autoware/test-scenario/rviz/launch_rviz.sh
command: /autoware/test-artifacts/rviz/launch_rviz.sh
Loading

0 comments on commit 6cd0c73

Please sign in to comment.