Public Member Functions | Private Attributes | List of all members
dai::ros::ImgDetectionConverter Class Reference

#include <ImgDetectionConverter.hpp>

Public Member Functions

 ImgDetectionConverter (std::string frameName, int width, int height, bool normalized=false)
 
void toRosMsg (std::shared_ptr< dai::ImgDetections > inNetData, std::deque< VisionMsgs::Detection2DArray > &opDetectionMsgs)
 
Detection2DArrayPtr toRosMsgPtr (std::shared_ptr< dai::ImgDetections > inNetData)
 

Private Attributes

const std::string _frameName
 
int _height
 
bool _normalized
 
int _width
 

Detailed Description

Definition at line 29 of file ImgDetectionConverter.hpp.

Constructor & Destructor Documentation

◆ ImgDetectionConverter()

dai::ros::ImgDetectionConverter::ImgDetectionConverter ( std::string  frameName,
int  width,
int  height,
bool  normalized = false 
)

Definition at line 7 of file ImgDetectionConverter.cpp.

Member Function Documentation

◆ toRosMsg()

void dai::ros::ImgDetectionConverter::toRosMsg ( std::shared_ptr< dai::ImgDetections >  inNetData,
std::deque< VisionMsgs::Detection2DArray > &  opDetectionMsgs 
)

Definition at line 10 of file ImgDetectionConverter.cpp.

◆ toRosMsgPtr()

Detection2DArrayPtr dai::ros::ImgDetectionConverter::toRosMsgPtr ( std::shared_ptr< dai::ImgDetections >  inNetData)

Definition at line 76 of file ImgDetectionConverter.cpp.

Member Data Documentation

◆ _frameName

const std::string dai::ros::ImgDetectionConverter::_frameName
private

Definition at line 40 of file ImgDetectionConverter.hpp.

◆ _height

int dai::ros::ImgDetectionConverter::_height
private

Definition at line 39 of file ImgDetectionConverter.hpp.

◆ _normalized

bool dai::ros::ImgDetectionConverter::_normalized
private

Definition at line 41 of file ImgDetectionConverter.hpp.

◆ _width

int dai::ros::ImgDetectionConverter::_width
private

Definition at line 39 of file ImgDetectionConverter.hpp.


The documentation for this class was generated from the following files:


depthai_bridge
Author(s): Sachin Guruswamy
autogenerated on Tue May 10 2022 03:01:27