Please read the rmp user manual (for instance, page 53 of the RMP 440LE manual)
typedef std::vector<uint8_t> segway::Bytes |
typedef std::vector<std::string> segway::FaultDecodeList |
Definition at line 158 of file RmpFault.h.
typedef std::vector<FaultPacking> segway::FaultPackingList |
Definition at line 156 of file RmpFault.h.
typedef std::vector<std::string> segway::FaultStatusDescription |
Definition at line 53 of file RmpFault.h.
typedef std::vector<UserDefinedFeedbackType> segway::FeedbackTypeList |
Definition at line 157 of file RmpFault.h.
enum segway::FaultGroup |
Define fault group type Please read the rmp user manual (for instance, page 73 of the RMP 440LE manual)
Definition at line 59 of file RmpFault.h.
enum segway::LogLevel |
Descibe the severity level of the log
Definition at line 52 of file RmpLogger.h.
Define Operational States Please read the rmp user manual (for instance, page 61 of the RMP 440LE manual)
Definition at line 79 of file RmpUserDefinedFeedbackType.h.
enum segway::RmpAudioSong |
Define Audio Songs Please read the rmp user manual (for instance, page 51 of the RMP 440LE manual)
Definition at line 98 of file RmpConfigurationCommand.h.
Define Rmp Configuration Command Ids Please read the rmp user manual (for instance, page 53 of the RMP 440LE manual)
Definition at line 50 of file RmpConfigurationCommand.h.
enum segway::RmpMessageId |
Define Rmp Message Ids Please read the rmp user manual (for instance, page 38 of the RMP 440LE manual)
Definition at line 48 of file RmpMessage.h.
Define Rmp Operational Mode Requests Please read the rmp user manual (for instance, page 51 of the RMP 440LE manual)
Definition at line 85 of file RmpConfigurationCommand.h.
Define Reset Integrator Bitmaps Please read the rmp user manual (for instance, page 52 of the RMP 440LE manual)
RESET_LINEAR_POSITION | |
RESET_RIGHT_FRONT_POSITION | |
RESET_LEFT_FRONT_POSITION | |
RESET_RIGHT_REAR_POSITION | |
RESET_LEFT_REAR_POSITION | |
RESET_ALL_POSITION_DATA |
Definition at line 123 of file RmpConfigurationCommand.h.
Define User Defined Feedback Bitmap Types Please read the rmp user manual (for instance, page 53 of the RMP 440LE manual)
USER_DEFINED_FEEDBACK_BITMAP_1 | |
USER_DEFINED_FEEDBACK_BITMAP_2 | |
USER_DEFINED_FEEDBACK_BITMAP_3 | |
USER_DEFINED_FEEDBACK_BITMAP_4 |
Definition at line 67 of file RmpUserDefinedFeedbackType.h.
Define User Defined Feedback Types Please read the rmp user manual (for instance, page 61 of the RMP 440LE manual)
Definition at line 93 of file RmpUserDefinedFeedbackType.h.
void segway::AppendCrc16 | ( | Bytes & | rBytes | ) | [inline] |
Append checksum at the end of byte vector
rBytes | byte vector |
Definition at line 245 of file RmpHelper.h.
uint16_t segway::ConvertBytesToUint16 | ( | const uint8_t * | pByte, |
size_t | size | ||
) | [inline] |
Convert a byte array to a 16 bits unsigned integer
pByte | byte array |
size | size of the array |
Definition at line 94 of file RmpHelper.h.
uint32_t segway::ConvertBytesToUint32 | ( | const uint8_t * | pByte, |
size_t | size | ||
) | [inline] |
Convert a byte array to a 32 bits unsigned integer
pByte | byte array |
size | size of the array |
Definition at line 108 of file RmpHelper.h.
void segway::ConvertCommandToBytes | ( | uint16_t | commandId, |
uint32_t | value1, | ||
uint32_t | value2, | ||
Bytes & | rBytes | ||
) | [inline] |
Convert a rmp command to a byte vector
commandId | command id |
value1 | first value |
value2 | second value |
rBytes | returned byte vector |
Definition at line 145 of file RmpHelper.h.
uint32_t segway::ConvertFloatToUint32 | ( | float | data | ) | [inline] |
Convert a float to a 32 bits unsigned integer
data | float |
Definition at line 123 of file RmpHelper.h.
void segway::ConvertUint16ToBytes | ( | const uint16_t & | rData, |
uint8_t * | pByte, | ||
size_t | size | ||
) | [inline] |
Convert a 16 bits unsigned integer to a byte array
rData | data to convert |
pByte | byte array (should already be allocated) |
size | size of the array |
Definition at line 64 of file RmpHelper.h.
void segway::ConvertUint32ToBytes | ( | const uint32_t & | rData, |
uint8_t * | pByte, | ||
size_t | size | ||
) | [inline] |
Convert a 32 bits unsigned integer to a byte array
rData | data to convert |
pByte | byte array (should already be allocated) |
size | size of the array |
Definition at line 78 of file RmpHelper.h.
float segway::ConvertUint32ToFloat | ( | uint32_t | data | ) | [inline] |
Convert a 32 bits unsigned integer to a float
data | 32 bits unsigned integer |
Definition at line 133 of file RmpHelper.h.
uint16_t segway::GetCrc | ( | Bytes & | rBytes, |
size_t | size | ||
) | [inline] |
Compute the checksum of a byte vector
rBytes | byte vector |
size | number of bytes to check |
Definition at line 224 of file RmpHelper.h.
std::string segway::GetLogLevelString | ( | LogLevel | level | ) |
Definition at line 167 of file RmpLogger.cpp.
void segway::InitializeFaultDecodeList | ( | FaultDecodeList & | rDecodeList, |
unsigned int | argumentCount, | ||
... | |||
) |
Definition at line 47 of file RmpFault.cpp.
bool segway::IsCrcValid | ( | Bytes & | rBytes, |
size_t | size | ||
) | [inline] |
Check data integrity
rBytes | byte vector |
size | size of the data to check |
Definition at line 261 of file RmpHelper.h.
const unsigned int segway::BAUD_RATE = 115200 [static] |
Definition at line 54 of file RmpUsb.cpp.
const unsigned int segway::CHARACTER_SIZE = 8 [static] |
Definition at line 55 of file RmpUsb.cpp.
const uint16_t segway::CRC_ADJUSTMENT = 0xA001 [static] |
Definition at line 54 of file RmpHelper.h.
const size_t segway::CRC_FEEDBACK_SIZE = sizeof(uint32_t) [static] |
Definition at line 56 of file RmpHelper.h.
const size_t segway::CRC_SIZE = sizeof(uint16_t) [static] |
Definition at line 55 of file RmpHelper.h.
const size_t segway::CRC_TABLE_SIZE = 256 [static] |
Definition at line 53 of file RmpHelper.h.
const size_t segway::FEEDBACK_TYPE_NBR = 4 [static] |
Definition at line 47 of file RmpUserDefinedFeedbackType.h.
const size_t segway::FORCE_CONFIG_FEEDBACK_1_IDX = 16 [static] |
Definition at line 54 of file RmpUserDefinedFeedbackType.h.
const size_t segway::FORCE_CONFIG_FEEDBACK_2_IDX = 17 [static] |
Definition at line 55 of file RmpUserDefinedFeedbackType.h.
const size_t segway::FORCE_CONFIG_FEEDBACK_3_IDX = 18 [static] |
Definition at line 56 of file RmpUserDefinedFeedbackType.h.
const size_t segway::FORCE_CONFIG_FEEDBACK_4_IDX = 19 [static] |
Definition at line 57 of file RmpUserDefinedFeedbackType.h.
const size_t segway::MAX_ENTRIES_PER_FEEDBACK = 32 [static] |
Definition at line 48 of file RmpUserDefinedFeedbackType.h.
const size_t segway::MAX_FEEDBACK_ENTRIES = FEEDBACK_TYPE_NBR * MAX_ENTRIES_PER_FEEDBACK [static] |
Definition at line 49 of file RmpUserDefinedFeedbackType.h.
static const size_t segway::MAX_RCV_SIZE = 1024 [static] |
Definition at line 58 of file RmpUdp.cpp.
const size_t segway::MAX_TRIAL_NBR = 7 [static] |
Definition at line 56 of file RmpInterface.cpp.
const uint32_t segway::NO_FAULT = 0x00000000 [static] |
Definition at line 51 of file RmpFault.h.
const size_t segway::NVM_CONFIG_PARAM_NBR = 20 [static] |
Definition at line 51 of file RmpUserDefinedFeedbackType.h.
const size_t segway::NVM_CONFIG_PARAM_SIZE = NVM_CONFIG_PARAM_NBR * sizeof(uint32_t) [static] |
Definition at line 52 of file RmpUserDefinedFeedbackType.h.
const uint32_t segway::PSE1_VALID = 0x00000001 [static] |
Definition at line 59 of file RmpUserDefinedFeedbackType.h.
const uint32_t segway::PSE2_VALID = 0x00000002 [static] |
Definition at line 60 of file RmpUserDefinedFeedbackType.h.
const uint32_t segway::PSE_VALID = PSE1_VALID | PSE2_VALID [static] |
Definition at line 61 of file RmpUserDefinedFeedbackType.h.
const size_t segway::RMP_CMD_BODY_SIZE = sizeof(uint16_t) + 2 * sizeof(uint32_t) [static] |
Definition at line 48 of file RmpHelper.h.
const size_t segway::RMP_CMD_HEADER_IDX = 0 [static] |
Definition at line 49 of file RmpHelper.h.
const size_t segway::RMP_CMD_VAL1_IDX = sizeof(uint16_t) [static] |
Definition at line 50 of file RmpHelper.h.
const size_t segway::RMP_CMD_VAL2_IDX = sizeof(uint16_t) + sizeof(uint32_t) [static] |
Definition at line 51 of file RmpHelper.h.
boost::mutex segway::s_Mutex [static] |
Definition at line 50 of file RmpLogger.cpp.
static const long segway::TIMEOUT = 30 [static] |
Definition at line 59 of file RmpUdp.cpp.