LocalGuidance
A library that generates velocity references to follow a path.
dmp::TransformationSystem Class Reference

#include <TransformationSystem.hpp>

Public Member Functions

 TransformationSystem (DiscreteMovementPrimitive *dmpParent)
 
 ~TransformationSystem ()
 
bool initialize (const int num_rfs, const double activation, const bool exponentially_spaced, const double can_sys_cutoff)
 
void print ()
 
std::string getInfoString ()
 

Private Member Functions

void reset ()
 
void setState (const double y, const double z)
 
double getState () const
 
void setStart (const double y0)
 
void setGoal (const double goal)
 
double getGoal () const
 
void setInitialStart (const double initial_y0)
 
void setInitialGoal (const double initial_goal)
 
void resetMSE ()
 
bool getMSE (double &mse)
 
bool getNormalizedMSE (double &normalized_mse)
 
void computeMSE ()
 

Private Attributes

DiscreteMovementPrimitivedmpParent_
 
bool initialized_
 
int trans_id_
 
int version_id_
 
double z_
 
double zd_
 
double y_
 
double yd_
 
double ydd_
 
double t_
 
double td_
 
double tdd_
 
double y0_
 
double initial_y0_
 
double goal_
 
double initial_goal_
 
double f_
 
double ft_
 
double mse_
 
double mean_ft_
 
unsigned int num_mse_data_points_
 
std::vector< double > trajectory_target_
 
GaussianKernelgaussianKernelModel_
 

Friends

class DiscreteMovementPrimitive
 
class GaussianKernel
 

Constructor & Destructor Documentation

dmp::TransformationSystem::TransformationSystem ( DiscreteMovementPrimitive dmpParent)
dmp::TransformationSystem::~TransformationSystem ( )

Member Function Documentation

void dmp::TransformationSystem::computeMSE ( )
inlineprivate
double dmp::TransformationSystem::getGoal ( ) const
inlineprivate
std::string dmp::TransformationSystem::getInfoString ( )
Returns
bool dmp::TransformationSystem::getMSE ( double &  mse)
inlineprivate
bool dmp::TransformationSystem::getNormalizedMSE ( double &  normalized_mse)
inlineprivate
double dmp::TransformationSystem::getState ( ) const
inlineprivate
bool dmp::TransformationSystem::initialize ( const int  num_rfs,
const double  activation,
const bool  exponentially_spaced,
const double  can_sys_cutoff 
)
Parameters
index
directory_name
lwr_params
Returns
void dmp::TransformationSystem::print ( )
void dmp::TransformationSystem::reset ( )
inlineprivate
void dmp::TransformationSystem::resetMSE ( )
inlineprivate
void dmp::TransformationSystem::setGoal ( const double  goal)
inlineprivate
void dmp::TransformationSystem::setInitialGoal ( const double  initial_goal)
inlineprivate
void dmp::TransformationSystem::setInitialStart ( const double  initial_y0)
inlineprivate
void dmp::TransformationSystem::setStart ( const double  y0)
inlineprivate
void dmp::TransformationSystem::setState ( const double  y,
const double  z 
)
inlineprivate

Friends And Related Function Documentation

friend class DiscreteMovementPrimitive
friend
friend class GaussianKernel
friend

Member Data Documentation

DiscreteMovementPrimitive* dmp::TransformationSystem::dmpParent_
private
double dmp::TransformationSystem::f_
private

the current values of the nonlinear function

double dmp::TransformationSystem::ft_
private
GaussianKernel* dmp::TransformationSystem::gaussianKernelModel_
private

gaussian kernel model used to approximate the nonlinear function

double dmp::TransformationSystem::goal_
private

the goal state

double dmp::TransformationSystem::initial_goal_
private
double dmp::TransformationSystem::initial_y0_
private
bool dmp::TransformationSystem::initialized_
private

flag that indicates whether the system is initialized

double dmp::TransformationSystem::mean_ft_
private
double dmp::TransformationSystem::mse_
private

internal variables that are used to compute the normalized mean squared error during learning

unsigned int dmp::TransformationSystem::num_mse_data_points_
private
double dmp::TransformationSystem::t_
private

the targets used during supervised learning

double dmp::TransformationSystem::td_
private
double dmp::TransformationSystem::tdd_
private
std::vector<double> dmp::TransformationSystem::trajectory_target_
private

internal variable that is used to store the target function for Gaussian kernel model

int dmp::TransformationSystem::trans_id_
private

the id of the transformation system

int dmp::TransformationSystem::version_id_
private

determines which DMP version is used. (not used yet)

double dmp::TransformationSystem::y0_
private

the start state

double dmp::TransformationSystem::y_
private

external states

double dmp::TransformationSystem::yd_
private
double dmp::TransformationSystem::ydd_
private
double dmp::TransformationSystem::z_
private

internal states

double dmp::TransformationSystem::zd_
private

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