// // Activity file for the movit simple action // // Just loads the .so file, and starts up an instance of the movit action // Must be loaded from the tutor/movit directory // loadlib movit; // loads from SAPHIRA/lib // // A simple activity using Movit // act movit_act(int dist) { start Movit(dist, 90) priority 10; remove Movit; // get rid of the action stop; // stop the robot } // // Some simple Colbert activities that use direct motion commands // act patrol(int a) // go back and forth 'a' times { while (a) { sfMessage("Patrol %d", a); a = a-1; move(1000); turnto(0); move(1000); turnto(180); } } act square // move in a square { int a; a = 4; while(a) { a = a-1; move(1000); turn(90); } } act aa // call them sequentially { trace patrol; start patrol(2); trace square; start square; }