mjcortejo / csc931m-complex-systems

This repository contains the projects done for the CSC931M class
0 stars 0 forks source link

Implement Intersection States #2

Closed mjcortejo closed 1 year ago

mjcortejo commented 1 year ago

Need to implement per edge light states:

Initial idea is from a node, get all adjacent edges or nodes.

Create a dictionary of light states for reach adjacent edges.

mjcortejo commented 1 year ago

There is an issue where Car 0 looks like it goes thru an intersection. However the cause is that, it thinks the origin starts from 5 (An intersection) destined to 8 (dead end).

But the canvas placement is between 2 and 5, (Car 0 is the yellow dot on the 2-5 midpoints

image image
mjcortejo commented 1 year ago

Check if Open AI Gym has implementations of these

https://github.com/rltraffic/gym-graph-traffic

mjcortejo commented 1 year ago

Resolved in #7