This project is a collaboration of me and other 3 teammates where we are given a vehicle with only 2 sensors to detect color and distance to the walls.
The task is very simple:
Given any random map (same area)
Reach the yellow line without crashing
Return to the green line without crashing
Finish in 5 minutes
Our team provided the best solution among 6 teams. This is the key features of our algorithm:
Encode the map whenever the car goes through: As being shown in the video, a matrix is continuously created to remember the map.
By doing this, we can compare the matrices so that the car will not repeat the same route unless it reaches the wanted color
The decimal element in the matrix represents a 4-bit binary numbers, corresponding to 4 directions
The matrix is reset once the model gets to the color.
Limitations: We did not have resources to determine the shortest way to the destination at the beginning because only two sensors were provided.