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
Main Page
Namespaces
Classes
Files
File List
File Members
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
18
#include <
face_detection/face_detection.h
>
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
}
face_detection.h
FaceDetection
Class FaceDetection uptakes the task of handling the ROS service callbacks.
Definition:
face_detection.h:31
main
int main(int argc, char **argv)
The executable's main function. Creates a ROS multispinner to enable concurrent requests and declares...
Definition:
face_detection_node.cpp:24
rapp-platform
rapp_face_detection
src
face_detection_node.cpp
Generated on Fri Jul 29 2016 18:43:43 for RAPP Platform by
1.8.6