Robowflex  v0.1
Making MoveIt Easy
constants.h
Go to the documentation of this file.
1 /* Author: Zachary Kingston */
2 
3 #ifndef ROBOWFLEX_CONSTANTS_
4 #define ROBOWFLEX_CONSTANTS_
5 
6 #include <Eigen/Core>
7 #include <boost/math/constants/constants.hpp>
8 
9 namespace robowflex
10 {
11  namespace constants
12  {
13  // common
14  static const double half = boost::math::constants::half<double>();
15  static const double third = boost::math::constants::third<double>();
16  static const double eps = std::numeric_limits<double>::epsilon();
17  static const double inf = std::numeric_limits<double>::infinity();
19 
20  // pi
21  static const double pi = boost::math::constants::pi<double>();
22  static const double half_pi = boost::math::constants::half_pi<double>();
23  static const double quarter_pi = half_pi * half;
24  static const double two_pi = boost::math::constants::two_pi<double>();
25 
26  // tolerances
27  static const double ik_tolerance = 1e-5;
28  static const unsigned int ik_attempts = 50;
29  static const Eigen::Vector3d ik_vec_tolerance = {ik_tolerance, ik_tolerance, ik_tolerance};
30  static const double cart_rot_step_size = 0.01;
31  static const double cart_pos_step_size = 0.01;
32  static const double cart_rot_jump_tol = 0.25;
33  static const double cart_pos_jump_tol = 0.25;
34 
35  // planning
36  static const double default_workspace_bound = 1.0;
37  static const double default_allowed_planning_time = 5.0;
38 
39  } // namespace constants
40 } // namespace robowflex
41 
42 #endif
T epsilon(T... args)
T infinity(T... args)
static const double half
Definition: constants.h:14
static const double ik_tolerance
Definition: constants.h:27
static const double nan
Definition: constants.h:18
static const double cart_pos_jump_tol
Definition: constants.h:33
static const double two_pi
Definition: constants.h:24
static const double half_pi
Definition: constants.h:22
static const unsigned int ik_attempts
Definition: constants.h:28
static const double default_workspace_bound
Definition: constants.h:36
static const double cart_pos_step_size
Definition: constants.h:31
static const double inf
Definition: constants.h:17
static const Eigen::Vector3d ik_vec_tolerance
Definition: constants.h:29
static const double quarter_pi
Definition: constants.h:23
static const double pi
Definition: constants.h:21
static const double cart_rot_jump_tol
Definition: constants.h:32
static const double third
Definition: constants.h:15
static const double cart_rot_step_size
Definition: constants.h:30
static const double eps
Definition: constants.h:16
static const double default_allowed_planning_time
Definition: constants.h:37
Main namespace. Contains all library classes and functions.
Definition: scene.cpp:25
T quiet_NaN(T... args)