include
depthai
pipeline
node
Sync.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <chrono>
4
5
#include "
depthai-shared/properties/SyncProperties.hpp
"
6
#include "
depthai/pipeline/Node.hpp
"
7
8
namespace
dai
{
9
namespace
node {
10
11
class
Sync
:
public
NodeCRTP
<Node, Sync, SyncProperties> {
12
public
:
13
constexpr
static
const
char
*
NAME
=
"Sync"
;
14
Sync
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId);
15
16
Sync
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props);
17
21
InputMap
inputs
;
22
26
Output
out
{*
this
,
"out"
, Output::Type::MSender, {{
DatatypeEnum::MessageGroup
,
false
}}};
27
32
void
setSyncThreshold
(std::chrono::nanoseconds syncThreshold);
33
41
void
setSyncAttempts
(
int
syncAttempts);
42
46
std::chrono::nanoseconds
getSyncThreshold
()
const
;
47
51
int
getSyncAttempts
()
const
;
52
};
53
54
}
// namespace node
55
}
// namespace dai
dai::node::Sync::NAME
constexpr static const char * NAME
Definition:
Sync.hpp:13
dai::node::Sync
Definition:
Sync.hpp:11
dai::node::Sync::Sync
Sync(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Definition:
Sync.cpp:6
dai::node::Sync::getSyncAttempts
int getSyncAttempts() const
Definition:
Sync.cpp:26
dai::Node::Output
Definition:
Node.hpp:67
dai::NodeCRTP
Definition:
Node.hpp:342
dai::node::Sync::inputs
InputMap inputs
Definition:
Sync.hpp:21
dai::node::Sync::setSyncThreshold
void setSyncThreshold(std::chrono::nanoseconds syncThreshold)
Definition:
Sync.cpp:14
SyncProperties.hpp
dai::node::Sync::getSyncThreshold
std::chrono::nanoseconds getSyncThreshold() const
Definition:
Sync.cpp:22
dai::node::Sync::setSyncAttempts
void setSyncAttempts(int syncAttempts)
Definition:
Sync.cpp:18
dai::DatatypeEnum::MessageGroup
@ MessageGroup
dai
Definition:
CameraExposureOffset.hpp:6
Node.hpp
dai::node::Sync::out
Output out
Definition:
Sync.hpp:26
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19