Go to the documentation of this file.
12 from time import sleep
17 b.setData(bytes(4 * [i for i in range(0, 128)]))
18 b.setTimestamp(Clock.now())
19 node.io['out'].send(b)
25 from time import sleep
30 b.setData(bytes(4 * [i for i in range(128, 256)]))
31 b.setTimestamp(Clock.now())
32 node.io['out'].send(b)
41 xout1->setStreamName(
"xout1");
45 script1->outputs[
"out"].link(sync->inputs[
"s1"]);
46 script2->outputs[
"out"].link(sync->inputs[
"s2"]);
47 sync->out.link(demux->input);
48 demux->outputs[
"s1"].link(xout1->
input);
49 demux->outputs[
"s2"].link(xout2->input);
52 std::cout <<
"Start" << std::endl;
58 std::cout <<
"Buffer 1 timestamp: " << bufS1->
getTimestamp().time_since_epoch().count() << std::endl;
59 std::cout <<
"Buffer 2 timestamp: " << bufS2->
getTimestamp().time_since_epoch().count() << std::endl;
60 std::cout <<
"----------" << std::endl;
61 std::this_thread::sleep_for(std::chrono::milliseconds(200));
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > getTimestamp() const
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
void setSyncThreshold(std::chrono::nanoseconds syncThreshold)
void setScript(const std::string &script, const std::string &name="")
std::shared_ptr< N > create()
Base message - buffer of binary data.
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19