Go to the documentation of this file.00001 #include <ros/ros.h>
00002 #include <mdm_library/controller_event_mdp.h>
00003
00004 using namespace std;
00005 using namespace ros;
00006 using namespace mdm_library;
00007
00008 int main ( int argc, char** argv )
00009 {
00010 init ( argc, argv, "control_layer" );
00011
00012 if ( argc < 2 )
00013 {
00014 ROS_ERROR ( "Usage: rosrun mdm_example demo_control_layer <path to policy file>" );
00015 abort();
00016 }
00017
00018 string policy_path = argv[1];
00019
00020 ControllerEventMDP cl ( policy_path );
00021
00022 spin();
00023
00024 return 0;
00025 }