libalmath  2.1.4.13
 All Classes Namespaces Functions Variables Typedefs Groups Pages
alaxismask.h
1 /*
2  * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the COPYING file.
5  */
6 
7 
8 #pragma once
9 #ifndef _LIBALMATH_ALMATH_TYPES_ALAXISMASK_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALAXISMASK_H_
11 
12 #include <bitset>
13 
14 namespace AL {
15  namespace Math {
16 
34  typedef std::bitset<6> AXIS_MASK;
35 
36  static const int AXIS_MASK_X = 1;
37  static const int AXIS_MASK_Y = 2;
38  static const int AXIS_MASK_XY = 3;
39  static const int AXIS_MASK_Z = 4;
40  static const int AXIS_MASK_WX = 8;
41  static const int AXIS_MASK_WY = 16;
42  static const int AXIS_MASK_WZ = 32;
43  static const int AXIS_MASK_WYWZ = 48;
44  static const int AXIS_MASK_ALL = 63;
45  static const int AXIS_MASK_VEL = 7;
46  static const int AXIS_MASK_ROT = 56;
47  static const int AXIS_MASK_NONE = 0;
48 
52  bool isAxisMask(const int pAxisMask);
53 
54  }
55 }
56 #endif // _LIBALMATH_ALMATH_TYPES_ALAXISMASK_H_
std::bitset< 6 > AXIS_MASK
Definition of an AXIS_MASK as a bit set.
Definition: alaxismask.h:34