00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- 00002 00003 this file is part of rcssserver3D 00004 Thu Nov 9 2005 00005 Copyright (C) 2005 RoboCup Soccer Server 3D Maintenance Group 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; version 2 of the License. 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., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 #ifndef HINGEACTION_H 00021 #define HINGEACTION_H 00022 00023 #include <oxygen/gamecontrolserver/actionobject.h> 00024 00025 class HingeAction : public oxygen::ActionObject 00026 { 00027 public: 00028 HingeAction(const std::string& predicate, float velocity) 00029 : ActionObject(predicate), mVelocity(velocity) {}; 00030 00031 virtual ~HingeAction() {} 00032 float GetMotorVelocity() { return mVelocity; } 00033 00034 protected: 00035 float mVelocity; 00036 }; 00037 00038 #endif // HINGEACTION_H