libalmath  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
alaxismask.h
Go to the documentation of this file.
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 #include <almath/api.h>
14 
15 namespace AL {
16  namespace Math {
17 
36  typedef std::bitset<6> AXIS_MASK;
37 
38  static const int AXIS_MASK_X = 1;
39  static const int AXIS_MASK_Y = 2;
40  static const int AXIS_MASK_XY = 3;
41  static const int AXIS_MASK_Z = 4;
42  static const int AXIS_MASK_WX = 8;
43  static const int AXIS_MASK_WY = 16;
44  static const int AXIS_MASK_WZ = 32;
45  static const int AXIS_MASK_WYWZ = 48;
46  static const int AXIS_MASK_ALL = 63;
47  static const int AXIS_MASK_VEL = 7;
48  static const int AXIS_MASK_ROT = 56;
49  static const int AXIS_MASK_NONE = 0;
50  static const int AXIS_MASK_PLANEZ = 28; // Z + WX + WY
51 
55  ALMATH_API bool isAxisMask(const int pAxisMask);
56  }
57 }
58 #endif // _LIBALMATH_ALMATH_TYPES_ALAXISMASK_H_
ALMATH_API bool isAxisMask(const int pAxisMask)
Validates an AxisMask.
std::bitset< 6 > AXIS_MASK
Definition of an AXIS_MASK as a bit set.
Definition: alaxismask.h:36