lj_costmap_node.cpp
Go to the documentation of this file.
00001 
00007 #include <ros/ros.h>
00008 
00009 #include <lj_costmap/jockey.h>
00010 
00011 int main(int argc, char **argv)
00012 {
00013   ros::init(argc, argv, "localizing_jockey");
00014   ros::NodeHandle nh("~");
00015   
00016   std::string localizing_jockey_server;
00017   std::string default_server_name = ros::this_node::getName();
00018   default_server_name += "_server";
00019         nh.param<std::string>("localizing_jockey_server_name", localizing_jockey_server, default_server_name);
00020 
00021   /* Minimal frontier width */
00022   if (!nh.hasParam("frontier_width"))
00023   {
00024     ROS_ERROR("Parameter %s/frontier_width not set, exiting", nh.getNamespace().c_str());
00025     return 1;
00026   }
00027   double frontier_width;
00028   nh.param<double>("frontier_width", frontier_width, 0.0);
00029 
00030   lj_costmap::Jockey jockey(localizing_jockey_server, frontier_width);
00031 
00032   ROS_INFO_STREAM(ros::this_node::getName() << " started (with action server " << jockey.getName() << ")");
00033   ros::spin();
00034   return 0;
00035 }
00036 


lj_costmap
Author(s): Gaƫl Ecorchard
autogenerated on Sat Jun 8 2019 20:58:41