main_autopilot.cpp
Go to the documentation of this file.
00001 
00024 #include "ControlNode.h"
00025 #include "ros/ros.h"
00026 #include "ros/package.h"
00027 #include "boost/thread.hpp"
00028 #include <signal.h>
00029 
00030 // this global var is used in getMS(ros::Time t) to convert to a consistent integer timestamp used internally pretty much everywhere.
00031 // kind of an artifact from Windows-Version, where only that was available / used.
00032 unsigned int ros_header_timestamp_base = 0;
00033 
00034 
00035 
00036 int main(int argc, char **argv)
00037 {
00038   ros::init(argc, argv, "drone_autopilot");
00039 
00040   ROS_INFO("Started TUM ArDrone Autopilot Node.");
00041 
00042   ControlNode controlNode;
00043 
00044   dynamic_reconfigure::Server<tum_ardrone::AutopilotParamsConfig> srv;
00045   dynamic_reconfigure::Server<tum_ardrone::AutopilotParamsConfig>::CallbackType f;
00046   f = boost::bind(&ControlNode::dynConfCb, &controlNode, _1, _2);
00047   srv.setCallback(f);
00048 
00049   controlNode.Loop();
00050 
00051   return 0;
00052 }


tum_ardrone
Author(s):
autogenerated on Sat Jun 8 2019 20:27:23