00001 /* 00002 * AscTec Proc 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_proc/asctec_proc_nodelet.h" 00026 00027 typedef asctec::AsctecProcNodelet AsctecProcNodelet; 00028 00029 PLUGINLIB_DECLARE_CLASS (asctec_proc, AsctecProcNodelet, AsctecProcNodelet, nodelet::Nodelet); 00030 00031 void asctec::AsctecProcNodelet::onInit () 00032 { 00033 NODELET_INFO("Initializing AsctecProc Nodelet"); 00034 00035 // TODO: Do we want the single threaded or multithreaded NH? 00036 ros::NodeHandle nh = getMTNodeHandle(); 00037 ros::NodeHandle nh_private = getMTPrivateNodeHandle(); 00038 00039 proc_ = new asctec::AsctecProc(nh, nh_private); 00040 }