00001
00002
00003 #include <hardware/performer_mk2/PerformernAxesVelocityController.hpp>
00004 #include <hardware/kuka/EmergencyStop.hpp>
00005
00006
00007
00008 #include <taskbrowser/TaskBrowser.hpp>
00009
00010
00011 #include <reporting/FileReporting.hpp>
00012
00013 #include <rtt/os/main.h>
00014 #include <rtt/PeriodicActivity.hpp>
00015
00016 using namespace Orocos;
00017 using namespace RTT;
00018 using namespace std;
00019
00021
00022 int ORO_main(int argc, char* argv[])
00023 {
00024
00025 PerformerMK2nAxesVelocityController my_robot("Performer");
00026 log(Info)<<"Robot Created"<<endlog();
00027
00028 EmergencyStop _emergency(&my_robot);
00029
00031 _emergency.addEvent(&my_robot,"driveOutOfRange");
00032
00034 TaskBrowser browser(&my_robot );
00035
00037 PeriodicActivity robotTask(0,0.002, my_robot.engine() );
00038
00040 robotTask.start();
00041
00042 browser.loop();
00043
00044 return 0;
00045 }