Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
src
pipeline
datatype
Tracklets.cpp
Go to the documentation of this file.
1
#include "
depthai/pipeline/datatype/Tracklets.hpp
"
2
3
namespace
dai
{
4
5
std::shared_ptr<RawBuffer>
Tracklets::serialize
()
const
{
6
return
raw
;
7
}
8
9
Tracklets::Tracklets
() :
Buffer
(
std
::make_shared<
RawTracklets
>()), rawdata(*dynamic_cast<
RawTracklets
*>(raw.
get
())), tracklets(rawdata.tracklets) {}
10
Tracklets::Tracklets
(std::shared_ptr<RawTracklets> ptr)
11
:
Buffer
(
std
::move(ptr)), rawdata(*dynamic_cast<
RawTracklets
*>(raw.
get
())), tracklets(rawdata.tracklets) {}
12
13
// setters
14
Tracklets
&
Tracklets::setTimestamp
(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> tp) {
15
// Set timestamp from timepoint
16
return
static_cast<
Tracklets
&
>
(
Buffer::setTimestamp
(tp));
17
}
18
Tracklets
&
Tracklets::setTimestampDevice
(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> tp) {
19
// Set timestamp from timepoint
20
return
static_cast<
Tracklets
&
>
(
Buffer::setTimestampDevice
(tp));
21
}
22
Tracklets
&
Tracklets::setSequenceNum
(int64_t sequenceNum) {
23
return
static_cast<
Tracklets
&
>
(
Buffer::setSequenceNum
(sequenceNum));
24
}
25
26
}
// namespace dai
dai::Tracklets::setSequenceNum
Tracklets & setSequenceNum(int64_t sequenceNum)
Definition:
Tracklets.cpp:22
DAI_SPAN_NAMESPACE_NAME::get
constexpr auto get(span< E, S > s) -> decltype(s[N])
Definition:
span.hpp:491
dai::RawTracklets
RawTracklets structure.
Definition:
RawTracklets.hpp:59
dai::Tracklets::serialize
std::shared_ptr< RawBuffer > serialize() const override
Definition:
Tracklets.cpp:5
dai::Tracklets::setTimestampDevice
Tracklets & setTimestampDevice(std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
Definition:
Tracklets.cpp:18
dai::Tracklets
Definition:
Tracklets.hpp:15
dai::Buffer::setTimestamp
Buffer & setTimestamp(std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
Definition:
Buffer.cpp:39
dai::Buffer::setTimestampDevice
Buffer & setTimestampDevice(std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
Definition:
Buffer.cpp:47
dai::Tracklets::Tracklets
Tracklets()
Definition:
Tracklets.cpp:9
Tracklets.hpp
dai::Buffer
Base message - buffer of binary data.
Definition:
Buffer.hpp:13
std
Definition:
Node.hpp:366
dai::ADatatype::raw
std::shared_ptr< RawBuffer > raw
Definition:
ADatatype.hpp:15
dai
Definition:
CameraExposureOffset.hpp:6
dai::Tracklets::setTimestamp
Tracklets & setTimestamp(std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
Definition:
Tracklets.cpp:14
dai::Buffer::setSequenceNum
Buffer & setSequenceNum(int64_t sequenceNum)
Definition:
Buffer.cpp:55
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19