Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 7.88 KB

casezoo_instruction.md

File metadata and controls

59 lines (50 loc) · 7.88 KB

DI-drive Casezoo Documentation

Overview

DI-drive Casezoo consist of two parts: route scenario and single scenario. Route scenario can have individual scenarios defined on the way. They are triggered when hero vehicle passed by and deleted after finishing the route. Route scenario is defined in a xml file with its individual scenarios and trigger location defined in a json file. Single scenario is defined in a python file. If you want to run it individually, the example xml maps scenario in a certain location in a map, with each location a specific name. You can run it by passing its name such as "ChangeLane_1".

Usage

DI-drive provides a simple entry to runn Casezoo with AutoPIDPolicy. You can run auto_run_case.py with following command:

# Run route scenario
python auto_run_case.py --host [CARLA HOST] --port [CARLA_PORT] --route [ROUTE_FILE_PATH] [CONFIG_FILE_PATH]
# Run single scenario
python auto_run_case.py --host [CARLA HOST] --port [CARLA_PORT] --scenario [SCENARIO_NAME]

Single Scenario

Scenario name Description Sample image File path
ControlLossNew Hero vehicle briefly loses control and shakes controlloss control_loss_new.py
ControlLoss.xml
CutIn There is a car behind the side quickly approaches and then cuts into the current lane of the vehicle, and then the speed is reduced to drive at a constant speed cutin cut_in_new.py
CutIn.xml
FollowLeadingVehicleNew Follow a slower vehicle ahead (turns, straights, ramps) follow follow_leading_vehicle_new.py
LeadingVehicle.xml
ChangeLane There is a normal car near the front of the vehicle in the same lane, and a faulty car at a far distance. When the normal car approaches the faulty car, it changes lanes and cuts out (the picture shows a normal driving vehicle cut out) changelane change_lane.py
ChangeLane.xml
OppositeDirection There are vehicles in the opposite lane opposite opposite_direction.py
OppositeDirection.xml
SignalizedJunctionLeftTurn The other car turns left at the traffic light (the other car can be in front of the car or on other roads at the intersection, and the car can go straight or turn) left signalized_junction_left_turn.py
SignalizedJunctionLeftTurn.xml
SignalizedJunctionRightTurn The other car turns right at the traffic light (the other car can be in front of the car or on other roads at the intersection, and the car can go straight or turn) right signalized_junction_right_turn.py
SignalizedJunctionRightTurn.xml
SignalizedJunctionStraight The other car goes straight at the traffic light (the other car can be in front of the car or on other roads at the intersection, and the car can go straight or turn) straight signalized_junction_straight.py
SignalizedJunctionStraight.xml

Route Scenario

Route name Sample image Diffuculty File path
route01 route01 Hard route01.xml
route01.json
route02 route02 Hard route02.xml
route02.json
route03 route03 Hard route03.xml
route03.json
route04 route04 Hard route04.xml
route04.json
route06 route06 Hard route06.xml
route06.json
route07 route07 Hard route07.xml
route07.json
route08 route08 Hard route08.xml
route08.json
route09 route09 Hard route09.xml
route09.json
town03_1 town03_1 Hard town03_1.xml
town03_1.json
town03_junctions01 town03_junctions01 Easy town03_junctions01.xml
town03_junctions01.json
town03_junctions02 town03_junctions02 Easy town03_junctions02.xml
town03_junctions02.json
town03_junctions03 town03_junctions03 Easy town03_junctions03.xml
town03_junctions03.json
town04_junctions01 town04_junctions01 Easy town04_junctions01.xml
town04_junctions01.json
town04_junctions02 town04_junctions02 Easy town04_junctions02.xml
town04_junctions02.json
town04_junctions03 town04_junctions03 Easy town04_junctions03.xml
town04_junctions03.json
town05_junctions01 town05_junctions01 Easy town05_junctions01.xml
town05_junctions01.json
town05_junctions02 town05_junctions02 Easy town05_junctions02.xml
town05_junctions02.json
town05_junctions03 town05_junctions03 Easy town05_junctions03.xml
town05_junctions03.json

You can debug a route by running its xml file with no_scenarios.json. It runs no individual scenarios within the route.