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_node.cpp
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 
19 
24 int main(int argc, char ** argv)
25 {
26  ros::init(argc, argv, "face_detection_node");
27  FaceDetection fdnode;
28 
29  ros::NodeHandle nh;
30  int threads = 1;
31  if(!nh.getParam("/rapp_face_detection_threads", threads))
32  {
33  ROS_ERROR("Face detection threads param not found");
34  }
35  else if(threads < 0)
36  {
37  threads = 1;
38  }
39  ros::MultiThreadedSpinner spinner(threads);
40  spinner.spin();
41  return 0;
42 }
Class FaceDetection uptakes the task of handling the ROS service callbacks.
int main(int argc, char **argv)
The executable's main function. Creates a ROS multispinner to enable concurrent requests and declares...