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
HumanDetection Class Reference

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

#include <human_detection.h>

Collaboration diagram for HumanDetection:

Public Member Functions

 HumanDetection (void)
 Default constructor. More...
 
bool humanDetectionCallback (rapp_platform_ros_communications::HumanDetectionRosSrv::Request &req, rapp_platform_ros_communications::HumanDetectionRosSrv::Response &res)
 Serves the human detection ROS service callback. More...
 

Private Attributes

HumanDetector human_detector_
 
ros::ServiceServer humanDetectionService_
 
std::string humanDetectionTopic_
 
ros::NodeHandle nh_
 

Detailed Description

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

Definition at line 31 of file human_detection.h.

Constructor & Destructor Documentation

HumanDetection::HumanDetection ( void  )

Default constructor.

Default constructor. Performs initializations.

Definition at line 24 of file human_detection.cpp.

Member Function Documentation

bool HumanDetection::humanDetectionCallback ( rapp_platform_ros_communications::HumanDetectionRosSrv::Request &  req,
rapp_platform_ros_communications::HumanDetectionRosSrv::Response &  res 
)

Serves the human detection ROS service callback.

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

Definition at line 42 of file human_detection.cpp.

Member Data Documentation

HumanDetector HumanDetection::human_detector_
private

Definition at line 62 of file human_detection.h.

ros::ServiceServer HumanDetection::humanDetectionService_
private

Member variable holding the human detection ROS service topic

Definition at line 56 of file human_detection.h.

std::string HumanDetection::humanDetectionTopic_
private

Object of type HumanDetector

Definition at line 59 of file human_detection.h.

ros::NodeHandle HumanDetection::nh_
private

< The ROS node handle The human detection service server

Definition at line 53 of file human_detection.h.


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