Script execution

This commit is contained in:
2022-08-25 11:29:56 +02:00
parent 2c9a5f7dfa
commit ba002514c9

View File

@@ -7,6 +7,7 @@ from cam_server.pipeline.configuration import PipelineConfig
from cam_server import CamClient, PipelineClient, ProxyClient, config
from cam_server.pipeline.types.processing import run as processing_pipeline
import multiprocessing
import time
class Namespace(object):
def __init__(self, **kwds):
@@ -77,8 +78,9 @@ for port in (12007, 12008):
parameter_queue = queue.Queue()
thread = threading.Thread(target=run_pipeline, args=(port,pipeline_config, parameter_queue, stop_event))
thread.start()
data = get_data(port)
print ("Received: ", data.keys())
#data = get_data(port)
#print ("Received: ", data.keys())
time.sleep(1.0)
stop_event.set()
thread.join(5.0)
print ("Finished OK")