changes to allow robot to directly approach an object