Skip to content

cyingliu/Game-Theory-Lane-Changing

Repository files navigation

Game-Theory-Lane-Changing

Usage

  1. Genrate game theoretic simulation trajectory file.
# 'trajectory_post.csv' contains predefined routes of vehicles, and are extracted from NGSIM dataset
# use simulation.py to simulate the trajectory of vehicles 
# where the target vehicle interacted with the lag vehicle with the predifined two-player game when performing lane channging
# output 'trajectory_A.csv' for further visualization using MATLAB
python simulation.py
  1. Visualize the trajectory file.
compile and run simulation_traj.m
  1. Analyze the lane changing trajectory
compile and run plot_3d.m, plot_traj.m

Simulation Result

  1. In DrivingScenario directory, there are driving scenarios files that can be visualized by MATLAB automated driving toolbox.
  • rule_based.mat: Vehicle A based on rule-based lane changing, and fails because of safety distance
  • data_based.mat: The visualization of real world data from NGSIM data, vehicle A fails to change lane.
  • game_theory.mat: Vehicle A succeed to change lane via game with Vehicle B, while considering safety distance.
  1. In video directory, there are videos of the visualization of the three driving scenario files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published