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
path_planning_node.cpp
Go to the documentation of this file.
1
#include <
path_planning/path_planning.h
>
2
3
PathPlanning
*
path_planning_
;
4
5
void
mySigintHandler
(
int
sig){
6
delete
path_planning_
;
7
ros::shutdown();
8
}
9
10
int
main
(
int
argc,
char
** argv)
11
{
12
13
ros::init(argc, argv,
"path_planning_node"
);
14
path_planning_ =
new
PathPlanning
;
15
16
ros::NodeHandle nh;
17
int
threads = 1;
18
if
(!nh.getParam(
"/rapp_path_planning_threads"
, threads))
19
{
20
ROS_WARN(
"Path planning threads param does not exist. Setting 5 threads."
);
21
threads = 5;
22
}
23
else
if
(threads < 0)
24
{
25
threads = 1;
26
}
27
ros::MultiThreadedSpinner spinner(threads);
28
signal(SIGINT,
mySigintHandler
);
29
spinner.spin();
30
return
0;
31
}
PathPlanning
Definition:
path_planning.h:23
path_planning_
PathPlanning * path_planning_
Definition:
path_planning_node.cpp:3
mySigintHandler
void mySigintHandler(int sig)
Definition:
path_planning_node.cpp:5
main
int main(int argc, char **argv)
Definition:
path_planning_node.cpp:10
path_planning.h
rapp-platform
rapp_path_planning
rapp_path_planning
src
path_planning_node.cpp
Generated on Fri Jul 29 2016 18:43:43 for RAPP Platform by
1.8.6