orocos_kdl
path_roundedcomposite.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: Erwin Aertbelien Mon Jan 10 16:38:38 CET 2005 path_roundedcomposite.h
3 
4  path_roundedcomposite.h - description
5  -------------------
6  begin : Mon January 10 2005
7  copyright : (C) 2005 Erwin Aertbelien
8  email : erwin.aertbelien@mech.kuleuven.ac.be
9 
10  ***************************************************************************
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2.1 of the License, or (at your option) any later version. *
15  * *
16  * This library is distributed in the hope that it will be useful, *
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19  * Lesser General Public License for more details. *
20  * *
21  * You should have received a copy of the GNU Lesser General Public *
22  * License along with this library; if not, write to the Free Software *
23  * Foundation, Inc., 59 Temple Place, *
24  * Suite 330, Boston, MA 02111-1307 USA *
25  * *
26  ***************************************************************************/
27 
28 
29  /*****************************************************************************
30  * \author
31  * Erwin Aertbelien, Div. PMA, Dep. of Mech. Eng., K.U.Leuven
32  *
33  * \version
34  * ORO_Geometry V0.2
35  *
36  * \par History
37  * - $log$
38  *
39  * \par Release
40  * $Id: path_roundedcomposite.h,v 1.1.1.1.2.3 2003/07/24 13:26:15 psoetens Exp $
41  * $Name: $
42  ****************************************************************************/
43 
44 #ifndef KDL_MOTION_ROUNDEDCOMPOSITE_H
45 #define KDL_MOTION_ROUNDEDCOMPOSITE_H
46 
47 #include "path.hpp"
48 #include "path_composite.hpp"
50 
51 namespace KDL {
52 
58 class Path_RoundedComposite : public Path
59  {
63  Path_Composite* comp;
64 
65 
66  double radius;
67  double eqradius;
68  RotationalInterpolation* orient;
69  // cached from underlying path objects for generating the rounding :
70  Frame F_base_start;
71  Frame F_base_via;
72  //Frame F_base_end;
73  int nrofpoints;
74 
75  bool aggregate;
76 
77  Path_RoundedComposite(Path_Composite* comp,double radius,double eqradius,RotationalInterpolation* orient, bool aggregate, int nrofpoints);
78 
79  public:
80 
88  Path_RoundedComposite(double radius,double eqradius,RotationalInterpolation* orient, bool aggregate=true);
89 
109  void Add(const Frame& F_base_point);
110 
115  void Finish();
116 
117 
118  virtual double LengthToS(double length);
119 
126  virtual double PathLength();
127 
128 
132  virtual Frame Pos(double s) const;
133 
138  virtual Twist Vel(double s,double sd) const;
139 
144  virtual Twist Acc(double s,double sd,double sdd) const;
145 
151  virtual Path* Clone();
152 
156  virtual void Write(std::ostream& os);
157 
161  virtual int GetNrOfSegments();
162 
170  virtual Path* GetSegment(int i);
171 
178  virtual double GetLengthToEndOfSegment(int i);
179 
185  virtual void GetCurrentSegmentLocation(double s, int &segment_number, double& inner_s);
186 
190  virtual IdentifierType getIdentifier() const {
191  return ID_ROUNDED_COMPOSITE;
192  }
193 
194 
195  virtual ~Path_RoundedComposite();
196  };
197 
198 
199 
200 }
201 
202 
203 #endif
KDL::Path_RoundedComposite::Pos
virtual Frame Pos(double s) const
Definition: path_roundedcomposite.cpp:194
path_composite.hpp
KDL::Path_RoundedComposite::PathLength
virtual double PathLength()
Definition: path_roundedcomposite.cpp:190
KDL::Path_RoundedComposite::orient
RotationalInterpolation * orient
Definition: path_roundedcomposite.hpp:144
KDL::Path_RoundedComposite::aggregate
bool aggregate
Definition: path_roundedcomposite.hpp:151
KDL::Path_RoundedComposite::GetLengthToEndOfSegment
virtual double GetLengthToEndOfSegment(int i)
Definition: path_roundedcomposite.cpp:218
KDL::Path_RoundedComposite::Clone
virtual Path * Clone()
Definition: path_roundedcomposite.cpp:236
KDL::Path_RoundedComposite::radius
double radius
Definition: path_roundedcomposite.hpp:142
KDL::Path_RoundedComposite::~Path_RoundedComposite
virtual ~Path_RoundedComposite()
Definition: path_roundedcomposite.cpp:229
KDL::Path::ID_ROUNDED_COMPOSITE
@ ID_ROUNDED_COMPOSITE
Definition: path.hpp:179
KDL::Path_RoundedComposite::Path_RoundedComposite
Path_RoundedComposite(Path_Composite *comp, double radius, double eqradius, RotationalInterpolation *orient, bool aggregate, int nrofpoints)
Definition: path_roundedcomposite.cpp:93
KDL::Path_RoundedComposite::Add
void Add(const Frame &F_base_point)
Definition: path_roundedcomposite.cpp:108
KDL
Definition: kukaLWR_DHnew.cpp:25
KDL::Path_RoundedComposite::F_base_via
Frame F_base_via
Definition: path_roundedcomposite.hpp:147
KDL::Twist
represents both translational and rotational velocities.
Definition: frames.hpp:723
KDL::Path_RoundedComposite::LengthToS
virtual double LengthToS(double length)
Definition: path_roundedcomposite.cpp:185
KDL::Path_RoundedComposite::nrofpoints
int nrofpoints
Definition: path_roundedcomposite.hpp:149
std::ostream
KDL::Path_RoundedComposite::eqradius
double eqradius
Definition: path_roundedcomposite.hpp:143
KDL::Path::IdentifierType
IdentifierType
Definition: path.hpp:137
KDL::Path_RoundedComposite::GetCurrentSegmentLocation
virtual void GetCurrentSegmentLocation(double s, int &segment_number, double &inner_s)
Definition: path_roundedcomposite.cpp:222
KDL::Path_RoundedComposite::Finish
void Finish()
Definition: path_roundedcomposite.cpp:177
KDL::Path_RoundedComposite::GetSegment
virtual Path * GetSegment(int i)
Definition: path_roundedcomposite.cpp:214
KDL::Path_RoundedComposite::Acc
virtual Twist Acc(double s, double sd, double sdd) const
Definition: path_roundedcomposite.cpp:202
KDL::Path_RoundedComposite::GetNrOfSegments
virtual int GetNrOfSegments()
Definition: path_roundedcomposite.cpp:210
KDL::Path_RoundedComposite::comp
Path_Composite * comp
Definition: path_roundedcomposite.hpp:139
KDL::Path_RoundedComposite::getIdentifier
virtual IdentifierType getIdentifier() const
Definition: path_roundedcomposite.hpp:266
KDL::Path_RoundedComposite::Vel
virtual Twist Vel(double s, double sd) const
Definition: path_roundedcomposite.cpp:198
KDL::Path_RoundedComposite::F_base_start
Frame F_base_start
Definition: path_roundedcomposite.hpp:146
path.hpp
rotational_interpolation.hpp
KDL::Path_RoundedComposite::Write
virtual void Write(std::ostream &os)
Definition: path_roundedcomposite.cpp:206
KDL::Path
Definition: path.hpp:96