Closed chongxi closed 6 years ago
This is implemented through a buffer which is a generator
to force each time it generates a complete line.
The parse()
part is through inheriting from base str
class, by adding a parse method.
The output of jovian
abstraction teleportation
example:
from playground.base import Jovian
jov = Jovian()
x,y,_ = (target_pos - origin)/scale
jov.teleport(prefix='console', target_pos=(x,y,5))
Introduction to Jovian: Jovian.pdf
Introduction to MouseOver: MouseoVeR_Documentation.docx
1. The Jovian/MouseOver part
This Jovian abstraction receives input from
Jovian
just as the obsoletebehaviour box
, except it sits in a CPU rather than a microcontroller, and it usessocket
rather thanUART
When MouseoVeR is in the ‘Connected’ state, as set in Console Setup tab (see MouseOver Documentation section 1.4.1-[13]), data describing the current state of the virtual camera (see MouseOver Documentation section 2.1.1) in the scene model (current time relative to the time of ‘Connect’, X-position, Y-position, Z-position, Speed, Heading Direction, and other user-defined events) is continuously printed out via serial port (set in the Configuration tab, in the ‘Input-Output Communication’ panel’s ‘Data Output’, or if undefined, is by default output to the Console terminal window.
The data output is an ASCII string comprised of comma-separated arguments. Each line of data corresponds to the activity of the virtual camera during (or at the end) of the previous frame. An example of a typical data line is:
This particular data line corresponds to:
NOTE: Each data line is ended with ‘/n/r’.
2. The Jovian abstract (input)
The desired usage:
Hence the API: