MessageGroup
Creating MessageGroup
Reference
class
dai::MessageGroup
variable
std::map< std::string, std::shared_ptr< ADatatype > > group
function
~MessageGroup()function
std::shared_ptr< ADatatype > operator[](const std::string & name)inline function
std::shared_ptr< T > get(const std::string & name)inline function
std::shared_ptr< ADatatype > get(const std::string & name)function
void add(const std::string & name, const std::shared_ptr< ADatatype > & value)function
std::map< std::string, std::shared_ptr< ADatatype > >::iterator begin()function
std::map< std::string, std::shared_ptr< ADatatype > >::iterator end()function
bool isSynced(int64_t thresholdNs)True if all messages in the group are in the interval
Parameters
- thresholdNs: Maximal interval between messages
function
int64_t getIntervalNs()Retrieves interval between the first and the last message in the group.
function
int64_t getNumMessages()function
std::vector< std::string > getMessageNames()Gets the names of messages in the group
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)inline function
DatatypeEnum getDatatype()function
DEPTHAI_SERIALIZE(MessageGroup, group, Buffer::ts, Buffer::tsDevice, Buffer::sequenceNum)Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.