demo_action_layer.cpp
Go to the documentation of this file.
00001 #include <ros/ros.h>
00002 
00003 #include <topological_tools/topological_move_base_action_layer.h>
00004 
00005 
00006 using namespace ros;
00007 using namespace std;
00008 using namespace topological_tools;
00009 
00010 
00011 int main ( int argc, char** argv )
00012 {
00013     init ( argc, argv, "action_layer" );
00014 
00015     if ( argc < 2 )
00016     {
00017         ROS_ERROR ( "Usage: rosrun mdm_example demo_action_layer <path to topological map>" );
00018         abort();
00019     }
00020 
00021     string topological_map_path = argv[1];
00022 
00023     TopologicalMoveBaseActionLayer al ( topological_map_path );
00024     al.addAction ( "Up" );
00025     al.addAction ( "Down" );
00026     al.addAction ( "Left" );
00027     al.addAction ( "Right" );
00028 
00029     al.spin();
00030 
00031     return 0;
00032 }


mdm_example
Author(s): Joao Messias
autogenerated on Wed Aug 26 2015 12:28:53