50 lines
963 B
Python
50 lines
963 B
Python
#encoding = utf8
|
|
|
|
import os
|
|
import logging
|
|
from queue import Queue
|
|
|
|
from human import HumanContext
|
|
from ipc import IPCUtil
|
|
|
|
logger = logging.getLogger(__name__)
|
|
current_file_path = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
class IpcRender:
|
|
def __init__(self):
|
|
self._human_context = None
|
|
self._queue = None
|
|
self._ipc = IPCUtil('ipc_sender', 'ipc_sender')
|
|
|
|
def run(self):
|
|
self._queue = Queue()
|
|
self._human_context = HumanContext()
|
|
self._human_context.build()
|
|
render = self._human_context.render_handler
|
|
render.set_image_render(self)
|
|
|
|
def stop(self):
|
|
pass
|
|
|
|
def get_image(self):
|
|
pass
|
|
|
|
def get_audio(self):
|
|
pass
|
|
|
|
def send_audio(self, audio):
|
|
pass
|
|
|
|
def send_image(self, image):
|
|
pass
|
|
|
|
def send_text(self, text):
|
|
pass
|
|
|
|
def send_command(self, command):
|
|
pass
|
|
|
|
def send_binary(self, data, length):
|
|
pass
|