Skip to content

Commit

Permalink
#278 Add ScenarioRunner containers to XiL
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlm committed Oct 31, 2023
1 parent 09d6c78 commit f9e1289
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
25 changes: 19 additions & 6 deletions xil_cloud/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ services:
command: bash -c "sleep 10;
export PYTHONPATH=$PYTHONPATH:~/PythonAPI/carla/dist/carla-0.9.10-py3.7-linux-x86_64.egg &&
source ~/carma_carla_ws/devel/setup.bash &&
roslaunch carma_carla_agent carma_carla_agent.launch role_name:='carma_1'
roslaunch carma_carla_agent carma_carla_agent.launch role_name:='carma_1'
host:='172.2.0.2'
selected_route:='Release_test_case_1'
start_delay_in_seconds:='15'
Expand Down Expand Up @@ -240,10 +240,10 @@ services:
# command: bash -c "sleep 10;
# export PYTHONPATH=$PYTHONPATH:~/PythonAPI/carla/dist/carla-0.9.10-py3.7-linux-x86_64.egg &&
# source ~/carma_carla_ws/devel/setup.bash &&
# roslaunch carma_carla_agent carma_carla_agent.launch role_name:='carma_2'
# roslaunch carma_carla_agent carma_carla_agent.launch role_name:='carma_2'
# host:='172.2.0.2'
# selected_route:='Release_test_case_2'
# start_delay_in_seconds:='15'
# selected_route:='Release_test_case_2'
# start_delay_in_seconds:='15'
# spawn_point:='201.4,-291.5,0,0,0,-90'"

# ns3_adapter_2:
Expand Down Expand Up @@ -416,10 +416,23 @@ services:
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./evc_sumo/evc_sumo_cfg.json:/home/carma/src/resources/evc_sumo_cfg.json
depends_on:
depends_on:
- carma-simulation
command: bash -c "sleep 10;x-terminal-emulator -e python3.8 evc_sumo_bridge.py --asc3app-path '../evcfile/asc3app-application.zip' --traci-ip 172.2.0.2"

scenario-runner:
image: usdotfhwastoldev/carma-scenario-runner:latest
container_name: carma-scenario-runner
networks:
- carma_sim_net
depends_on:
- carma-simulation
entrypoint: >
bash -c "sleep 30
&& python3 scenario_runner.py
--scenario MyScenario_1
--host 172.2.0.2"
networks:
carma_sim_net:
ipam:
Expand All @@ -430,7 +443,7 @@ networks:
ipam:
config:
- subnet: 172.3.0.0/16

# carma_net_2:
# ipam:
# config:
Expand Down
13 changes: 13 additions & 0 deletions xil_cloud_telematics/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,19 @@ services:
- NATS_IP=${NATS_IP} # This variable needs to be explictly defined before bringing the container up. NATS_IP referes to the IP of the cloud instance running the telematic server.
command: bash -c 'source /ws/install/setup.bash && ros2 launch ros2_nats_bridge ros2_nats_bridge_launch.py'

scenario-runner:
image: usdotfhwastoldev/carma-scenario-runner:latest
container_name: carma-scenario-runner
networks:
- carma_sim_net
depends_on:
- carma-simulation
entrypoint: >
bash -c "sleep 30
&& python3 scenario_runner.py
--scenario MyScenario_1
--host 172.2.0.2"
networks:
carma_sim_net:
ipam:
Expand Down

0 comments on commit f9e1289

Please sign in to comment.