Programming a Robotic Cashier
In my last Medium post, I described how robots have massive potential in retail automation. This post is more of a tutorial explaining my…
In my last Medium post, I described how robots have massive potential in retail automation. This post is more of a tutorial explaining my previous work. It is intended to be partly educational about programming in general and about the Anki Vector SDK in specific. So lets get it rolling. For reference, the complete program is available on my github repository.
There are five main steps.
Connect to the Anki Vector and set it up. In this example, we open a connection to Vector requesting it to enable detection of faces and custom objects. The SDK provides these as options because each additional feature consumes valuable resources from the robot.
with anki_vector.Robot(args.serial, enable_face_detection=True, enable_custom_object_detection=True) as robot: connected_cube = robot.world.connected_light_cube robot.behavior.set_head_angle(degrees(35.0)) robot.behavior.set_lift_height(0.0)
2. Subscribe to events.