Learn With A Robot

Share this post

Programming a Robotic Cashier

www.learnwitharobot.com

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…

Amitabha Banerjee
Nov 8, 2019
∙ Paid
Share

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.

  1. 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.

o…

This post is for paid subscribers

Already a paid subscriber? Sign in
Previous
Next
© 2023 Learn With A Robot
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing