hpp-bezier-com-traj 6.0.0
Multi contact trajectory generation for the COM using Bezier curves
Loading...
Searching...
No Matches
flags.hh
Go to the documentation of this file.
1/*
2 * Copyright 2018, LAAS-CNRS
3 * Author: Steve Tonneau
4 */
5
6#ifndef BEZIER_COM_TRAJ_FLAGS_H
7#define BEZIER_COM_TRAJ_FLAGS_H
8
10
11namespace bezier_com_traj {
12enum BEZIER_COM_TRAJ_DLLAPI CostFunction {
13 ACCELERATION = 0x00001,
16 UNKNOWN_COST = 0x00008
17};
18
19enum BEZIER_COM_TRAJ_DLLAPI ConstraintFlag {
20 INIT_POS = 0x00001,
21 INIT_VEL = 0x00002,
22 INIT_ACC = 0x00004,
23 END_POS = 0x00008,
24 END_VEL = 0x00010,
25 END_ACC = 0x00020,
26 INIT_JERK = 0x00040,
27 END_JERK = 0x00080,
28 ONE_FREE_VAR = 0x00000,
29 TWO_FREE_VAR = 0x00100,
30 THREE_FREE_VAR = 0x00200,
31 FOUR_FREE_VAR = 0x00400,
32 FIVE_FREE_VAR = 0x00800,
33 UNKNOWN = 0x01000
34};
35
36enum BEZIER_COM_TRAJ_DLLAPI GIWCRepresentation {
38 FORCE = 0x00002,
39 UNKNOWN_REPRESENTATION = 0x00004
40};
41
42inline ConstraintFlag operator~(ConstraintFlag a) {
43 return static_cast<ConstraintFlag>(~static_cast<const int>(a));
44}
45
46inline ConstraintFlag operator|(ConstraintFlag a, ConstraintFlag b) {
47 return static_cast<ConstraintFlag>(static_cast<const int>(a) |
48 static_cast<const int>(b));
49}
50
51inline ConstraintFlag operator&(ConstraintFlag a, ConstraintFlag b) {
52 return static_cast<ConstraintFlag>(static_cast<const int>(a) &
53 static_cast<const int>(b));
54}
55
56inline ConstraintFlag operator^(ConstraintFlag a, ConstraintFlag b) {
57 return static_cast<ConstraintFlag>(static_cast<const int>(a) ^
58 static_cast<const int>(b));
59}
60
61inline ConstraintFlag& operator|=(ConstraintFlag& a, ConstraintFlag b) {
62 return (ConstraintFlag&)((int&)(a) |= static_cast<const int>(b));
63}
64
65inline ConstraintFlag& operator&=(ConstraintFlag& a, ConstraintFlag b) {
66 return (ConstraintFlag&)((int&)(a) &= static_cast<const int>(b));
67}
68
69inline ConstraintFlag& operator^=(ConstraintFlag& a, ConstraintFlag b) {
70 return (ConstraintFlag&)((int&)(a) ^= static_cast<const int>(b));
71}
72
73} // end namespace bezier_com_traj
74
75#endif
END_ACC
Definition flags.hh:25
THREE_FREE_VAR
Definition flags.hh:30
INIT_VEL
Definition flags.hh:21
END_VEL
Definition flags.hh:24
ACCELERATION
Definition flags.hh:13
END_POS
Definition flags.hh:23
FIVE_FREE_VAR
Definition flags.hh:32
INIT_ACC
Definition flags.hh:22
INIT_POS
Definition flags.hh:20
TWO_FREE_VAR
Definition flags.hh:29
DISTANCE_TRAVELED
Definition flags.hh:14
TARGET_END_VELOCITY
Definition flags.hh:15
ONE_FREE_VAR
Definition flags.hh:28
INIT_JERK
Definition flags.hh:26
DOUBLE_DESCRIPTION
Definition flags.hh:37
FOUR_FREE_VAR
Definition flags.hh:31
END_JERK
Definition flags.hh:27
FORCE
Definition flags.hh:38
#define BEZIER_COM_TRAJ_DLLAPI
Definition local_config.hh:52
Definition common_solve_methods.hh:15
ConstraintFlag operator|(ConstraintFlag a, ConstraintFlag b)
Definition flags.hh:46
ConstraintFlag & operator^=(ConstraintFlag &a, ConstraintFlag b)
Definition flags.hh:69
ConstraintFlag & operator&=(ConstraintFlag &a, ConstraintFlag b)
Definition flags.hh:65
ConstraintFlag operator^(ConstraintFlag a, ConstraintFlag b)
Definition flags.hh:56
ConstraintFlag operator~(ConstraintFlag a)
Definition flags.hh:42
ConstraintFlag operator&(ConstraintFlag a, ConstraintFlag b)
Definition flags.hh:51
ConstraintFlag & operator|=(ConstraintFlag &a, ConstraintFlag b)
Definition flags.hh:61