00001 /* 00002 * AscTec Autopilot Interface 00003 * Copyright (C) 2010, CCNY Robotics Lab 00004 * William Morris <morris@ee.ccny.cuny.edu> 00005 * Ivan Dryanovski <ivan.dryanovski@gmail.com> 00006 * Steven Bellens <steven.bellens@mech.kuleuven.be> 00007 * Patrick Bouffard <bouffard@eecs.berkeley.edu> 00008 * 00009 * http://robotics.ccny.cuny.edu 00010 * 00011 * This program is free software: you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation, either version 3 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00023 */ 00024 00025 #include "asctec_autopilot/autopilot_nodelet.h" 00026 #include <pluginlib/class_list_macros.h> 00027 00028 typedef asctec::AutoPilotNodelet AutoPilotNodelet; 00029 00030 PLUGINLIB_DECLARE_CLASS (asctec_autopilot, AutoPilotNodelet, AutoPilotNodelet, nodelet::Nodelet); 00031 00032 void asctec::AutoPilotNodelet::onInit () 00033 { 00034 NODELET_INFO("Initializing Autopilot Nodelet"); 00035 00036 // TODO: Do we want the single threaded or multithreaded NH? 00037 ros::NodeHandle nh = getMTNodeHandle(); 00038 ros::NodeHandle nh_private = getMTPrivateNodeHandle(); 00039 00040 autopilot = new asctec::AutoPilot(nh, nh_private); 00041 }