goto_crossing_node.cpp
Go to the documentation of this file.
00001 #include <ros/ros.h>
00002 #include <ros/console.h> // to change the log level to debug
00003 
00004 #include <lama_msgs/Crossing.h>
00005 
00006 #include <goto_crossing/crossing_goer.h>
00007 
00008 int main(int argc, char** argv)
00009 {
00010   ros::init(argc, argv, "goto_crossing");
00011   ros::NodeHandle nh("~");
00012   
00013   // Change log level.
00014   if(ros::console::set_logger_level(ROSCONSOLE_DEFAULT_NAME, ros::console::levels::Debug))
00015   {
00016     ros::console::notifyLoggerLevelsChanged();
00017   }
00018 
00019   goto_crossing::CrossingGoer crossing_goer;
00020   ros::Subscriber sub = nh.subscribe("crossing", 1, &goto_crossing::CrossingGoer::callback_goto_crossing, &crossing_goer);
00021 
00022   ros::spin();
00023 }


goto_crossing
Author(s): Gaƫl Ecorchard
autogenerated on Thu Jun 6 2019 22:02:00