Go to the source code of this file.
Macros | |
#define | INSERT_CRC_CALCULATION_HERE |
#define | JOINTS_NUM_0X20 ((int)28) |
This needs to be a #define because it's used to dimension an array. More... | |
#define | MESSAGE_ID_ACK_BIT 0b00000010000 |
Bit mask specifying which bits of the CAN message ID are used for the ACK bit (only for bootloading) More... | |
#define | MESSAGE_ID_DIRECTION_BITS 0b11000000000 |
Bit mask specifying which bits of the CAN message ID are used for the MESSAGE_DIRECTION. More... | |
#define | MESSAGE_ID_DIRECTION_SHIFT_POS 9 |
Bit number of lowest bit of MESSAGE_ID_DIRECTION_BITS. More... | |
#define | MESSAGE_ID_MOTOR_ID_BITS 0b00111100000 |
Bit mask specifying which bits of the CAN message ID are used for the motor ID [0..9]. More... | |
#define | MESSAGE_ID_TYPE_BITS 0b00000001111 |
Bit mask specifying which bits of the CAN message ID are used for the TO_MOTOR_DATA_TYPE or FROM_MOTOR_DATA_TYPE. More... | |
#define | SENSORS_NUM_0X20 ((int)36) |
Enumerations | |
enum | EDC_COMMAND { EDC_COMMAND_INVALID = 0, EDC_COMMAND_SENSOR_DATA, EDC_COMMAND_SENSOR_CHANNEL_NUMBERS, EDC_COMMAND_SENSOR_ADC_CHANNEL_CS, EDC_COMMAND_CAN_DIRECT_MODE } |
The host can request different types of data from the palm. More... | |
enum | HARD_CONFIGURATION_INFORMATION { PALM_SVN_VERSION = 0, SERVER_SVN_VERSION = 1 } |
enum | MESSAGE_DIRECTION { DIRECTION_DATA_REQUEST = 0x0, DIRECTION_TO_MOTOR = 0x1, DIRECTION_FROM_MOTOR = 0x2, DIRECTION_BOOTLOADER = 0x3 } |
enum | SENSOR_NAME_ENUM { FFJ1 =0, FFJ2, FFJ3, FFJ4, MFJ1, MFJ2, MFJ3, MFJ4, RFJ1, RFJ2, RFJ3, RFJ4, LFJ1, LFJ2, LFJ3, LFJ4, LFJ5, THJ1, THJ2, THJ3, THJ4, THJ5A, THJ5B, WRJ1A, WRJ1B, WRJ2, ACCX, ACCY, ACCZ, GYRX, GYRY, GYRZ, ANA0, ANA1, ANA2, ANA3, IGNORE } |
This enum defines which ADC reading goes into which sensors[]. More... | |
Variables | |
static const char * | joint_names [JOINTS_NUM_0X20] |
This needs to be a #define for symmetry with SENSORS_NUM. More... | |
static const char * | sensor_names [SENSORS_NUM_0X20] |
This array defines the names of the joints. The names and order should match the enum SENSOR_NAMES_ENUM. More... | |
static const char * | slow_data_types [17] |
The term "Command" means data going from the ROS PC to the Node on the robot Previously known as "Incoming"
The term "Status" means data going from Node on the robot the to the ROS PC Previously known as "Outgoing"
Definition in file common_edc_ethercat_protocol.h.
#define INSERT_CRC_CALCULATION_HERE |
Definition at line 171 of file common_edc_ethercat_protocol.h.
#define JOINTS_NUM_0X20 ((int)28) |
This needs to be a #define because it's used to dimension an array.
The number of joints in the hand
Definition at line 112 of file common_edc_ethercat_protocol.h.
#define MESSAGE_ID_ACK_BIT 0b00000010000 |
Bit mask specifying which bits of the CAN message ID are used for the ACK bit (only for bootloading)
Definition at line 100 of file common_edc_ethercat_protocol.h.
#define MESSAGE_ID_DIRECTION_BITS 0b11000000000 |
Bit mask specifying which bits of the CAN message ID are used for the MESSAGE_DIRECTION.
Definition at line 98 of file common_edc_ethercat_protocol.h.
#define MESSAGE_ID_DIRECTION_SHIFT_POS 9 |
Bit number of lowest bit of MESSAGE_ID_DIRECTION_BITS.
Definition at line 104 of file common_edc_ethercat_protocol.h.
#define MESSAGE_ID_MOTOR_ID_BITS 0b00111100000 |
Bit mask specifying which bits of the CAN message ID are used for the motor ID [0..9].
Definition at line 99 of file common_edc_ethercat_protocol.h.
#define MESSAGE_ID_TYPE_BITS 0b00000001111 |
Bit mask specifying which bits of the CAN message ID are used for the TO_MOTOR_DATA_TYPE or FROM_MOTOR_DATA_TYPE.
Definition at line 101 of file common_edc_ethercat_protocol.h.
#define SENSORS_NUM_0X20 ((int)36) |
The number of sensors in the robot.
Definition at line 108 of file common_edc_ethercat_protocol.h.
enum EDC_COMMAND |
The host can request different types of data from the palm.
Definition at line 48 of file common_edc_ethercat_protocol.h.
Enumerator | |
---|---|
PALM_SVN_VERSION | |
SERVER_SVN_VERSION |
Definition at line 163 of file common_edc_ethercat_protocol.h.
enum MESSAGE_DIRECTION |
This represents the top two bits [10..9] of the CAN message ID. These bits tell us the type of the message.
Definition at line 89 of file common_edc_ethercat_protocol.h.
enum SENSOR_NAME_ENUM |
This enum defines which ADC reading goes into which sensors[].
Definition at line 144 of file common_edc_ethercat_protocol.h.
|
static |
This needs to be a #define for symmetry with SENSORS_NUM.
Definition at line 119 of file common_edc_ethercat_protocol.h.
|
static |
This array defines the names of the joints. The names and order should match the enum SENSOR_NAMES_ENUM.
Definition at line 130 of file common_edc_ethercat_protocol.h.
|
static |
Definition at line 63 of file common_edc_ethercat_protocol.h.