Class DynamicCalibration

Inheritance Relationships

Base Types

Class Documentation

class DynamicCalibration : public dai::DeviceNodeCRTP<DeviceNode, DynamicCalibration, DynamicCalibrationProperties>, public dai::HostRunnable

Public Functions

~DynamicCalibration() override = default
virtual void buildInternal() override

Function called from within the create function to build the node. This function is useful for initialization, setting up inputs and outputs = stuff that cannot be perform in the constuctor.

void setRunOnHost(bool runOnHost)

Specify whether to run on host or device By default, the node will run on host on RVC2 and on device on RVC4.

virtual bool runOnHost() const override

Returns true or false whether the node should be run on host or not.

inline DeviceNodeCRTP()
inline DeviceNodeCRTP(const std::shared_ptr<Device> &device)
inline DeviceNodeCRTP(std::unique_ptr<Properties> props)
inline DeviceNodeCRTP(std::unique_ptr<Properties> props, bool confMode)
inline DeviceNodeCRTP(const std::shared_ptr<Device> &device, std::unique_ptr<Properties> props, bool confMode)

Public Members

Input inputControl{*this, {"inputControl", DEFAULT_GROUP, NON_BLOCKING_QUEUE, 5, {{{DatatypeEnum::DynamicCalibrationControl, false}}}, DEFAULT_WAIT_FOR_MESSAGE}}

Input DynamicCalibrationControl message with ability to modify parameters in runtime.

Output calibrationOutput{*this, {"calibrationOutput", DEFAULT_GROUP, {{{DatatypeEnum::DynamicCalibrationResult, false}}}}}

Output calibration quality result

Output qualityOutput{*this, {"qualityOutput", DEFAULT_GROUP, {{{DatatypeEnum::CalibrationQuality, false}}}}}
Output coverageOutput{*this, {"coverageResult", DEFAULT_GROUP, {{{DatatypeEnum::CoverageData, false}}}}}
Input syncInput{*this, {"inSync", DEFAULT_GROUP, false, 1, {{DatatypeEnum::MessageGroup, true}}}}
Subnode<node::Sync> sync = {*this, "sync"}
InputMap &inputs = sync->inputs
std::string leftInputName = "left"
std::string rightInputName = "right"
Input &left = inputs[leftInputName]

Input left image

Input &right = inputs[rightInputName]

Input right image

Public Static Attributes

static constexpr const char *NAME = "DynamicCalibration"

Protected Functions

virtual Properties &getProperties() override