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
human_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_HUMAN_DETECTION_NODE
19 #define RAPP_HUMAN_DETECTION_NODE
20 
21 #include "ros/ros.h"
22 
23 #include <rapp_platform_ros_communications/HumanDetectionRosSrv.h>
24 
26 
32 {
33  public:
34 
38  HumanDetection(void);
39 
47  rapp_platform_ros_communications::HumanDetectionRosSrv::Request& req,
48  rapp_platform_ros_communications::HumanDetectionRosSrv::Response& res
49  );
50 
51  private:
53  ros::NodeHandle nh_;
54 
56  ros::ServiceServer humanDetectionService_;
57 
59  std::string humanDetectionTopic_;
60 
63 };
64 
65 #endif // RAPP_HUMAN_DETECTION_NODE
Class that implements a human detection algorithm based on a Haar cascade classifier.
HumanDetector human_detector_
HumanDetection(void)
Default constructor.
bool humanDetectionCallback(rapp_platform_ros_communications::HumanDetectionRosSrv::Request &req, rapp_platform_ros_communications::HumanDetectionRosSrv::Response &res)
Serves the human detection ROS service callback.
std::string humanDetectionTopic_
ros::NodeHandle nh_
Class HumanDetection uptakes the task of handling the ROS service callbacks.
ros::ServiceServer humanDetectionService_