Documentation
Basic instructions
Overview
Basic instructions
- move
- paint
- grab
- see
Programming structures
Example scripts

Basic instructions

In each domain there are a fixed number of basic instructions you may use to write a program. You're only allowed to use this instructions directly when writing the script. For our robot the following basic instructions exist:

Move
naprzód(n) Move n steps forward
wstecz(n) Move n steps backward
wLewo() Turn left over 90 degrees
wPrawo() Turn right over 90 degrees
północ(n) Turn to head north and move n steps forward
południe(n) Turn to head south and move n steps forward
wschód(n) Turn to head east and move n steps forward
zachód(n) Turn to head west and move n steps forward
Paint
malujBiały() Put the brush with white paint to the ground.
malujCzarny() Put the brush with black paint to the ground.
przestańMalować() Stop painting, hide the brush
Grab
podnieś() Get the beacon in front of the robot
odłóż() Put a beacon in front of the robot
Flip coin
rzutMonetą() Flip a coin to make a random choice. rzutMonetą() will either be true or false.

 

See Left Front Right

 

lewoPrzeszkoda()

lewoPusto()

lewoNadajnik()

lewoBiałe()

lewoCzarne()

zPrzoduPrzeszkoda()

zPrzoduPusto()

zPrzoduNadajnik()

zPrzoduBiałe()

zPrzoduCzarne()

PrawoPrzeszkoda()

prawoPusto()

prawoNadajnik()

prawoBiałe()

prawoCzarne()

RoboMind - Copyright © 2005 - 2016 - Research Kitchen