Improves detection of the orientation of the robot by checking points around the centroid