All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
roboptim::trajectory::TrajectoryCost< T > Class Template Reference

Meta-function for trajectory cost. More...

#include <roboptim/trajectory/trajectory-cost.hh>

Inheritance diagram for roboptim::trajectory::TrajectoryCost< T >:

Public Types

typedef T trajectory_t
 Trajectory type. More...
 

Public Member Functions

 TrajectoryCost (const trajectory_t &traj, std::string name=std::string())
 Concret class should call this constructor. More...
 
virtual ~TrajectoryCost ()
 

Protected Attributes

const trajectory_ttrajectory_
 Input trajectory. More...
 

Detailed Description

template<typename T>
class roboptim::trajectory::TrajectoryCost< T >

Meta-function for trajectory cost.

This is a \(\mathbb{R}^n \rightarrow \mathbb{R}\) meta-function for costs on trajectories.

It takes a trajectory as its input.

Template Parameters
Ttrajectory type

Member Typedef Documentation

template<typename T>
typedef T roboptim::trajectory::TrajectoryCost< T >::trajectory_t

Trajectory type.

Constructor & Destructor Documentation

template<typename T >
roboptim::trajectory::TrajectoryCost< T >::TrajectoryCost ( const trajectory_t traj,
std::string  name = std::string () 
)

Concret class should call this constructor.

Parameters
trajtrajectory on which the cost is computed
namefunction's name
template<typename T >
roboptim::trajectory::TrajectoryCost< T >::~TrajectoryCost ( )
virtual

Member Data Documentation

template<typename T>
const trajectory_t& roboptim::trajectory::TrajectoryCost< T >::trajectory_
protected

Input trajectory.