David J Sherman - david.nosp@m..she.nosp@m.rman@.nosp@m.inri.nosp@m.a.fr
This AESL program defines high-level behaviors for the Thymio-II robot that enable it to cooperate with programs like Scratch, Snap!, and Nodejs, in particular using the asebahttp REST API. The features defined here are:
- A motion queue of length 4 with a program counter (Queue)
- Incoming events to change queue: Q_add_motion, Q_cancel_motion, Q_reset (Motion)
- Broadcast of informative events when the motion queue changes state (Queue and Motion)
- Odometry (angle, x, y), updated at 100Hz (Odometry)
- Incoming events for native functions: V_leds_*, A_sound_*, M_motor_* (Native)
- Variables for simplified reporters (distance and angle) from prox.* (Reporters)
- Broacast of compressed robot state at 10 Hz (State)
Events that can be used for broadcast on the Aseba bus are defined in Global Events. Constants are defined in Constants.