Go to the documentation of this file.00001
00025 #include "ControlNode.h"
00026 #include "ros/ros.h"
00027 #include "ros/package.h"
00028 #include "boost/thread.hpp"
00029 #include <signal.h>
00030
00031
00032
00033 unsigned int ros_header_timestamp_base = 0;
00034
00035
00036
00037 int main(int argc, char **argv)
00038 {
00039 ros::init(argc, argv, "drone_autopilot");
00040
00041 ROS_INFO("Started TUM ArDrone Autopilot Node.");
00042
00043 ControlNode controlNode;
00044
00045 dynamic_reconfigure::Server<uga_tum_ardrone::AutopilotParamsConfig> srv;
00046 dynamic_reconfigure::Server<uga_tum_ardrone::AutopilotParamsConfig>::CallbackType f;
00047 f = boost::bind(&ControlNode::dynConfCb, &controlNode, _1, _2);
00048 srv.setCallback(f);
00049
00050 controlNode.Loop();
00051
00052 return 0;
00053 }