#include <unistd.h>
#include <map>
Go to the source code of this file.
Macros | |
#define | ARM_OFFSET 300 |
#define | AUX_OFFSET 110 |
#define | CLEAR() std::cerr << "\x1B[2J\x1B[H"; |
#define | DEBUG(x) std::cerr << "\033[22;34;1m" << x << "\033[0m"; |
#define | DEBUG_MODE false |
#define | ERR(x) std::cerr << "\033[22;31;1m" << x << "\033[0m"; |
#define | EYES_ANGRY 30 |
#define | EYES_EXCITED -40 |
#define | EYES_NORMAL 0 |
#define | EYES_OFFSET 300 |
#define | EYES_WIDE -120 |
#define | HIP_OFFSET 100 |
#define | INFO(x) std::cerr << "\033[22;37;1m" << x << "\033[0m"; |
#define | KNEE_OFFSET 110 |
#define | NOTE_A1 55 |
#define | NOTE_A2 110 |
#define | NOTE_A3 220 |
#define | NOTE_A4 440 |
#define | NOTE_A5 880 |
#define | NOTE_A6 1760 |
#define | NOTE_A7 3520 |
#define | NOTE_AS1 58 |
#define | NOTE_AS2 117 |
#define | NOTE_AS3 233 |
#define | NOTE_AS4 466 |
#define | NOTE_AS5 932 |
#define | NOTE_AS6 1865 |
#define | NOTE_AS7 3729 |
#define | NOTE_B0 31 |
#define | NOTE_B1 62 |
#define | NOTE_B2 123 |
#define | NOTE_B3 247 |
#define | NOTE_B4 494 |
#define | NOTE_B5 988 |
#define | NOTE_B6 1976 |
#define | NOTE_B7 3951 |
#define | NOTE_C1 33 |
#define | NOTE_C2 65 |
#define | NOTE_C3 131 |
#define | NOTE_C4 262 |
#define | NOTE_C5 523 |
#define | NOTE_C6 1047 |
#define | NOTE_C7 2093 |
#define | NOTE_C8 4186 |
#define | NOTE_CS1 35 |
#define | NOTE_CS2 69 |
#define | NOTE_CS3 139 |
#define | NOTE_CS4 277 |
#define | NOTE_CS5 554 |
#define | NOTE_CS6 1109 |
#define | NOTE_CS7 2217 |
#define | NOTE_CS8 4435 |
#define | NOTE_D1 37 |
#define | NOTE_D2 73 |
#define | NOTE_D3 147 |
#define | NOTE_D4 294 |
#define | NOTE_D5 587 |
#define | NOTE_D6 1175 |
#define | NOTE_D7 2349 |
#define | NOTE_D8 4699 |
#define | NOTE_DS1 39 |
#define | NOTE_DS2 78 |
#define | NOTE_DS3 156 |
#define | NOTE_DS4 311 |
#define | NOTE_DS5 622 |
#define | NOTE_DS6 1245 |
#define | NOTE_DS7 2489 |
#define | NOTE_DS8 4978 |
#define | NOTE_E1 41 |
#define | NOTE_E2 82 |
#define | NOTE_E3 165 |
#define | NOTE_E4 330 |
#define | NOTE_E5 659 |
#define | NOTE_E6 1319 |
#define | NOTE_E7 2637 |
#define | NOTE_F1 44 |
#define | NOTE_F2 87 |
#define | NOTE_F3 175 |
#define | NOTE_F4 349 |
#define | NOTE_F5 698 |
#define | NOTE_F6 1397 |
#define | NOTE_F7 2794 |
#define | NOTE_FS1 46 |
#define | NOTE_FS2 93 |
#define | NOTE_FS3 185 |
#define | NOTE_FS4 370 |
#define | NOTE_FS5 740 |
#define | NOTE_FS6 1480 |
#define | NOTE_FS7 2960 |
#define | NOTE_G1 49 |
#define | NOTE_G2 98 |
#define | NOTE_G3 196 |
#define | NOTE_G4 392 |
#define | NOTE_G5 784 |
#define | NOTE_G6 1568 |
#define | NOTE_G7 3136 |
#define | NOTE_GS1 52 |
#define | NOTE_GS2 104 |
#define | NOTE_GS3 208 |
#define | NOTE_GS4 415 |
#define | NOTE_GS5 831 |
#define | NOTE_GS6 1661 |
#define | NOTE_GS7 3322 |
#define | SILENCE 0 |
#define | TWIST_OFFSET 110 |
#define | WARN(x) std::cerr << "\033[22;33;1m" << x << "\033[0m"; |
Enumerations | |
enum | JOINTS { LHIP = 0, LTWIST, LKNEE, RHIP, RTWIST, RKNEE, LARM, RARM, EYES, AUX1, AUX2, NUMJOINTS } |
Functions | |
void | sleepms (int ms) |
Variables | |
const std::vector< int > | JOINT_DIR |
const std::vector< int > | JOINT_MULT |
const std::map< std::string, int > | JOINT_NAMES |
const std::vector< std::string > | NAMES |
#define ARM_OFFSET 300 |
Definition at line 103 of file definitions.hpp.
#define AUX_OFFSET 110 |
Definition at line 105 of file definitions.hpp.
#define CLEAR | ( | ) | std::cerr << "\x1B[2J\x1B[H"; |
Definition at line 25 of file definitions.hpp.
#define DEBUG | ( | x | ) | std::cerr << "\033[22;34;1m" << x << "\033[0m"; |
Definition at line 24 of file definitions.hpp.
#define DEBUG_MODE false |
Definition at line 18 of file definitions.hpp.
#define ERR | ( | x | ) | std::cerr << "\033[22;31;1m" << x << "\033[0m"; |
Definition at line 21 of file definitions.hpp.
#define EYES_ANGRY 30 |
Definition at line 108 of file definitions.hpp.
#define EYES_EXCITED -40 |
Definition at line 110 of file definitions.hpp.
#define EYES_NORMAL 0 |
Definition at line 109 of file definitions.hpp.
#define EYES_OFFSET 300 |
Definition at line 104 of file definitions.hpp.
#define EYES_WIDE -120 |
Definition at line 111 of file definitions.hpp.
#define HIP_OFFSET 100 |
Definition at line 100 of file definitions.hpp.
#define INFO | ( | x | ) | std::cerr << "\033[22;37;1m" << x << "\033[0m"; |
Definition at line 23 of file definitions.hpp.
#define KNEE_OFFSET 110 |
Definition at line 102 of file definitions.hpp.
#define NOTE_A1 55 |
Definition at line 125 of file definitions.hpp.
#define NOTE_A2 110 |
Definition at line 137 of file definitions.hpp.
#define NOTE_A3 220 |
Definition at line 149 of file definitions.hpp.
#define NOTE_A4 440 |
Definition at line 161 of file definitions.hpp.
#define NOTE_A5 880 |
Definition at line 173 of file definitions.hpp.
#define NOTE_A6 1760 |
Definition at line 185 of file definitions.hpp.
#define NOTE_A7 3520 |
Definition at line 197 of file definitions.hpp.
#define NOTE_AS1 58 |
Definition at line 126 of file definitions.hpp.
#define NOTE_AS2 117 |
Definition at line 138 of file definitions.hpp.
#define NOTE_AS3 233 |
Definition at line 150 of file definitions.hpp.
#define NOTE_AS4 466 |
Definition at line 162 of file definitions.hpp.
#define NOTE_AS5 932 |
Definition at line 174 of file definitions.hpp.
#define NOTE_AS6 1865 |
Definition at line 186 of file definitions.hpp.
#define NOTE_AS7 3729 |
Definition at line 198 of file definitions.hpp.
#define NOTE_B0 31 |
Definition at line 115 of file definitions.hpp.
#define NOTE_B1 62 |
Definition at line 127 of file definitions.hpp.
#define NOTE_B2 123 |
Definition at line 139 of file definitions.hpp.
#define NOTE_B3 247 |
Definition at line 151 of file definitions.hpp.
#define NOTE_B4 494 |
Definition at line 163 of file definitions.hpp.
#define NOTE_B5 988 |
Definition at line 175 of file definitions.hpp.
#define NOTE_B6 1976 |
Definition at line 187 of file definitions.hpp.
#define NOTE_B7 3951 |
Definition at line 199 of file definitions.hpp.
#define NOTE_C1 33 |
Definition at line 116 of file definitions.hpp.
#define NOTE_C2 65 |
Definition at line 128 of file definitions.hpp.
#define NOTE_C3 131 |
Definition at line 140 of file definitions.hpp.
#define NOTE_C4 262 |
Definition at line 152 of file definitions.hpp.
#define NOTE_C5 523 |
Definition at line 164 of file definitions.hpp.
#define NOTE_C6 1047 |
Definition at line 176 of file definitions.hpp.
#define NOTE_C7 2093 |
Definition at line 188 of file definitions.hpp.
#define NOTE_C8 4186 |
Definition at line 200 of file definitions.hpp.
#define NOTE_CS1 35 |
Definition at line 117 of file definitions.hpp.
#define NOTE_CS2 69 |
Definition at line 129 of file definitions.hpp.
#define NOTE_CS3 139 |
Definition at line 141 of file definitions.hpp.
#define NOTE_CS4 277 |
Definition at line 153 of file definitions.hpp.
#define NOTE_CS5 554 |
Definition at line 165 of file definitions.hpp.
#define NOTE_CS6 1109 |
Definition at line 177 of file definitions.hpp.
#define NOTE_CS7 2217 |
Definition at line 189 of file definitions.hpp.
#define NOTE_CS8 4435 |
Definition at line 201 of file definitions.hpp.
#define NOTE_D1 37 |
Definition at line 118 of file definitions.hpp.
#define NOTE_D2 73 |
Definition at line 130 of file definitions.hpp.
#define NOTE_D3 147 |
Definition at line 142 of file definitions.hpp.
#define NOTE_D4 294 |
Definition at line 154 of file definitions.hpp.
#define NOTE_D5 587 |
Definition at line 166 of file definitions.hpp.
#define NOTE_D6 1175 |
Definition at line 178 of file definitions.hpp.
#define NOTE_D7 2349 |
Definition at line 190 of file definitions.hpp.
#define NOTE_D8 4699 |
Definition at line 202 of file definitions.hpp.
#define NOTE_DS1 39 |
Definition at line 119 of file definitions.hpp.
#define NOTE_DS2 78 |
Definition at line 131 of file definitions.hpp.
#define NOTE_DS3 156 |
Definition at line 143 of file definitions.hpp.
#define NOTE_DS4 311 |
Definition at line 155 of file definitions.hpp.
#define NOTE_DS5 622 |
Definition at line 167 of file definitions.hpp.
#define NOTE_DS6 1245 |
Definition at line 179 of file definitions.hpp.
#define NOTE_DS7 2489 |
Definition at line 191 of file definitions.hpp.
#define NOTE_DS8 4978 |
Definition at line 203 of file definitions.hpp.
#define NOTE_E1 41 |
Definition at line 120 of file definitions.hpp.
#define NOTE_E2 82 |
Definition at line 132 of file definitions.hpp.
#define NOTE_E3 165 |
Definition at line 144 of file definitions.hpp.
#define NOTE_E4 330 |
Definition at line 156 of file definitions.hpp.
#define NOTE_E5 659 |
Definition at line 168 of file definitions.hpp.
#define NOTE_E6 1319 |
Definition at line 180 of file definitions.hpp.
#define NOTE_E7 2637 |
Definition at line 192 of file definitions.hpp.
#define NOTE_F1 44 |
Definition at line 121 of file definitions.hpp.
#define NOTE_F2 87 |
Definition at line 133 of file definitions.hpp.
#define NOTE_F3 175 |
Definition at line 145 of file definitions.hpp.
#define NOTE_F4 349 |
Definition at line 157 of file definitions.hpp.
#define NOTE_F5 698 |
Definition at line 169 of file definitions.hpp.
#define NOTE_F6 1397 |
Definition at line 181 of file definitions.hpp.
#define NOTE_F7 2794 |
Definition at line 193 of file definitions.hpp.
#define NOTE_FS1 46 |
Definition at line 122 of file definitions.hpp.
#define NOTE_FS2 93 |
Definition at line 134 of file definitions.hpp.
#define NOTE_FS3 185 |
Definition at line 146 of file definitions.hpp.
#define NOTE_FS4 370 |
Definition at line 158 of file definitions.hpp.
#define NOTE_FS5 740 |
Definition at line 170 of file definitions.hpp.
#define NOTE_FS6 1480 |
Definition at line 182 of file definitions.hpp.
#define NOTE_FS7 2960 |
Definition at line 194 of file definitions.hpp.
#define NOTE_G1 49 |
Definition at line 123 of file definitions.hpp.
#define NOTE_G2 98 |
Definition at line 135 of file definitions.hpp.
#define NOTE_G3 196 |
Definition at line 147 of file definitions.hpp.
#define NOTE_G4 392 |
Definition at line 159 of file definitions.hpp.
#define NOTE_G5 784 |
Definition at line 171 of file definitions.hpp.
#define NOTE_G6 1568 |
Definition at line 183 of file definitions.hpp.
#define NOTE_G7 3136 |
Definition at line 195 of file definitions.hpp.
#define NOTE_GS1 52 |
Definition at line 124 of file definitions.hpp.
#define NOTE_GS2 104 |
Definition at line 136 of file definitions.hpp.
#define NOTE_GS3 208 |
Definition at line 148 of file definitions.hpp.
#define NOTE_GS4 415 |
Definition at line 160 of file definitions.hpp.
#define NOTE_GS5 831 |
Definition at line 172 of file definitions.hpp.
#define NOTE_GS6 1661 |
Definition at line 184 of file definitions.hpp.
#define NOTE_GS7 3322 |
Definition at line 196 of file definitions.hpp.
#define SILENCE 0 |
Definition at line 114 of file definitions.hpp.
#define TWIST_OFFSET 110 |
Definition at line 101 of file definitions.hpp.
#define WARN | ( | x | ) | std::cerr << "\033[22;33;1m" << x << "\033[0m"; |
Definition at line 22 of file definitions.hpp.
enum JOINTS |
Enumerator | |
---|---|
LHIP | |
LTWIST | |
LKNEE | |
RHIP | |
RTWIST | |
RKNEE | |
LARM | |
RARM | |
EYES | |
AUX1 | |
AUX2 | |
NUMJOINTS |
Definition at line 29 of file definitions.hpp.
|
inline |
Definition at line 27 of file definitions.hpp.
const std::vector<int> JOINT_DIR |
Definition at line 58 of file definitions.hpp.
const std::vector<int> JOINT_MULT |
Definition at line 72 of file definitions.hpp.
const std::map<std::string, int> JOINT_NAMES |
Definition at line 86 of file definitions.hpp.
const std::vector<std::string> NAMES |
Definition at line 44 of file definitions.hpp.