SensingCartesianIF.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 "rci/dto/CartesianPose.h"
00032 #include "rci/dto/CartesianVelocity.h"
00033 #include "rci/dto/CartesianAcceleration.h"
00034 
00035 namespace rci {
00036 
00042 class OrientationSensingIF {
00043 
00044 public:
00050     virtual OrientationPtr getOrientation() const = 0;
00051 
00055     virtual void updateOrientation(OrientationPtr orient) = 0;
00056 
00057 protected:
00058     ~OrientationSensingIF() {
00059     }
00060 };
00061 
00067 class TranslationSensingIF {
00068 
00069 public:
00070 
00076     virtual TranslationPtr getTranslation() const = 0;
00077 
00081     virtual void updateTranslation(TranslationPtr translat) = 0;
00082 
00083 protected:
00084     ~TranslationSensingIF() {
00085     }
00086 };
00087 
00093 class PoseSensingIF {
00094 
00095 public:
00101     virtual PosePtr getPose() const = 0;
00102 
00106     virtual void updatePose(PosePtr pose) = 0;
00107 
00111     virtual void updatePose(TranslationPtr transl, OrientationPtr orient) = 0;
00112 
00113 protected:
00114     ~PoseSensingIF() {
00115     }
00116 };
00117 
00127 class TranslationalVelocitySensingIF {
00128 
00129 public:
00130 
00136     virtual TranslationalVelocityPtr getTranslationalVelocity() const = 0;
00137 
00145     virtual void updateTranslationalVelocity(TranslationalVelocityPtr tvel) = 0;
00146 
00147 protected:
00148     ~TranslationalVelocitySensingIF() {
00149     }
00150 };
00151 
00159 class RotationalVelocitySensingIF {
00160 
00161 public:
00162 
00168     virtual RotationalVelocityPtr getRotationalVelocity() const = 0;
00169 
00177     virtual void updateRotationalVelocity(RotationalVelocityPtr rvel) = 0;
00178 
00179 protected:
00180     ~RotationalVelocitySensingIF() {
00181     }
00182 };
00183 
00191 class CartesianVelocitySensingIF {
00192 
00193 public:
00194 
00203     virtual void updateVelocity(TranslationalVelocityPtr transvel,
00204             RotationalVelocityPtr rotvel) = 0;
00205 
00206     virtual VelocityPtr getVelocity() = 0;
00207 
00208 protected:
00209     ~CartesianVelocitySensingIF() {
00210     }
00211 
00212 };
00213 
00223 class TranslationalAccelerationSensingIF {
00224 
00225 public:
00226 
00232     virtual TranslationalAccelerationPtr getTranslationalAcceleration() const = 0;
00233 
00241     virtual void updateTranslationalAcceleration(
00242             TranslationalAccelerationPtr tacc) = 0;
00243 
00244 protected:
00245     ~TranslationalAccelerationSensingIF() {
00246     }
00247 };
00248 
00256 class RotationalAccelerationSensingIF {
00257 
00258 public:
00259 
00265     virtual RotationalAccelerationPtr getRotationalAcceleration() const = 0;
00266 
00274     virtual void updateRotationalAcceleration(
00275             RotationalAccelerationPtr racc) = 0;
00276 
00277 protected:
00278     ~RotationalAccelerationSensingIF() {
00279     }
00280 };
00281 
00289 class CartesianAccelerationSensingIF {
00290 
00291 public:
00292 
00301     virtual void updateAcceleration(TranslationalAccelerationPtr transacc,
00302             RotationalAccelerationPtr rotacc) = 0;
00303 
00304     virtual AccelerationPtr getAcceleration() = 0;
00305 
00306 protected:
00307     ~CartesianAccelerationSensingIF() {
00308     }
00309 
00310 };
00311 
00312 }
Generated on Thu Aug 2 14:02:49 2012 for RCI by  doxygen 1.6.3