SpatialLocationCalculatorData

This message is an output from the SpatialLocationCalculator node.

Examples of functionality

Reference

class depthai.SpatialLocationCalculatorData
getData(self: object) → numpy.ndarray[numpy.uint8]
getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.SpatialLocationCalculatorData)int
getSpatialLocations(self: depthai.SpatialLocationCalculatorData)list[depthai.SpatialLocations]
getTimestamp(self: depthai.SpatialLocationCalculatorData)datetime.timedelta
getTimestampDevice(self: depthai.SpatialLocationCalculatorData)datetime.timedelta
setData(*args, **kwargs)

Overloaded function.

  1. setData(self: depthai.Buffer, arg0: list[int]) -> None

  2. setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None

setSequenceNum(self: depthai.SpatialLocationCalculatorData, arg0: int)depthai.SpatialLocationCalculatorData
setTimestamp(self: depthai.SpatialLocationCalculatorData, arg0: datetime.timedelta)depthai.SpatialLocationCalculatorData
setTimestampDevice(self: depthai.SpatialLocationCalculatorData, arg0: datetime.timedelta)depthai.SpatialLocationCalculatorData
class dai::SpatialLocationCalculatorData : public dai::Buffer

SpatialLocationCalculatorData message. Carries spatial information (X,Y,Z) and their configuration parameters

Public Functions

SpatialLocationCalculatorData()

Construct SpatialLocationCalculatorData message.

SpatialLocationCalculatorData(std::shared_ptr<RawSpatialLocations> ptr)
~SpatialLocationCalculatorData() = default
std::vector<SpatialLocations> &getSpatialLocations() const

Retrieve configuration data for SpatialLocationCalculatorData.

Return

Vector of spatial location data, carrying spatial information (X,Y,Z)

SpatialLocationCalculatorData &setTimestamp(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp)

Sets image timestamp related to dai::Clock::now()

SpatialLocationCalculatorData &setTimestampDevice(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp)

Sets image timestamp related to dai::Clock::now()

SpatialLocationCalculatorData &setSequenceNum(int64_t sequenceNum)

Retrieves image sequence number

Public Members

std::vector<SpatialLocations> &spatialLocations

Private Functions

std::shared_ptr<RawBuffer> serialize() const override

Private Members

RawSpatialLocations &rawdata

Got questions?

Head over to Discussion Forum for technical support or any other questions you might have.