Biomechanical Joint Model
 Author: Anderson Maciel

comejointmotion.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2001 by Anderson Maciel                                 *
00003  *   andi.maciel@gmail.com                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  **************************************************************************/
00020 
00022 //
00023 //  PROJECT.....: 
00024 //  RESPONSIBLE.: 
00025 //
00026 //  FILE........: vpjointmotion.cpp
00027 //  DESCRIPTION.: Contain the COME_JointMotion class definitions.
00028 //
00029 //  AUTHOR......: Anderson Maciel
00030 //  DATE........: June/06/2001
00031 //  DESCRIPTION.: Methods definition.
00032 //
00034 #include        <algebra/comevector3d.h>
00035 #include        <stdio.h>
00036 #include        <kinematics/comejointmotion.h>
00037 
00038 #include        <string>
00039 //using namespace std;
00040 
00041 
00042 COME_JointMotion::COME_JointMotion(){
00043 
00044   jointName = "";
00045   motionType = FLEX;
00046   t0 = 0.0;
00047   tf = 0.0;
00048   parameter = 0.0;
00049   deltaS = 0.0;
00050 }
00051 
00052 COME_JointMotion::COME_JointMotion( string jn, int mt, float tini, float tfin, float param ){
00053 
00054   jointName = jn;
00055   motionType = mt;
00056   t0 = tini;
00057   tf = tfin;
00058   parameter = param;
00059   deltaS = 0.0;
00060 }
00061 
00062 COME_JointMotion::~COME_JointMotion(){
00063 }
00064 
00065 string
00066 COME_JointMotion::getJointName(){
00067   return jointName;
00068 }
00069 
00070 int
00071 COME_JointMotion::getMotionType(){
00072   return motionType;
00073 }
00074 
00075 float
00076 COME_JointMotion::getTimeIni(){
00077   return t0;
00078 }
00079 
00080 float
00081 COME_JointMotion::getTimeFin(){
00082   return tf;
00083 }
00084 
00085 float
00086 COME_JointMotion::getParameter(){
00087   return parameter;
00088 }
00089 
00090 float
00091 COME_JointMotion::getDeltaS(){
00092   return deltaS;
00093 }
00094 
00095 void
00096 COME_JointMotion::setJointName( string s ){
00097   jointName = s;
00098 }
00099 
00100 void
00101 COME_JointMotion::setMotionType( int mt ){
00102   motionType = mt;
00103 }
00104 
00105 void
00106 COME_JointMotion::setTimeIni( float ti ){
00107   t0 = ti;
00108 }
00109 
00110 void
00111 COME_JointMotion::setTimeFin( float tfin ){
00112   tf = tfin;
00113 }
00114 
00115 void
00116 COME_JointMotion::setParameter( float param ){
00117   parameter = param;
00118 }
00119 
00120 void
00121 COME_JointMotion::setDeltaS( float ds ){
00122   deltaS = ds;
00123 }

Generated on Thu Dec 1 10:13:33 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5