CZ3004Group27 / algo

Simulator and path planning algorithms
1 stars 0 forks source link

Fix bug car moves out of arena #2

Closed Toefinder closed 2 years ago

Toefinder commented 2 years ago

The car animation moves out of the arena. We can fix this and even make driving safer by adding a padding near the wall.

Toefinder commented 2 years ago

This turns out to not be a bug since the car is allowed to go out of the arena (however this may be unsafe).

Toefinder commented 2 years ago

We should modify check_within_border() method of Robot class to ensure the car does not move to unsafe area.

Toefinder commented 2 years ago

This has been fixed as a side result of #56 where we can flexibly edit BOUNDARY_BUFFER in a star search to be a negative value to allow the car to move that many cells out side of the main grid. The car can then move to previously inaccessible obstacles.