Public Member Functions | Private Attributes | List of all members
PathEngine::ConfigurationSpace Class Reference

#include <ConfigurationSpace.h>

Public Member Functions

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

ConfigurationSpace::ConfigurationSpace ( unsigned int  i_size)

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.

bool ConfigurationSpace::isValid ( const Configuration cfg) const

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

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.

Configuration ConfigurationSpace::random ( )

generate random position

Returns
generated position

Definition at line 64 of file ConfigurationSpace.cpp.

unsigned int ConfigurationSpace::size ( void  )

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

std::vector<bool> PathEngine::ConfigurationSpace::m_isUnboundedRotation
private

Definition at line 87 of file ConfigurationSpace.h.

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

Definition at line 85 of file ConfigurationSpace.h.

unsigned int PathEngine::ConfigurationSpace::m_size
private

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 Sat May 8 2021 02:42:45