Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

robot/Manipulator

Go to the documentation of this file.
00001 /****************************************************************************
00002   Copyright (C)2002 David Jung <opensim@pobox.com>
00003 
00004   This program/file is free software; you can redistribute it and/or modify
00005   it under the terms of the GNU General Public License as published by
00006   the Free Software Foundation; either version 2 of the License, or
00007   (at your option) any later version.
00008         
00009   This program is distributed in the hope that it will be useful,
00010   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012   GNU General Public License for more details. (http://www.gnu.org)
00013         
00014   You should have received a copy of the GNU General Public License
00015   along with this program; if not, write to the Free Software
00016   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017 
00018   $Id: Manipulator,v 1.5 2002/09/14 20:59:49 jungd Exp $
00019   $Revision: 1.5 $
00020   $Date: 2002/09/14 20:59:49 $
00021   $Author: jungd $
00022  
00023 ****************************************************************************/
00024 
00025 #ifndef _ROBOT_MANIPULATOR_
00026 #define _ROBOT_MANIPULATOR_
00027 
00028 #include <robot/robot>
00029 
00030 #include <base/Serializable>
00031 #include <robot/RobotPart>
00032 
00033 
00034 namespace robot {
00035 
00036 /**
00037  * An abstract description of a manipulator
00038  */
00039 class Manipulator : public RobotPart, public base::Serializable
00040 {
00041 public:
00042 
00043   enum Type { Serial, Parallel };
00044 
00045   virtual Type type() const = 0;
00046 
00047   /// the transformation from the base origin to the origin of the first joint(s)
00048   virtual Matrix4 getBaseTransform() const = 0;
00049 
00050 protected:
00051   Manipulator() {}
00052   Manipulator(String name) : RobotPart(name) {}
00053   
00054 };
00055 
00056 
00057 } // robot
00058 
00059 #endif

Generated on Thu Nov 21 23:58:04 2002 for OpenSim by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002