rangefinder doesn't account for robot size

as far as i can tell robot.position is the top left of the robots bounding box. rangefinder should prob account for robot.size with the position of the sensor on the robot. 
thoughts?