|
mbsimflexiblebody
3.2.0
|
00001 /* Copyright (C) 2004-2011 MBSim Development Team 00002 * 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 * Contact: thorsten.schindler@mytum.de 00018 */ 00019 00020 #ifndef ANGLES_H_ 00021 #define ANGLES_H_ 00022 00023 #include "mbsim/kinematics.h" 00024 #include "fmatvec/fmatvec.h" 00025 00026 namespace MBSimFlexibleBody { 00027 00036 class Angles : public MBSim::Rotation { 00037 public: 00041 Angles(); 00045 virtual ~Angles(); 00046 00047 /* INTERFACE OF ROTATION */ 00048 virtual fmatvec::SqrMat3 operator()(const fmatvec::Vec &q, const double &t, const void * =NULL); 00049 /***************************************************/ 00050 00051 /* INTERFACE */ 00055 virtual fmatvec::Vec computet(const fmatvec::Vec& q) const = 0; 00056 00061 virtual fmatvec::Vec computen(const fmatvec::Vec& q) const = 0; 00062 00067 virtual fmatvec::Vec computeb(const fmatvec::Vec& q) const = 0; 00068 00073 virtual fmatvec::Vec computentil(const fmatvec::Vec& q) const = 0; 00074 00079 virtual fmatvec::Vec computebtil(const fmatvec::Vec& q) const = 0; 00080 00085 virtual fmatvec::SqrMat computetq(const fmatvec::Vec& q) const = 0; 00086 00091 virtual fmatvec::SqrMat computenq(const fmatvec::Vec& q) const = 0; 00092 00097 virtual fmatvec::SqrMat computebq(const fmatvec::Vec& q) const = 0; 00098 00103 virtual fmatvec::SqrMat computentilq(const fmatvec::Vec& q) const = 0; 00104 00109 virtual fmatvec::SqrMat computebtilq(const fmatvec::Vec& q) const = 0; 00110 00115 virtual fmatvec::Mat computetq2(const fmatvec::Vec& q) const = 0; 00116 00121 virtual fmatvec::Mat computenq2(const fmatvec::Vec& q) const = 0; 00122 00127 virtual fmatvec::Mat computebq2(const fmatvec::Vec& q) const = 0; 00128 00133 virtual fmatvec::Mat computentilq2(const fmatvec::Vec& q) const = 0; 00134 00139 virtual fmatvec::Mat computebtilq2(const fmatvec::Vec& q) const = 0; 00140 /********************************************************/ 00141 00142 /* NODAL FUNCTIONS */ 00148 fmatvec::Vec computett(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00149 00155 fmatvec::Vec computent(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00156 00162 fmatvec::Vec computebt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00163 00169 fmatvec::Vec computentilt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00170 00176 fmatvec::Vec computebtilt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00177 00183 fmatvec::SqrMat computetqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00184 00190 fmatvec::SqrMat computenqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00191 00197 fmatvec::SqrMat computebqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00198 00204 fmatvec::SqrMat computentilqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00205 00211 fmatvec::SqrMat computebtilqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00212 00218 fmatvec::Vec computeOmega(const fmatvec::Vec& q,const fmatvec::Vec& qt) const; 00219 00224 fmatvec::SqrMat computeT(const fmatvec::Vec& q) const; 00225 /********************************************************/ 00226 }; 00227 00228 } 00229 00230 #endif /*ANGLES_H_*/ 00231
1.8.0