Class DisparityConverter

Class Documentation

class DisparityConverter

Public Functions

DisparityConverter(const std::string frameName, float focalLength, float baseline = 7.5, float minDepth = 80, float maxDepth = 1100, bool getBaseDeviceTimestamp = false)
~DisparityConverter()
void updateRosBaseTime()

Handles cases in which the ROS time shifts forward or backward Should be called at regular intervals or on-change of ROS time, depending on monitoring.

inline void setUpdateRosBaseTimeOnToRosMsg(bool update = true)

Commands the converter to automatically update the ROS base time on message conversion based on variable.

Parameters:

update – bool whether to automatically update the ROS base time on message conversion

void toRosMsg(std::shared_ptr<dai::ImgFrame> inData, std::deque<DisparityMsgs::DisparityImage> &outImageMsg)
DisparityImagePtr toRosMsgPtr(std::shared_ptr<dai::ImgFrame> inData)