Public Member Functions | Private Attributes
PathEngine::ConfigurationSpace Class Reference

#include <ConfigurationSpace.h>

List of all members.

Public Member Functions

void bounds (unsigned int i_rank, double min, double max)
 set bounds for i_rank th element
 ConfigurationSpace (unsigned int i_size)
 constructor
bool isValid (const Configuration &cfg) const
 全ての要素が有効な範囲内にあるかどうか検査する
double & lbound (unsigned int i_rank)
 get lower bound of i_rank th element
Configuration random ()
 generate random position
unsigned int size ()
 get the number of degrees of freedom
double & ubound (unsigned int i_rank)
 get upper bound for i_rank th element
void unboundedRotation (unsigned int i_rank, bool i_flag)
 specify i th degree of freedom is unbounded rotaion or not. default is false
bool unboundedRotation (unsigned int i_rank)
 ask i the degree of freedom is unbounded rotaion or not
double & weight (unsigned int i_rank)
 get weight for i_rank th element
const double weight (unsigned int i_rank) const

Private Attributes

std::vector< bool > m_isUnboundedRotation
std::vector< double > m_lbounds
unsigned int m_size
std::vector< double > m_ubounds
std::vector< double > m_weights

Detailed Description

Definition at line 12 of file ConfigurationSpace.h.


Constructor & Destructor Documentation

constructor

Definition at line 10 of file ConfigurationSpace.cpp.


Member Function Documentation

void ConfigurationSpace::bounds ( unsigned int  i_rank,
double  min,
double  max 
)

set bounds for i_rank th element

Parameters:
i_rankrank of the element
minminimum value
maxmaximum value

Definition at line 48 of file ConfigurationSpace.cpp.

全ての要素が有効な範囲内にあるかどうか検査する

Returns:
全ての要素が有効範囲内にあればtrue、それ以外false

Definition at line 24 of file ConfigurationSpace.cpp.

double & ConfigurationSpace::lbound ( unsigned int  i_rank)

get lower bound of i_rank th element

Parameters:
i_rankrank of the element
Returns:
lower bound

Definition at line 54 of file ConfigurationSpace.cpp.

generate random position

Returns:
generated position

Definition at line 64 of file ConfigurationSpace.cpp.

get the number of degrees of freedom

Returns:
the number of degrees of freedom

Definition at line 78 of file ConfigurationSpace.cpp.

double & ConfigurationSpace::ubound ( unsigned int  i_rank)

get upper bound for i_rank th element

Parameters:
i_rankrank of the element
Returns:
upper bound

Definition at line 59 of file ConfigurationSpace.cpp.

void ConfigurationSpace::unboundedRotation ( unsigned int  i_rank,
bool  i_flag 
)

specify i th degree of freedom is unbounded rotaion or not. default is false

Parameters:
i_rankrank of the degree of freedom
i_flagtrue or false

Definition at line 83 of file ConfigurationSpace.cpp.

bool ConfigurationSpace::unboundedRotation ( unsigned int  i_rank)

ask i the degree of freedom is unbounded rotaion or not

Parameters:
i_rankrank of the degree of freedom
Returns:
true(unbounded) or false

Definition at line 88 of file ConfigurationSpace.cpp.

double & ConfigurationSpace::weight ( unsigned int  i_rank)

get weight for i_rank th element

Parameters:
i_rankrank of the element
Returns:
weight

Definition at line 38 of file ConfigurationSpace.cpp.

const double ConfigurationSpace::weight ( unsigned int  i_rank) const

Definition at line 43 of file ConfigurationSpace.cpp.


Member Data Documentation

Definition at line 87 of file ConfigurationSpace.h.

std::vector<double> PathEngine::ConfigurationSpace::m_lbounds [private]

Definition at line 85 of file ConfigurationSpace.h.

Definition at line 83 of file ConfigurationSpace.h.

std::vector<double> PathEngine::ConfigurationSpace::m_ubounds [private]

Definition at line 84 of file ConfigurationSpace.h.

std::vector<double> PathEngine::ConfigurationSpace::m_weights [private]

Definition at line 86 of file ConfigurationSpace.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:22