0

I want to write python code that simulates single lane traffic intersection on an image that I have below. I don't necessarily need to do it with a given image, ones that are created by cv2, matplotlib, etc are fine as well.

The cars start at the beginning of green arrows, and red dots are merging points. I also show an example how they move with the red car

enter image description here

Currently I am still confused how I should start with this. Could anyone kindly give me hints or help me with this?

I've read about potential field, checked out PathPlanning and PathTracking of PythonRobotics on Github, but still kinda clueless about this one.

James Z
  • 12,209
  • 10
  • 24
  • 44
Towen
  • 1
  • 1
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jun 19 '23 at 22:12
  • So I created the street by pygame with display.blit(street,(0,0)). I'm now kinda struggle with algorithms for path tracking (cars follow green/blue arrows). The link to it is https://github.com/DangTranQL/Traffic_Flow/tree/main – Towen Jun 20 '23 at 17:18

0 Answers0