00001 #include <ros/ros.h> 00002 #include <ros/console.h> 00003 00004 #include <nj_escape_crossing/crossing_escaper.h> 00005 00006 int main(int argc, char** argv) 00007 { 00008 ros::init(argc, argv, "nj_escape_crossing"); 00009 00010 // Change log level. 00011 if(ros::console::set_logger_level(ROSCONSOLE_DEFAULT_NAME, ros::console::levels::Info)) 00012 { 00013 ros::console::notifyLoggerLevelsChanged(); 00014 } 00015 00016 nj_escape_crossing::CrossingEscaper jockey(ros::this_node::getName() + "_jockey"); 00017 ROS_INFO_STREAM(ros::this_node::getName() << " started (with server " << jockey.getName() << ")"); 00018 00019 ros::spin(); 00020 }