wiki:InterpretingFeedback

Version 13 (modified by welberge, 5 years ago) (diff)

--

Interpreting Feedback

AsapRealizer uses   BML 1.0 feedback to indicate progress on the behavior it is executing and predictions on the timing of to be executed behavior. Special attributes are introduced in BMLA to specify (predicted) POSIX timestamps of behavior (=number of milliseconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970).

TODO: write out BMLA spec

Parsing feedback

See  https://github.com/saiba/OpenBMLParser/wiki

TODO: posixtime parsing

Interpreting timestamps, POSIX time, local time and global time

Timestamps for feedback messages are given in local time (since the start of the BML block), global time (seconds since the start of AsapRealizer), and POSIX time. The timestamps in local and global time are more precise (obtained with System.nanoTime()), but are not not related to any other notion of system or wall-clock time. There is also no garantee that these times match timestamps obtained through System.nanoTime() called from another JVM. Timestamps in POSIX-time are less precise (obtained with System.currentTimeMillis()). The resolution of the POSIX timestamps is OS-dependent, in Windows it is 10ms, in other OSes it's typically better. Local time and global times are given in seconds, POSIX time in milliseconds.

Feedback obtained from a single BML block