Obstacle Detection in a Grid Map
Hello, let's say we have a robot and the map is already there. The robot knows its position. How can I know and print if there are obstacles or not at each coordinate in a 3by3 or a 5by5 grid with the robot taking the middle position (0,0) in the grid?