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

#include <SpatialDetectionConverter.hpp>

Public Member Functions

 SpatialDetectionConverter (std::string frameName, int width, int height, bool normalized=false)
 
void toRosMsg (std::shared_ptr< dai::SpatialImgDetections > inNetData, std::deque< SpatialMessages::SpatialDetectionArray > &opDetectionMsg)
 
SpatialDetectionArrayPtr toRosMsgPtr (std::shared_ptr< dai::SpatialImgDetections > inNetData)
 

Private Attributes

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

Detailed Description

Definition at line 29 of file SpatialDetectionConverter.hpp.

Constructor & Destructor Documentation

◆ SpatialDetectionConverter()

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

Definition at line 6 of file SpatialDetectionConverter.cpp.

Member Function Documentation

◆ toRosMsg()

void dai::ros::SpatialDetectionConverter::toRosMsg ( std::shared_ptr< dai::SpatialImgDetections >  inNetData,
std::deque< SpatialMessages::SpatialDetectionArray > &  opDetectionMsg 
)

Definition at line 9 of file SpatialDetectionConverter.cpp.

◆ toRosMsgPtr()

SpatialDetectionArrayPtr dai::ros::SpatialDetectionConverter::toRosMsgPtr ( std::shared_ptr< dai::SpatialImgDetections >  inNetData)

Definition at line 82 of file SpatialDetectionConverter.cpp.

Member Data Documentation

◆ _frameName

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

Definition at line 40 of file SpatialDetectionConverter.hpp.

◆ _height

int dai::ros::SpatialDetectionConverter::_height
private

Definition at line 39 of file SpatialDetectionConverter.hpp.

◆ _normalized

bool dai::ros::SpatialDetectionConverter::_normalized
private

Definition at line 41 of file SpatialDetectionConverter.hpp.

◆ _width

int dai::ros::SpatialDetectionConverter::_width
private

Definition at line 39 of file SpatialDetectionConverter.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