path_roundedcomposite.hpp

Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: Erwin Aertbelien  Mon Jan 10 16:38:38 CET 2005  path_roundedcomposite.h
00003 
00004                         path_roundedcomposite.h -  description
00005                            -------------------
00006     begin                : Mon January 10 2005
00007     copyright            : (C) 2005 Erwin Aertbelien
00008     email                : erwin.aertbelien@mech.kuleuven.ac.be
00009 
00010  ***************************************************************************
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place,                                    *
00024  *   Suite 330, Boston, MA  02111-1307  USA                                *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 
00029  /*****************************************************************************
00030  *  \author
00031  *      Erwin Aertbelien, Div. PMA, Dep. of Mech. Eng., K.U.Leuven
00032  *
00033  *  \version
00034  *              ORO_Geometry V0.2
00035  *
00036  *      \par History
00037  *              - $log$
00038  *
00039  *      \par Release
00040  *              $Id: path_roundedcomposite.h,v 1.1.1.1.2.3 2003/07/24 13:26:15 psoetens Exp $
00041  *              $Name:  $
00042  ****************************************************************************/
00043 
00044 #ifndef KDL_MOTION_ROUNDEDCOMPOSITE_H
00045 #define KDL_MOTION_ROUNDEDCOMPOSITE_H
00046 
00047 #include "path.hpp"
00048 #include "path_composite.hpp"
00049 #include "rotational_interpolation.hpp"
00050 
00051 namespace KDL {
00052 
00058 class Path_RoundedComposite : public Path
00059         {
00063                 Path_Composite* comp;
00064 
00065 
00066                 double radius;
00067                 double eqradius;
00068                 RotationalInterpolation* orient;
00069                 // cached from underlying path objects for generating the rounding :
00070                 Frame F_base_start;
00071                 Frame F_base_via;
00072                 //Frame F_base_end;
00073                 int nrofpoints;
00074 
00075                 bool aggregate;
00076         public:
00077 
00084                 Path_RoundedComposite(double radius,double _eqradius,RotationalInterpolation* _orient, bool _aggregate=true);
00085 
00092                 void Add(const Frame& F_base_point);
00093 
00098                 void Finish();
00099 
00100 
00101                 virtual double LengthToS(double length);
00102 
00109                 virtual double PathLength();
00110 
00114                 virtual Frame Pos(double s) const;
00115 
00120                 virtual Twist Vel(double s,double sd) const;
00121 
00126                 virtual Twist Acc(double s,double sd,double sdd) const;
00127 
00133                 virtual Path* Clone();
00134 
00138                 virtual void Write(std::ostream& os);
00139 
00140                 virtual ~Path_RoundedComposite();
00141         };
00142 
00143 
00144 
00145 }
00146 
00147 
00148 #endif

Generated on Wed Nov 23 19:00:25 2011 for FreeCAD by  doxygen 1.6.1