Class SpatialLocationCalculator
Defined in File SpatialLocationCalculator.hpp
Inheritance Relationships
Base Type
public dai::NodeCRTP< Node, SpatialLocationCalculator, SpatialLocationCalculatorProperties >(Template Class NodeCRTP)
Class Documentation
-
class SpatialLocationCalculator : public dai::NodeCRTP<Node, SpatialLocationCalculator, SpatialLocationCalculatorProperties>
SpatialLocationCalculator node. Calculates spatial location data on a set of ROIs on depth map.
Public Functions
-
void setWaitForConfigInput(bool wait)
Specify whether or not wait until configuration message arrives to inputConfig Input.
- Parameters:
wait – True to wait for configuration message, false otherwise.
-
bool getWaitForConfigInput() const
See also
- Returns:
True if wait for inputConfig message, false otherwise
Public Members
-
SpatialLocationCalculatorConfig initialConfig
Initial config to use when calculating spatial location data.
-
Input inputConfig = {*this, "inputConfig", Input::Type::SReceiver, false, 4, {{DatatypeEnum::SpatialLocationCalculatorConfig, false}}}
Input SpatialLocationCalculatorConfig message with ability to modify parameters in runtime. Default queue is non-blocking with size 4.
-
Input inputDepth = {*this, "inputDepth", Input::Type::SReceiver, false, 4, true, {{DatatypeEnum::ImgFrame, false}}}
Input message with depth data used to retrieve spatial information about detected object. Default queue is non-blocking with size 4.
-
Output out = {*this, "out", Output::Type::MSender, {{DatatypeEnum::SpatialLocationCalculatorData, false}}}
Outputs SpatialLocationCalculatorData message that carries spatial location results.
-
Output passthroughDepth = {*this, "passthroughDepth", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}}
Passthrough message on which the calculation was performed. Suitable for when input queue is set to non-blocking behavior.
Public Static Attributes
-
static constexpr const char *NAME = "SpatialLocationCalculator"
Protected Functions
-
virtual Properties &getProperties()
-
void setWaitForConfigInput(bool wait)