articulatedbodyinertia.hpp
Go to the documentation of this file.
00001 // Copyright  (C)  2009  Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
00002 
00003 // Version: 1.0
00004 // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
00005 // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
00006 // URL: http://www.orocos.org/kdl
00007 
00008 // This library is free software; you can redistribute it and/or
00009 // modify it under the terms of the GNU Lesser General Public
00010 // License as published by the Free Software Foundation; either
00011 // version 2.1 of the License, or (at your option) any later version.
00012 
00013 // This library is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016 // Lesser General Public License for more details.
00017 
00018 // You should have received a copy of the GNU Lesser General Public
00019 // License along with this library; if not, write to the Free Software
00020 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021 
00022 #ifndef KDL_ARTICULATEDBODYINERTIA_HPP
00023 #define KDL_ARTICULATEDBODYINERTIA_HPP
00024 
00025 #include "frames.hpp"
00026 
00027 #include "rotationalinertia.hpp"
00028 #include "rigidbodyinertia.hpp"
00029 
00030 #include <Eigen/Core>
00031 
00032 namespace KDL {
00033     
00040     class ArticulatedBodyInertia{
00041     public:
00042 
00046         ArticulatedBodyInertia(){
00047             *this=ArticulatedBodyInertia::Zero();
00048         }
00049 
00054         ArticulatedBodyInertia(const RigidBodyInertia& rbi);
00055 
00060         explicit ArticulatedBodyInertia(double m, const Vector& oc=Vector::Zero(), const RotationalInertia& Ic=RotationalInertia::Zero());
00061         
00065         static inline ArticulatedBodyInertia Zero(){
00066             return ArticulatedBodyInertia(Eigen::Matrix3d::Zero(),Eigen::Matrix3d::Zero(),Eigen::Matrix3d::Zero());
00067         };
00068         
00069         
00070         ~ArticulatedBodyInertia(){};
00071         
00075         friend ArticulatedBodyInertia operator*(double a,const ArticulatedBodyInertia& I);
00081         friend ArticulatedBodyInertia operator+(const ArticulatedBodyInertia& Ia,const ArticulatedBodyInertia& Ib);
00082         friend ArticulatedBodyInertia operator+(const ArticulatedBodyInertia& Ia,const RigidBodyInertia& Ib);
00083         friend ArticulatedBodyInertia operator-(const ArticulatedBodyInertia& Ia,const ArticulatedBodyInertia& Ib);
00084         friend ArticulatedBodyInertia operator-(const ArticulatedBodyInertia& Ia,const RigidBodyInertia& Ib);
00085 
00090         friend Wrench operator*(const ArticulatedBodyInertia& I,const Twist& t);
00091 
00095         friend ArticulatedBodyInertia operator*(const Frame& T,const ArticulatedBodyInertia& I);
00100         friend ArticulatedBodyInertia operator*(const Rotation& R,const ArticulatedBodyInertia& I);
00101 
00106         ArticulatedBodyInertia RefPoint(const Vector& p);
00107 
00108         ArticulatedBodyInertia(const Eigen::Matrix3d& M,const Eigen::Matrix3d& H,const Eigen::Matrix3d& I);
00109 
00110         Eigen::Matrix3d M;
00111         Eigen::Matrix3d H;
00112         Eigen::Matrix3d I;
00113     };
00114 }//namespace
00115 
00116 
00117 #endif


orocos_kdl
Author(s): Ruben Smits, Erwin Aertbelien, Orocos Developers
autogenerated on Sat Dec 28 2013 17:17:25