openrave.org

 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義 グループ ページ
構成 | 関数
ネームスペース OpenRAVE::utils

構成

struct  null_deleter
 
struct  index_cmp
 
struct  smart_pointer_deleter
 allow to add different custom deleter funtions to a shared_ptr without touching its original custom deleter [詳細]
 

関数

void GetWallTime (uint32_t &sec, uint32_t &nsec)
 
uint64_t GetNanoTime ()
 
uint64_t GetMicroTime ()
 
uint32_t GetMilliTime ()
 
static uint64_t GetNanoPerformanceTime ()
 
template<class T >
boost::shared_ptr< T > sptr_from (boost::weak_ptr< T > const &wpt)
 
std::string ConvertToLowerCase (const std::string &s)
 returns a lower case version of the string
 
template<typename C >
void TokenizeString (std::string const &s, char const *d, C &ret)
 separates the directories from a string and returns them in a vector
 
OPENRAVE_API std::string GetFilenameUntilSeparator (std::istream &sinput, char separator)
 gets the string up the next separator and strips it of leading whitespace.
 
OPENRAVE_API std::string & SearchAndReplace (std::string &out, const std::string &in, const std::vector< std::pair< std::string, std::string > > &pairs)
 search and replace strings for all pairs. Internally first checks the longest strings before the shortest
 
OPENRAVE_API std::string GetMD5HashString (const std::string &s)
 compute the md5 hash of a string
 
OPENRAVE_API std::string GetMD5HashString (const std::vector< uint8_t > &v)
 compute the md5 hash of an array
 
template<class T >
ClampOnRange (T value, T min, T max)
 
template<typename T >
NormalizeCircularAngle (T theta, T min, T max)
 
template<typename T >
SubtractCircularAngle (T f0, T f1)
 
template<typename T >
InterpolateCircularAngle (T start, T end, T fraction, T lowerLimit, T upperLimit)
 
template<typename T >
Sqr (T t)
 
bool IsValidCharInName (char c)
 openrave valid characters to be used in names
 
bool IsValidName (const std::string &s)
 openrave valid characters to be used in names
 
std::string ConvertToOpenRAVEName (const std::string &name)
 converts improper characters to _ so the entire name is valid
 
bool PairStringLengthCompare (const std::pair< std::string, std::string > &p0, const std::pair< std::string, std::string > &p1)
 

関数

template<class T >
T OpenRAVE::utils::ClampOnRange ( value,
min,
max 
)
inline

utils.h264 行で定義されています。

std::string OpenRAVE::utils::ConvertToLowerCase ( const std::string &  s)
inline

returns a lower case version of the string

utils.h196 行で定義されています。

std::string OpenRAVE::utils::ConvertToOpenRAVEName ( const std::string &  name)
inline

converts improper characters to _ so the entire name is valid

utils.h329 行で定義されています。

std::string OpenRAVE::utils::GetFilenameUntilSeparator ( std::istream &  sinput,
char  separator 
)

gets the string up the next separator and strips it of leading whitespace.

If separator is not present, will return entire string

utils.cpp105 行で定義されています。

std::string OpenRAVE::utils::GetMD5HashString ( const std::string &  s)

compute the md5 hash of a string

utils.cpp25 行で定義されています。

std::string OpenRAVE::utils::GetMD5HashString ( const std::vector< uint8_t > &  v)

compute the md5 hash of an array

utils.cpp47 行で定義されています。

uint64_t OpenRAVE::utils::GetMicroTime ( )
inline

utils.h110 行で定義されています。

uint32_t OpenRAVE::utils::GetMilliTime ( )
inline
例:
orikfilter.cpp.

utils.h117 行で定義されています。

static uint64_t OpenRAVE::utils::GetNanoPerformanceTime ( )
inlinestatic

utils.h124 行で定義されています。

uint64_t OpenRAVE::utils::GetNanoTime ( )
inline

utils.h103 行で定義されています。

void OpenRAVE::utils::GetWallTime ( uint32_t &  sec,
uint32_t &  nsec 
)
inline

utils.h88 行で定義されています。

template<typename T >
T OpenRAVE::utils::InterpolateCircularAngle ( start,
end,
fraction,
lowerLimit,
upperLimit 
)
inline

utils.h305 行で定義されています。

bool OpenRAVE::utils::IsValidCharInName ( char  c)
inline

openrave valid characters to be used in names

utils.h316 行で定義されています。

bool OpenRAVE::utils::IsValidName ( const std::string &  s)
inline

openrave valid characters to be used in names

utils.h321 行で定義されています。

template<typename T >
T OpenRAVE::utils::NormalizeCircularAngle ( theta,
min,
max 
)
inline

utils.h276 行で定義されています。

bool OpenRAVE::utils::PairStringLengthCompare ( const std::pair< std::string, std::string > &  p0,
const std::pair< std::string, std::string > &  p1 
)

utils.cpp69 行で定義されています。

std::string & OpenRAVE::utils::SearchAndReplace ( std::string &  out,
const std::string &  in,
const std::vector< std::pair< std::string, std::string > > &  pairs 
)

search and replace strings for all pairs. Internally first checks the longest strings before the shortest

戻り値
returns a reference to the out string

utils.cpp74 行で定義されています。

template<class T >
boost::shared_ptr<T> OpenRAVE::utils::sptr_from ( boost::weak_ptr< T > const &  wpt)

utils.h146 行で定義されています。

template<typename T >
T OpenRAVE::utils::Sqr ( t)
inline

utils.h311 行で定義されています。

template<typename T >
T OpenRAVE::utils::SubtractCircularAngle ( f0,
f1 
)
inline

utils.h298 行で定義されています。

template<typename C >
void OpenRAVE::utils::TokenizeString ( std::string const &  s,
char const *  d,
C &  ret 
)
inline

separates the directories from a string and returns them in a vector

from http://stackoverflow.com/questions/5505965/fast-string-splitting-with-multiple-delimiters

Usage:

std::vector<std::string> vstrings;
TokenizeString("0.141 0.51411", " \n\t", vstrings);
// store begin and end positions (~8x faster)
typedef boost::iterator_range< std::string::const_iterator > string_view;
std::vector<string_view> vsv;
TokenizeString("0.141 0.51411", " \n\t", vsv);

utils.h220 行で定義されています。