LEMUR Packages: ompl_lemur or_lemur pr_bgl prpy_lemur
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Groups Pages
util.h
Go to the documentation of this file.
1 
7 namespace ompl_lemur
8 {
9 namespace util
10 {
11 
12 std::string sf(const char * fmt, ...);
13 
14 bool startswith(std::string s, std::string prefix);
15 
16 std::string sha1(std::string in);
17 
18 std::string file_sha1(std::string in);
19 
20 // volume of an n-ball
21 double volume_n_ball(unsigned int n);
22 
23 std::string double_to_text(double in);
24 
25 // this rounds the given double value to 14 decimal digits
26 // (in scientific notation)
27 // this is a workaround for a bug in the boost lexical_cast
28 // https://svn.boost.org/trac/boost/ticket/10639
29 // this workaround assumes that the actual value being specified
30 // does not require more than 14 digits in decimal
31 void snap_decimal(double & value);
32 
33 std::size_t get_prime(std::size_t which);
34 
35 double halton(std::size_t prime, std::size_t index);
36 
37 } // namespace util
38 } // namespace ompl_lemur