$search
00001 /* 00002 * Gazebo - Outdoor Multi-Robot Simulator 00003 * Copyright (C) 2003 00004 * Nate Koenig & Andrew Howard 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 /* 00022 * Desc: Empty gazebo plugin 00023 * Author: John Hsu 00024 * Date: 24 July 2009 00025 * SVN info: $Id$ 00026 */ 00027 00028 00029 #include <algorithm> 00030 #include <assert.h> 00031 00032 #include <gazebo_plugins/gazebo_ros_template.h> 00033 00034 #include <gazebo/Global.hh> 00035 #include <gazebo/XMLConfig.hh> 00036 #include <gazebo/gazebo.h> 00037 #include <gazebo/GazeboError.hh> 00038 #include <gazebo/ControllerFactory.hh> 00039 00040 using namespace gazebo; 00041 00042 GZ_REGISTER_DYNAMIC_CONTROLLER("gazebo_ros_template", GazeboRosTemplate); 00043 00045 // Constructor 00046 GazeboRosTemplate::GazeboRosTemplate(Entity *parent) 00047 : Controller(parent) 00048 { 00049 00050 } 00051 00053 // Destructor 00054 GazeboRosTemplate::~GazeboRosTemplate() 00055 { 00056 } 00057 00059 // Load the controller 00060 void GazeboRosTemplate::LoadChild(XMLConfigNode *node) 00061 { 00062 00063 } 00064 00066 // Initialize the controller 00067 void GazeboRosTemplate::InitChild() 00068 { 00069 } 00070 00072 // Update the controller 00073 void GazeboRosTemplate::UpdateChild() 00074 { 00075 /***************************************************************/ 00076 /* */ 00077 /* this is called at every update simulation step */ 00078 /* */ 00079 /***************************************************************/ 00080 } 00081 00083 // Finalize the controller 00084 void GazeboRosTemplate::FiniChild() 00085 { 00086 } 00087 00088 00089