FancySafeBot 0.0.1
A safe robotics library
Loading...
Searching...
No Matches
fsb::Segment< TrajStateType > Class Template Referenceabstract

Detailed Description

template<typename TrajStateType>
class fsb::Segment< TrajStateType >

Abstract class for segments.

#include <fsb_trajectory_types.h>

Inheritance diagram for fsb::Segment< TrajStateType >:
Inheritance graph
Collaboration diagram for fsb::Segment< TrajStateType >:
Collaboration graph

Public Member Functions

virtual Real get_start_time () const =0
 Get start time of the segment.
 
virtual Real get_duration () const =0
 Get duration of the segment.
 
virtual Real get_final_time () const =0
 Get final time of the segment.
 
virtual TrajStateType evaluate (Real t_eval) const =0
 Evaluate the segment at a given time.
 
virtual TrajStateType get_final_state () const =0
 Get final state of the segment.
 
virtual TrajStateType get_initial_state () const =0
 Get initial state of the segment.
 

Member Function Documentation

◆ evaluate()

template<typename TrajStateType >
virtual TrajStateType fsb::Segment< TrajStateType >::evaluate ( Real  t_eval) const
pure virtual

Evaluate the segment at a given time.

Parameters
[in]t_evalTime at which to evaluate the segment.
Returns
Trajectory state at the given time.

Implemented in fsb::Spline< MaxPoints >, fsb::CubicTrajectory, fsb::Quintic, fsb::SegmentConstJerk, fsb::SegmentConstAcc, fsb::SegmentConstVel, fsb::TrapezoidalPosition, and fsb::TrapezoidalVelocity.

◆ get_duration()

template<typename TrajStateType >
virtual Real fsb::Segment< TrajStateType >::get_duration ( ) const
pure virtual

◆ get_final_state()

template<typename TrajStateType >
virtual TrajStateType fsb::Segment< TrajStateType >::get_final_state ( ) const
pure virtual

Get final state of the segment.

Returns
Final state at the end of the segment.

Implemented in fsb::Spline< MaxPoints >, fsb::CubicTrajectory, fsb::Quintic, fsb::SegmentConstJerk, fsb::SegmentConstAcc, fsb::SegmentConstVel, fsb::TrapezoidalPosition, and fsb::TrapezoidalVelocity.

◆ get_final_time()

template<typename TrajStateType >
virtual Real fsb::Segment< TrajStateType >::get_final_time ( ) const
pure virtual

◆ get_initial_state()

template<typename TrajStateType >
virtual TrajStateType fsb::Segment< TrajStateType >::get_initial_state ( ) const
pure virtual

Get initial state of the segment.

Returns
Initial state at the beginning of the segment.

Implemented in fsb::Spline< MaxPoints >, fsb::CubicTrajectory, fsb::Quintic, fsb::SegmentConstJerk, fsb::SegmentConstAcc, fsb::SegmentConstVel, fsb::TrapezoidalPosition, and fsb::TrapezoidalVelocity.

◆ get_start_time()

template<typename TrajStateType >
virtual Real fsb::Segment< TrajStateType >::get_start_time ( ) const
pure virtual

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