Biomechanical Joint Model
 Author: Anderson Maciel

comemovement.h

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........: vpmovment.h
00027 //  DESCRIPTION.: Contain the COME_Movement class declarations.
00028 //
00029 //  AUTHOR......: Anderson Maciel
00030 //  DATE........: June/06/2001
00031 //  DESCRIPTION.: Class and new methods declaration.
00032 //
00034 
00035 #ifndef __COME_MOVEMENT_H
00036 #define __COME_MOVEMENT_H
00037 
00038 #include        <kinematics/comejoint.h>
00039 #include        <kinematics/comedof.h>
00040 #include        <kinematics/comejointmotion.h>
00041 
00042 
00043 #define INIT_TIME -0.1
00044 
00045 
00046 //-----------------------------------------------------------------------
00047 // V P M O V E M E N T
00048 //-----------------------------------------------------------------------
00049 
00051 // Class Name: COME_Movement
00052 // Superclass: none
00053 // Subclass: none
00054 
00055 class COME_Movement {
00056 
00057   private:
00058     string  bodyName;
00059     bool    cycle;
00060     double   deltaT;
00061     double   time;
00062     double   tFinal;
00063     double   time_err;
00064     int     qtdMotion;
00065 
00066     COME_JointMotion *motionTimeline;
00067 
00068   public:
00069     COME_Movement();
00070           COME_Movement( string, bool, double, double );
00071           ~COME_Movement();
00072         
00073           double         getDeltaT();
00074           double         getTime();
00075           double         getTimeFinal();
00076           double         getTime_Err();
00077           bool          getCycle();
00078           int           getQtdMotion();
00079           COME_JointMotion *getTimeline();
00080         
00081           void  setTimeLine( COME_JointMotion * newTL );
00082           void  setDeltaT( double );
00083           void  setTime( double );
00084           void  setTimeFinal( double );
00085           void  setTime_Err( double );
00086           void  setCycle( bool );
00087           void  setQtdMotion( int );
00088         
00089           void  vpLoadMotionFile( const char *fileName );
00090 };
00091 
00092 #endif

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