Go to the documentation of this file.
4 #define _USE_MATH_DEFINES // for MSVC
69 cfg.
value(
i) = (rand()/(double)RAND_MAX) * 2 *
M_PI;
const double value(unsigned int i_rank) const
double & weight(unsigned int i_rank)
get weight for i_rank th element
std::vector< double > m_ubounds
std::vector< bool > m_isUnboundedRotation
static int max(int a, int b)
ConfigurationSpace(unsigned int i_size)
constructor
static int min(int a, int b)
unsigned int size()
get the number of degrees of freedom
std::vector< double > m_weights
Configuration random()
generate random position
void bounds(unsigned int i_rank, double min, double max)
set bounds for i_rank th element
unsigned int size() const
get the number of degrees of freedom
double & lbound(unsigned int i_rank)
get lower bound of i_rank th element
std::vector< double > m_lbounds
void unboundedRotation(unsigned int i_rank, bool i_flag)
specify i th degree of freedom is unbounded rotaion or not. default is false
double & ubound(unsigned int i_rank)
get upper bound for i_rank th element
bool isValid(const Configuration &cfg) const
全ての要素が有効な範囲内にあるかどうか検査する
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:02