An autonomous robot is being designed to step through a simple2D obstacle course (that is a flat maze). For each step, the robotscans three points: to the left, in front, and to the right. Therobot stores the results of the scan in a 1×3 vector(v) where each cell is occupied by either a 0 ifno wall is scanned or a 1 if a wall is scanned. When there is nowall is in front of the robot, then the robot continues to stepforward. When the front of the robot is blocked, then the robotturns to face the direction without a wall
PayPal Gateway not configured
PayPal Gateway not configured