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
face_detection.h
Go to the documentation of this file.
1 /******************************************************************************
2 Copyright 2015 RAPP
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 
16 ******************************************************************************/
17 
18 #ifndef RAPP_FACE_DETECTION_NODE
19 #define RAPP_FACE_DETECTION_NODE
20 
21 #include "ros/ros.h"
22 
23 #include <rapp_platform_ros_communications/FaceDetectionRosSrv.h>
24 
26 
32 {
33  public:
34 
38  FaceDetection(void);
39 
47  rapp_platform_ros_communications::FaceDetectionRosSrv::Request& req,
48  rapp_platform_ros_communications::FaceDetectionRosSrv::Response& res
49  );
50 
51  private:
53  ros::NodeHandle nh_;
54 
56  ros::ServiceServer faceDetectionService_;
57 
59  std::string faceDetectionTopic_;
60 
63 };
64 
65 #endif // RAPP_FACE_DETECTION_NODE
ros::ServiceServer faceDetectionService_
ros::NodeHandle nh_
Class that implements a face detection algorithm based on a Haar cascade classifier.
Definition: face_detector.h:33
bool faceDetectionCallback(rapp_platform_ros_communications::FaceDetectionRosSrv::Request &req, rapp_platform_ros_communications::FaceDetectionRosSrv::Response &res)
Serves the face detection ROS service callback.
std::string faceDetectionTopic_
Class FaceDetection uptakes the task of handling the ROS service callbacks.
FaceDetection(void)
Default constructor.
FaceDetector face_detector_