Closed chongxi closed 6 years ago
Above sample code received input from jovian process
which runs in a different CPU continuously.
jovian reading process
def _jovian_process(pipe_jovian_side, jov):
while True:
with Timer('', verbose=True):
_t, _coord = jov.readline().parse()
pipe_jovian_side.send((_t, _coord))
print(_t, _coord)
parsed behavior data is communicate between pipe_gui_side
and pipe_jovian_side
under 1 ms
As of jov.readline().parse()
refer to:
https://github.com/chongxi/playground/issues/6
When parsing the vr stream from
multiprocessing
pipe. We gettime
andcoord
from readingprocess
The goal is to use just one line of code to update: (Assign time budget 2ms)
Property and Setter should be used so that line looks like:
nav_view.current_pos = np.array(coord)
The function will look like