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
qr_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 <
qr_detection/qr_detection.h
>
19
25
int
main
(
int
argc,
char
** argv)
26
{
27
ros::init(argc, argv,
"qr_detection_node"
);
28
QrDetection
qrnode;
29
30
ros::NodeHandle nh;
31
int
threads = 1;
32
if
(!nh.getParam(
"/rapp_qr_detection_threads"
, threads))
33
{
34
ROS_ERROR(
"Qr detection threads param not found"
);
35
}
36
else
if
(threads < 0)
37
{
38
threads = 1;
39
}
40
ros::MultiThreadedSpinner spinner(threads);
41
spinner.spin();
42
return
0;
43
}
QrDetection
Uptakes the task of setting up the ROS service callbacks towards qr detection.
Definition:
qr_detection.h:31
qr_detection.h
main
int main(int argc, char **argv)
The main function. Retrieves the threads parameter in order to enable concurrent service invocation...
Definition:
qr_detection_node.cpp:25
rapp-platform
rapp_qr_detection
src
qr_detection_node.cpp
Generated on Fri Jul 29 2016 18:43:43 for RAPP Platform by
1.8.6