Class MessageGroup

Inheritance Relationships

Base Type

Class Documentation

class MessageGroup : public dai::Buffer

MessageGroup message. Carries multiple messages in one.

Public Functions

virtual ~MessageGroup()
std::shared_ptr<ADatatype> operator[](const std::string &name)

Group.

template<typename T>
inline std::shared_ptr<T> get(const std::string &name)
inline std::shared_ptr<ADatatype> get(const std::string &name)
void add(const std::string &name, const std::shared_ptr<ADatatype> &value)
std::map<std::string, std::shared_ptr<ADatatype>>::iterator begin()
std::map<std::string, std::shared_ptr<ADatatype>>::iterator end()
bool isSynced(int64_t thresholdNs) const

True if all messages in the group are in the interval

Parameters:

thresholdNs – Maximal interval between messages

int64_t getIntervalNs() const

Retrieves interval between the first and the last message in the group.

int64_t getNumMessages() const
std::vector<std::string> getMessageNames() const

Gets the names of messages in the group

virtual void serialize(std::vector<std::uint8_t> &metadata, DatatypeEnum &datatype) const override
DEPTHAI_SERIALIZE(MessageGroup, group, Buffer::ts, Buffer::tsDevice, Buffer::sequenceNum)

Public Members

std::map<std::string, std::shared_ptr<ADatatype>> group