KDL 1.5.1
Loading...
Searching...
No Matches
KDL::Trajectory_Segment Class Reference

Trajectory_Segment combines a VelocityProfile and a Path into a trajectory. More...

#include <src/trajectory_segment.hpp>

Inheritance diagram for KDL::Trajectory_Segment:
Collaboration diagram for KDL::Trajectory_Segment:

Public Member Functions

 Trajectory_Segment (Path *_geom, VelocityProfile *_motprof, bool _aggregate=true)
 This constructor assumes that geom and <_motprof> are initialised correctly.
 
 Trajectory_Segment (Path *_geom, VelocityProfile *_motprof, double duration, bool _aggregate=true)
 This constructor assumes that geom is initialised and <_motprof> needs to be set according to duration.
 
virtual double Duration () const
 
virtual Frame Pos (double time) const
 
virtual Twist Vel (double time) const
 
virtual Twist Acc (double time) const
 
virtual TrajectoryClone () const
 
virtual void Write (std::ostream &os) const
 
virtual PathGetPath ()
 
virtual VelocityProfileGetProfile ()
 
virtual ~Trajectory_Segment ()
 

Static Public Member Functions

static TrajectoryRead (std::istream &is)
 

Private Attributes

VelocityProfilemotprof
 
Pathgeom
 
bool aggregate
 

Detailed Description

Trajectory_Segment combines a VelocityProfile and a Path into a trajectory.

Constructor & Destructor Documentation

◆ Trajectory_Segment() [1/2]

KDL::Trajectory_Segment::Trajectory_Segment ( Path * _geom,
VelocityProfile * _motprof,
bool _aggregate = true )

This constructor assumes that geom and <_motprof> are initialised correctly.

References aggregate, geom, and motprof.

Referenced by Clone().

◆ Trajectory_Segment() [2/2]

KDL::Trajectory_Segment::Trajectory_Segment ( Path * _geom,
VelocityProfile * _motprof,
double duration,
bool _aggregate = true )

This constructor assumes that geom is initialised and <_motprof> needs to be set according to duration.

References aggregate, geom, and motprof.

◆ ~Trajectory_Segment()

KDL::Trajectory_Segment::~Trajectory_Segment ( )
virtual

References aggregate, geom, and motprof.

Member Function Documentation

◆ Acc()

Twist KDL::Trajectory_Segment::Acc ( double time) const
virtual

Implements KDL::Trajectory.

References geom, and motprof.

◆ Clone()

virtual Trajectory * KDL::Trajectory_Segment::Clone ( ) const
inlinevirtual

Implements KDL::Trajectory.

References aggregate, geom, motprof, and Trajectory_Segment().

◆ Duration()

double KDL::Trajectory_Segment::Duration ( ) const
virtual

Implements KDL::Trajectory.

References motprof.

◆ GetPath()

Path * KDL::Trajectory_Segment::GetPath ( )
virtual

References geom.

◆ GetProfile()

VelocityProfile * KDL::Trajectory_Segment::GetProfile ( )
virtual

References motprof.

◆ Pos()

Frame KDL::Trajectory_Segment::Pos ( double time) const
virtual

Implements KDL::Trajectory.

References geom, and motprof.

◆ Read()

Trajectory * KDL::Trajectory::Read ( std::istream & is)
staticinherited

◆ Vel()

Twist KDL::Trajectory_Segment::Vel ( double time) const
virtual

Implements KDL::Trajectory.

References geom, and motprof.

◆ Write()

void KDL::Trajectory_Segment::Write ( std::ostream & os) const
virtual

Implements KDL::Trajectory.

References geom, and motprof.

Member Data Documentation

◆ aggregate

bool KDL::Trajectory_Segment::aggregate
private

◆ geom

Path* KDL::Trajectory_Segment::geom
private

◆ motprof


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