IMUData

IMU data message is created by the IMU node.

Reference

class depthai.IMUData

IMUData message. Carries normalized detection results

getData(self: object) → numpy.ndarray[numpy.uint8]

Get non-owning reference to internal buffer

Returns

Reference to internal buffer

getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.Buffer)int

Retrieves sequence number

getTimestamp(self: depthai.Buffer)datetime.timedelta

Retrieves timestamp related to dai::Clock::now()

getTimestampDevice(self: depthai.Buffer)datetime.timedelta

Retrieves timestamp directly captured from device’s monotonic clock, not synchronized to host time. Used mostly for debugging

property packets

Detections

setData(*args, **kwargs)

Overloaded function.

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

Parameter data:

Copies data to internal buffer

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

Parameter data:

Copies data to internal buffer

setSequenceNum(self: depthai.Buffer, arg0: int)depthai.Buffer

Retrieves sequence number

setTimestamp(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer

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

setTimestampDevice(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer

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

class dai::IMUData : public dai::Buffer

IMUData message. Carries normalized detection results

Public Functions

IMUData()

Construct IMUData message.

IMUData(std::shared_ptr<RawIMUData> ptr)
~IMUData() = default

Public Members

std::vector<IMUPacket> &packets

Detections.

Private Functions

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

Private Members

RawIMUData &rawIMU

Got questions?

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