SensingIF.h

Go to the documentation of this file.
00001 /* ============================================================
00002  *
00003  * This file is a part of RCI project
00004  *
00005  * Copyright (C) 2011 by Arne Nordmann <anordman at cor-lab dot uni-bielefeld dot de>
00006  *
00007  * This file may be licensed under the terms of the
00008  * GNU Lesser General Public License Version 3 (the ``LGPL''),
00009  * or (at your option) any later version.
00010  *
00011  * Software distributed under the License is distributed
00012  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
00013  * express or implied. See the LGPL for the specific language
00014  * governing rights and limitations.
00015  *
00016  * You should have received a copy of the LGPL along with this
00017  * program. If not, go to http://www.gnu.org/licenses/lgpl.html
00018  * or write to the Free Software Foundation, Inc.,
00019  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  * The development of this software was supported by:
00022  *   CoR-Lab, Research Institute for Cognition and Robotics
00023  *     Bielefeld University
00024  *
00025  * ============================================================ */
00026 
00027 #pragma once
00028 
00029 #include <cca/dto/DataTransferObject.h>
00030 
00031 #include "SensingCartesian.h"
00032 
00033 #include "rci/dto/JointAngles.h"
00034 #include "rci/dto/JointVelocities.h"
00035 #include "rci/dto/CartesianForces.h"
00036 #include "rci/dto/Pressure.h"
00037 #include "rci/dto/Length.h"
00038 #include "rci/dto/JointTorques.h"
00039 #include "rci/dto/Power.h"
00040 
00041 namespace rci {
00042 
00046 class SensingIF {
00047 
00048 public:
00049 
00055     virtual void update() =0;
00056 
00063     virtual cca::DataTransferObjectPtr get() const =0;
00064 
00065 protected:
00066     ~SensingIF() {
00067     }
00068 };
00069 
00074 class PositionSensingIF {
00075 
00076 public:
00080     virtual JointAnglesPtr getJointPosition() const = 0;
00081 
00085     virtual void updateJointPosition(JointAnglesPtr angle) =0;
00086 
00087 protected:
00088     ~PositionSensingIF() {
00089     }
00090 };
00091 
00096 class VelocitySensingIF {
00097 
00098 public:
00102     virtual JointVelocitiesPtr getVelocity() const = 0;
00103 
00107     virtual void updateJointVelocity(JointVelocitiesPtr vel)=0;
00108 
00109 protected:
00110     ~VelocitySensingIF() {
00111     }
00112 };
00113 
00118 class PressureSensingIF {
00119 
00120 public:
00124     virtual PressurePtr getPressure() const =0;
00125 
00126 protected:
00127     ~PressureSensingIF() {
00128     }
00129 };
00130 
00135 class LengthSensingIF {
00136 
00137 public:
00141     virtual LengthPtr getLength() const =0;
00142 
00143 protected:
00144     ~LengthSensingIF() {
00145     }
00146 };
00147 
00152 class ForceSensingIF {
00153 
00154 public:
00160     virtual ForcesPtr getForces() const =0;
00161 
00165     virtual void updateForces(ForcesPtr force)=0;
00166 
00167 protected:
00168     ~ForceSensingIF() {
00169     }
00170 };
00171 
00176 class TorqueSensingIF {
00177 
00178 public:
00184     virtual JointTorquesPtr getTorque() const =0;
00185 
00189     virtual void updateTorque(JointTorquesPtr torque) =0;
00190 
00191 protected:
00192     ~TorqueSensingIF() {
00193     }
00194 };
00195 
00200 class PowerSensingIF {
00201 
00202 public:
00208     virtual PowerPtr getPower() const = 0;
00209 
00210 protected:
00211     ~PowerSensingIF() {
00212     }
00213 };
00214 
00215 }
Generated on Thu Aug 2 14:02:47 2012 for RCI by  doxygen 1.6.3