Public Member Functions | Private Member Functions | Private Attributes | List of all members
DnnNode Class Reference

Public Member Functions

 DnnNode (ros::NodeHandle &nh)
 

Private Member Functions

void image_callback (const sensor_msgs::ImageConstPtr &msg)
 
bool trigger_callback (dnn_detect::Detect::Request &req, dnn_detect::Detect::Response &res)
 

Private Attributes

std::vector< std::string > class_names
 
ros::ServiceServer detect_srv
 
int frame_num
 
int im_size
 
image_transport::Publisher image_pub
 
image_transport::Subscriber img_sub
 
image_transport::ImageTransport it
 
float mean_val
 
float min_confidence
 
cv::dnn::Net net
 
volatile bool processed
 
bool publish_images
 
cv::Mat resized_image
 
dnn_detect::DetectedObjectArray results
 
ros::Publisher results_pub
 
int rotate_flag
 
cv::Mat rotated_image
 
float scale_factor
 
bool single_shot
 
volatile bool triggered
 

Detailed Description

Definition at line 63 of file dnn_detect.cpp.

Constructor & Destructor Documentation

DnnNode::DnnNode ( ros::NodeHandle nh)

Definition at line 218 of file dnn_detect.cpp.

Member Function Documentation

void DnnNode::image_callback ( const sensor_msgs::ImageConstPtr &  msg)
private

Definition at line 121 of file dnn_detect.cpp.

bool DnnNode::trigger_callback ( dnn_detect::Detect::Request &  req,
dnn_detect::Detect::Response &  res 
)
private

Definition at line 104 of file dnn_detect.cpp.

Member Data Documentation

std::vector<std::string> DnnNode::class_names
private

Definition at line 79 of file dnn_detect.cpp.

ros::ServiceServer DnnNode::detect_srv
private

Definition at line 93 of file dnn_detect.cpp.

int DnnNode::frame_num
private

Definition at line 73 of file dnn_detect.cpp.

int DnnNode::im_size
private

Definition at line 75 of file dnn_detect.cpp.

image_transport::Publisher DnnNode::image_pub
private

Definition at line 81 of file dnn_detect.cpp.

image_transport::Subscriber DnnNode::img_sub
private

Definition at line 68 of file dnn_detect.cpp.

image_transport::ImageTransport DnnNode::it
private

Definition at line 67 of file dnn_detect.cpp.

float DnnNode::mean_val
private

Definition at line 78 of file dnn_detect.cpp.

float DnnNode::min_confidence
private

Definition at line 74 of file dnn_detect.cpp.

cv::dnn::Net DnnNode::net
private

Definition at line 83 of file dnn_detect.cpp.

volatile bool DnnNode::processed
private

Definition at line 89 of file dnn_detect.cpp.

bool DnnNode::publish_images
private

Definition at line 71 of file dnn_detect.cpp.

cv::Mat DnnNode::resized_image
private

Definition at line 84 of file dnn_detect.cpp.

dnn_detect::DetectedObjectArray DnnNode::results
private

Definition at line 91 of file dnn_detect.cpp.

ros::Publisher DnnNode::results_pub
private

Definition at line 65 of file dnn_detect.cpp.

int DnnNode::rotate_flag
private

Definition at line 76 of file dnn_detect.cpp.

cv::Mat DnnNode::rotated_image
private

Definition at line 85 of file dnn_detect.cpp.

float DnnNode::scale_factor
private

Definition at line 77 of file dnn_detect.cpp.

bool DnnNode::single_shot
private

Definition at line 87 of file dnn_detect.cpp.

volatile bool DnnNode::triggered
private

Definition at line 88 of file dnn_detect.cpp.


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


dnn_detect
Author(s): Jim Vaughan
autogenerated on Thu Sep 24 2020 03:23:11