added option to record objects in front of the robot