Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include <telekyb_base/TeleKyb.hpp>
00012
00013 #include <tk_mkinterface/MKInterface.hpp>
00014
00015 #include <ros/ros.h>
00016
00017 using namespace telekyb;
00018
00019
00020 int main(int argc, char **argv) {
00021
00022
00023 telekyb::RawOptionsContainer::addOption("tRosNrSpinnerThreads","2");
00024 TeleKyb::init(argc,argv,"MKInterface", ros::init_options::AnonymousName);
00025
00026 MKInterface* mkIF = new MKInterface();
00027
00028 if (mkIF->hasConnection()) {
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 ros::waitForShutdown();
00048 } else {
00049 ROS_ERROR("Could not find UAV with matching tUavID and tUavFirmware");
00050 }
00051
00052 delete mkIF;
00053
00054 TeleKyb::shutdown();
00055 return 0;
00056 }
00057