forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
30 lines (21 loc) · 937 Bytes
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
namespace drake {
constexpr int kQuaternionSize = 4;
constexpr int kSpaceDimension = 3;
constexpr int kRpySize = 3;
/// https://en.wikipedia.org/wiki/Screw_theory#Twist
constexpr int kTwistSize = 6;
/// http://www.euclideanspace.com/maths/geometry/affine/matrix4x4/
constexpr int kHomogeneousTransformSize = 16;
const int kRotmatSize = kSpaceDimension * kSpaceDimension;
/// Drake supports explicit reasoning about a few carefully chosen random
/// distributions.
enum class RandomDistribution {
kUniform = 0, ///< Vector elements are independent and uniformly distributed
/// ∈ [0,1].
kGaussian = 1, ///< Vector elements are independent and drawn from a
/// mean-zero, unit-variance normal distribution.
kExponential = 2, ///< Vector elements are independent and drawn from an
/// exponential distribution with λ=1.
};
} // namespace drake