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
path_planning_node.cpp
Go to the documentation of this file.
2 
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 * path_planning_
void mySigintHandler(int sig)
int main(int argc, char **argv)