#include <ConfigurationSpace.h>
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 |
Definition at line 12 of file ConfigurationSpace.h.
ConfigurationSpace::ConfigurationSpace | ( | unsigned int | i_size | ) |
constructor
Definition at line 10 of file ConfigurationSpace.cpp.
void ConfigurationSpace::bounds | ( | unsigned int | i_rank, |
double | min, | ||
double | max | ||
) |
set bounds for i_rank th element
i_rank | rank of the element |
min | minimum value |
max | maximum value |
Definition at line 48 of file ConfigurationSpace.cpp.
bool ConfigurationSpace::isValid | ( | const Configuration & | cfg | ) | const |
全ての要素が有効な範囲内にあるかどうか検査する
Definition at line 24 of file ConfigurationSpace.cpp.
double & ConfigurationSpace::lbound | ( | unsigned int | i_rank | ) |
get lower bound of i_rank th element
i_rank | rank of the element |
Definition at line 54 of file ConfigurationSpace.cpp.
generate random position
Definition at line 64 of file ConfigurationSpace.cpp.
unsigned int ConfigurationSpace::size | ( | void | ) |
get 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
i_rank | rank of the element |
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
i_rank | rank of the degree of freedom |
i_flag | true 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
i_rank | rank of the degree of freedom |
Definition at line 88 of file ConfigurationSpace.cpp.
double & ConfigurationSpace::weight | ( | unsigned int | i_rank | ) |
get weight for i_rank th element
i_rank | rank of the element |
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.
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.