roboptim::TrajectoryCost< T > Class Template Reference

Meta-function for trajectory cost. More...

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

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

Public Types

typedef T trajectory_t
 Trajectory type.

Public Member Functions

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

Protected Attributes

const trajectory_ttrajectory_
 Input trajectory.

Detailed Description

template<typename T>
class roboptim::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::TrajectoryCost< T >::trajectory_t

Trajectory type.

Constructor & Destructor Documentation

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

Concret class should call this constructor.

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

Member Data Documentation

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

Input trajectory.