RAPP Platform  v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
 All Classes Namespaces Files Functions Variables Macros
FaceDetection Class Reference

Class FaceDetection uptakes the task of handling the ROS service callbacks. More...

#include <face_detection.h>

Collaboration diagram for FaceDetection:

Public Member Functions

 FaceDetection (void)
 Default constructor. More...
 
bool faceDetectionCallback (rapp_platform_ros_communications::FaceDetectionRosSrv::Request &req, rapp_platform_ros_communications::FaceDetectionRosSrv::Response &res)
 Serves the face detection ROS service callback. More...
 

Private Attributes

FaceDetector face_detector_
 
ros::ServiceServer faceDetectionService_
 
std::string faceDetectionTopic_
 
ros::NodeHandle nh_
 

Detailed Description

Class FaceDetection uptakes the task of handling the ROS service callbacks.

Definition at line 31 of file face_detection.h.

Constructor & Destructor Documentation

FaceDetection::FaceDetection ( void  )

Default constructor.

Default constructor. Performs initializations.

Definition at line 24 of file face_detection.cpp.

Member Function Documentation

bool FaceDetection::faceDetectionCallback ( rapp_platform_ros_communications::FaceDetectionRosSrv::Request &  req,
rapp_platform_ros_communications::FaceDetectionRosSrv::Response &  res 
)

Serves the face detection ROS service callback.

Parameters
req[rapp_platform_ros_communications::FaceDetectionRosSrv::Request&] The ROS service request
res[rapp_platform_ros_communications::FaceDetectionRosSrv::Response&] The ROS service response
Returns
bool - The success status of the call

Definition at line 42 of file face_detection.cpp.

Member Data Documentation

FaceDetector FaceDetection::face_detector_
private

Definition at line 62 of file face_detection.h.

ros::ServiceServer FaceDetection::faceDetectionService_
private

Member variable holding the face detection ROS service topic

Definition at line 56 of file face_detection.h.

std::string FaceDetection::faceDetectionTopic_
private

Object of type FaceDetector

Definition at line 59 of file face_detection.h.

ros::NodeHandle FaceDetection::nh_
private

< The ROS node handle The face detection service server

Definition at line 53 of file face_detection.h.


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