orocos_kdl
Public Member Functions | Private Attributes | List of all members
KDL::Path_Line Class Reference

#include <path_line.hpp>

Inheritance diagram for KDL::Path_Line:
Inheritance graph
[legend]

Public Member Functions

virtual Twist Acc (double s, double sd, double sdd) const
 
virtual PathClone ()
 
virtual IdentifierType getIdentifier () const
 
double LengthToS (double length)
 
 Path_Line (const Frame &F_base_start, const Frame &F_base_end, RotationalInterpolation *orient, double eqradius, bool _aggregate=true)
 
 Path_Line (const Frame &F_base_start, const Twist &twist_in_base, RotationalInterpolation *orient, double eqradius, bool _aggregate=true)
 
virtual double PathLength ()
 
virtual Frame Pos (double s) const
 
virtual Twist Vel (double s, double sd) const
 
virtual void Write (std::ostream &os)
 
virtual ~Path_Line ()
 
- Public Member Functions inherited from KDL::Path
virtual ~Path ()
 

Private Attributes

bool aggregate
 
double eqradius
 
RotationalInterpolationorient
 
double pathlength
 
double scalelin
 
double scalerot
 
Vector V_base_end
 
Vector V_base_start
 
Vector V_start_end
 

Additional Inherited Members

- Public Types inherited from KDL::Path
enum  IdentifierType {
  ID_LINE =1, ID_CIRCLE =2, ID_COMPOSITE =3, ID_ROUNDED_COMPOSITE =4,
  ID_POINT =5, ID_CYCLIC_CLOSED =6
}
 
- Static Public Member Functions inherited from KDL::Path
static PathRead (std::istream &is)
 

Detailed Description

A path representing a line from A to B.

Definition at line 98 of file path_line.hpp.

Constructor & Destructor Documentation

◆ Path_Line() [1/2]

KDL::Path_Line::Path_Line ( const Frame F_base_start,
const Frame F_base_end,
RotationalInterpolation orient,
double  eqradius,
bool  _aggregate = true 
)

Constructs a Line Path F_base_start and F_base_end give the begin and end frame wrt the base orient gives the method of rotation interpolation eqradius : equivalent radius : serves to compare rotations and translations. the "amount of motion"(pos,vel,acc) of the rotation is taken to be the amount motion of a point at distance eqradius from the rotation axis.

Eqradius is introduced because it is unavoidable that you have to compare rotations and translations : e.g. : You can have motions that only contain rotation, and motions that only contain translations. The motion planning goes as follows :

  • translation is planned with the given parameters
  • rotation is planned planned with the parameters calculated with eqradius.
  • The longest of the previous two remains unchanged, the shortest in duration is scaled to take as long as the longest. This guarantees that the geometric path in 6D space remains independent of the motion profile parameters.

RotationalInterpolation_SingleAxis() has the advantage that it is independent of the frame in which you express your path. Other implementations for RotationalInterpolations COULD be (not implemented) (yet) : 1) quaternion interpolation : but this is more difficult for the human to interpret 2) 3-axis interpolation : express the orientation of the frame in e.g. euler zyx angles alfa,beta, gamma and interpolate these parameters. But this is dependent of the frame you choose as a reference and their can occur representation singularities.

Definition at line 85 of file path_line.cpp.

◆ Path_Line() [2/2]

KDL::Path_Line::Path_Line ( const Frame F_base_start,
const Twist twist_in_base,
RotationalInterpolation orient,
double  eqradius,
bool  _aggregate = true 
)

Definition at line 124 of file path_line.cpp.

◆ ~Path_Line()

KDL::Path_Line::~Path_Line ( )
virtual

Definition at line 186 of file path_line.cpp.

Member Function Documentation

◆ Acc()

Twist KDL::Path_Line::Acc ( double  s,
double  sd,
double  sdd 
) const
virtual

Returns the acceleration twist at path length s and with derivative of s == sd, and 2nd derivative of s == sdd

Implements KDL::Path.

Definition at line 181 of file path_line.cpp.

◆ Clone()

Path * KDL::Path_Line::Clone ( )
virtual

Virtual constructor, constructing by copying, Returns a deep copy of this Path Object

Implements KDL::Path.

Definition at line 191 of file path_line.cpp.

◆ getIdentifier()

virtual IdentifierType KDL::Path_Line::getIdentifier ( ) const
inlinevirtual

gets an identifier indicating the type of this Path object

Implements KDL::Path.

Definition at line 206 of file path_line.hpp.

◆ LengthToS()

double KDL::Path_Line::LengthToS ( double  length)
virtual

LengthToS() converts a physical length along the trajectory to the parameter s used in Pos, Vel and Acc. This is used because in cases with large rotations the parameter s does NOT correspond to the lineair length along the trajectory. User should be sure that the lineair distance travelled by this path object is NOT zero, when using this method ! (e.g. the case of only rotational change) throws Error_MotionPlanning_Not_Applicable if used on composed path objects.

Implements KDL::Path.

Definition at line 167 of file path_line.cpp.

◆ PathLength()

double KDL::Path_Line::PathLength ( )
virtual

Returns the total path length of the trajectory (has dimension LENGTH) This is not always a physical length , ie when dealing with rotations that are dominant.

Implements KDL::Path.

Definition at line 170 of file path_line.cpp.

◆ Pos()

Frame KDL::Path_Line::Pos ( double  s) const
virtual

Returns the Frame at the current path length s

Implements KDL::Path.

Definition at line 173 of file path_line.cpp.

◆ Vel()

Twist KDL::Path_Line::Vel ( double  s,
double  sd 
) const
virtual

Returns the velocity twist at path length s theta and with derivative of s == sd

Implements KDL::Path.

Definition at line 177 of file path_line.cpp.

◆ Write()

void KDL::Path_Line::Write ( std::ostream os)
virtual

Writes one of the derived objects to the stream

Implements KDL::Path.

Definition at line 211 of file path_line.cpp.

Member Data Documentation

◆ aggregate

bool KDL::Path_Line::aggregate
private

Definition at line 154 of file path_line.hpp.

◆ eqradius

double KDL::Path_Line::eqradius
private

Definition at line 147 of file path_line.hpp.

◆ orient

RotationalInterpolation* KDL::Path_Line::orient
private

Definition at line 140 of file path_line.hpp.

◆ pathlength

double KDL::Path_Line::pathlength
private

Definition at line 150 of file path_line.hpp.

◆ scalelin

double KDL::Path_Line::scalelin
private

Definition at line 151 of file path_line.hpp.

◆ scalerot

double KDL::Path_Line::scalerot
private

Definition at line 152 of file path_line.hpp.

◆ V_base_end

Vector KDL::Path_Line::V_base_end
private

Definition at line 144 of file path_line.hpp.

◆ V_base_start

Vector KDL::Path_Line::V_base_start
private

Definition at line 143 of file path_line.hpp.

◆ V_start_end

Vector KDL::Path_Line::V_start_end
private

Definition at line 145 of file path_line.hpp.


The documentation for this class was generated from the following files: