There is no check whether the coordinates specified by robot_init(x, y, theta) is valid (i.e., within the arena dimensions).
Fix: The code should provide a warning or exit if a position is outside the arena bounds.
This might be easier said than done because when calling robot_init, the Robot does not have access to the World in which it exists.
There is no check whether the coordinates specified by
robot_init(x, y, theta)is valid (i.e., within the arena dimensions).Fix: The code should provide a warning or exit if a position is outside the arena bounds.
This might be easier said than done because when calling
robot_init, the Robot does not have access to the World in which it exists.