#include "../common/tactile_edc_ethercat_protocol.h"
#include "../common/ethercat_can_bridge_protocol.h"
#include "../common/common_edc_ethercat_protocol.h"
Go to the source code of this file.
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 0320_palm_edc_ethercat_protocol.h.
#define DIRECTION_FROM_MUSCLE 0x02 |
Definition at line 162 of file 0320_palm_edc_ethercat_protocol.h.
#define DIRECTION_TO_MUSCLE 0x01 |
Definition at line 161 of file 0320_palm_edc_ethercat_protocol.h.
#define ETHERCAT_COMMAND_0300_AGREED_SIZE 36 |
Definition at line 331 of file 0320_palm_edc_ethercat_protocol.h.
#define ETHERCAT_STATUS_0300_AGREED_SIZE 236 |
Definition at line 330 of file 0320_palm_edc_ethercat_protocol.h.
#define JOINTS_NUM_0320 ((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 262 of file 0320_palm_edc_ethercat_protocol.h.
#define MESSAGE_ID_MUSCLE_DRIVER_ID_SHIFT_POS 5 |
Bit number of lowest bit of MESSAGE_ID_MUSCLE_ID_BITS.
Definition at line 255 of file 0320_palm_edc_ethercat_protocol.h.
#define MUSCLE_DEMAND_VALVES_RANGE_MAX 0x4 |
Definition at line 159 of file 0320_palm_edc_ethercat_protocol.h.
#define MUSCLE_DEMAND_VALVES_RANGE_MIN -0x4 |
Definition at line 158 of file 0320_palm_edc_ethercat_protocol.h.
#define MUSCLE_FLAG_BITS_NO_DEMAND_SEEN 0x0400 |
Haven't received any demand messages for longer than NO_DEMAND_TIMEOUT_MS. Valves switched off.
Definition at line 115 of file 0320_palm_edc_ethercat_protocol.h.
#define MUSCLE_SYSTEM_RESET_KEY 0x5200 |
| Muscle board ID.
Definition at line 153 of file 0320_palm_edc_ethercat_protocol.h.
#define NUM_MUSCLE_DATA_PACKETS 8 |
Definition at line 54 of file 0320_palm_edc_ethercat_protocol.h.
#define NUM_MUSCLES 40 |
Definition at line 52 of file 0320_palm_edc_ethercat_protocol.h.
#define NUM_PRESSURE_SENSORS_PER_MESSAGE 5 |
Definition at line 53 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_EDC_NO_DEMAND_TIMEOUT_MS 20 |
If a muscle driver doesn't see any Torque or PWM demand values,
Definition at line 120 of file 0320_palm_edc_ethercat_protocol.h.
Definition at line 118 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_CAN_BRIDGE_DATA_COMMAND_ADDRESS (PALM_0300_ETHERCAT_COMMAND_DATA_ADDRESS + PALM_0300_ETHERCAT_COMMAND_DATA_SIZE) |
Definition at line 347 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_CAN_BRIDGE_DATA_STATUS_ADDRESS (PALM_0300_ETHERCAT_STATUS_DATA_ADDRESS + PALM_0300_ETHERCAT_STATUS_DATA_SIZE) |
Definition at line 350 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_COMMAND_DATA_ADDRESS 0x1000 |
| ETHERCAT_COMMAND_DATA | ETHERCAT_CAN_BRIDGE_DATA_COMMAND | ETHERCAT_STATUS_DATA | ETHERCAT_CAN_BRIDGE_DATA_STATUS | | | | | | | | ETHERCAT_CAN_BRIDGE_DATA_STATUS_ADDRESS | | | | | ETHERCAT_STATUS_DATA_ADDRESS | | | ETHERCAT_CAN_BRIDGE_DATA_COMMAND_ADDRESS | ETHERCAT_COMMAND_DATA_ADDRESS
Definition at line 346 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_COMMAND_DATA_SIZE sizeof(ETHERCAT_DATA_STRUCTURE_0300_PALM_EDC_COMMAND) |
Definition at line 323 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_COMMAND_HEADER_SIZE ( sizeof(EDC_COMMAND) + sizeof(FROM_MUSCLE_DATA_TYPE) + sizeof(int16s) ) |
Definition at line 320 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_STATUS_DATA_ADDRESS (PALM_0300_ETHERCAT_CAN_BRIDGE_DATA_COMMAND_ADDRESS + ETHERCAT_CAN_BRIDGE_DATA_SIZE) |
Definition at line 349 of file 0320_palm_edc_ethercat_protocol.h.
#define PALM_0300_ETHERCAT_STATUS_DATA_SIZE sizeof(ETHERCAT_DATA_STRUCTURE_0300_PALM_EDC_STATUS) |
Definition at line 322 of file 0320_palm_edc_ethercat_protocol.h.
#define SENSORS_NUM_0320 ((int)36) |
The number of sensors in the robot.
Definition at line 259 of file 0320_palm_edc_ethercat_protocol.h.
Definition at line 65 of file 0320_palm_edc_ethercat_protocol.h.
Definition at line 84 of file 0320_palm_edc_ethercat_protocol.h.
enum TO_MUSCLE_DATA_TYPE |
The host can send different types of data to the muscle drivers. These can be either control demands, system messages. These values are inserted into bits [3..0] of the message ID in the muscle driver data message.
Definition at line 145 of file 0320_palm_edc_ethercat_protocol.h.
const char* palm_0300_edc_error_flag_names[16] [static] |
{ "No demand seen for more than 20ms",
}
how long, in milliseconds, before it switches off the valves.
These are the names of the bits in the MUSCLE_DATA_FLAGS. error_flag_names[n] is the name of bit 'n' in MUSCLE_DATA_FLAGS.
Definition at line 127 of file 0320_palm_edc_ethercat_protocol.h.
const char* to_muscle_data_type_names[16] [static] |
{ "INVALID", "Demand: Valves", }
These are the human-readable names of the different types of data. you can send to the muscle drivers.
Definition at line 169 of file 0320_palm_edc_ethercat_protocol.h.