Open Roberta

Position based on color

Background

We try to showcase the capabilities of the Lab and the robots with interesting programs. A program like this could be used to calibrate real robots (friction) using the printed sheet.

This is a NEPO task, make sure to read the info.

Task

Create a NEPO program that determines the robot position based on the background color.

Create a background in any image editor program with a color gradient along the x and y axis each. Then, use this background in the simulation to determine the current robot position and show it on the display. Use the color sensor's RGB mode for this purpose. Experiment with the gradients and document your usage of colors, minima and maxima.

Deliverables

A program and the background.

Task tags

  • nepo
  • advanced

Students who completed this task

RichardB, Olivia, Dina7, RohanC

Task type

  • code Code
close

2019