Thumbnail

Programming With Pictures

by Synthiam

Program your robot using images printed on paper.

How to add the Programming With Pictures robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Camera category tab.
  5. Press the Programming With Pictures icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Programming With Pictures robot skill.

How to use the Programming With Pictures robot skill

Using the camera, this skill will allow you to add programming commands by holding up pieces of paper with images printed on them. The concept is to allow programming instructions using visual representations. Each card has an image that represents a specific command, such as move forward, turn right, turn left, or reverse. Using cue cards, the robot can be programmed for specific movements to navigate a maze, for example. The order in which the cards are shown to the robot are stored in memory and determines the path the robot will take. When you're ready to run the program, show the robot the Start card and the program will begin!

*Note: This skill is in experimental stage and is released as proof of concept only. There will be future enhancements to the skill in the future.

Main Window

User-inserted image

1. Attach/Detach Camera Button This button will attach/detach the camera configured in the camera device skill to the program with pictures skill window.

2. Status Field This field will display the status of the connection to the camera device skill and any errors that occur.

3. Clear Button This button will clear the program that has been added to the program field.

4. Program Field This field will display the detected command images in top-down order. It will also highlight the active command in green when the program is executed (START image recognized).

How To Use Programming with Pictures

  1. Print the images below on full sheets of paper

  2. Add a Camera Device skill to your ARC project (Project -> Add Skill -> Camera -> Camera Device).

  3. Connect to the robot AND to the camera of your robot.

  4. Add a Programming with Pictures skill to your ARC project (Project -> Add skill -> Camera -> Programming with Pictures).

  5. Press the ATTACH button on the Programming with Pictures skill. This will attach this skill to the camera device skill. You will now see a mirror of the camera's video stream in this skill.

  6. Show an DIRECTION (UP, DOWN, LEFT, RIGHT) or PAUSE image to the camera and the commands will be added to the program list.

  7. Show the START image to the camera and the program will run.

Images to Print for Programming

Direction Image - hold the image in any direction you wish the robot to move (Ex: Arrow pointed up to move forward)

User-inserted image

Pause Image - robot will pause for 2 seconds between commands

User-inserted image

Start Image - the program will begin running when this image is detected

User-inserted image

Video

Requirements

An installed camera device (Integrated webcam, EZ-B camera, USB camera, etc.) and a print out of the pictures above.

Resources

The source code for this skill can be found here.


ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

PRO
USA
#1   — Edited

Hi

I followed your instructions, all went well

Where is the code that it generated?

When I click on the source code I get:

https://github.com/synthiam/Behavior_Control_Programming_with_Pictures

Thanks again

Angelo