Skip to content

Commit

Permalink
Add message definition for ToolData.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Engelhard authored and gavanderhoorn committed Dec 29, 2016
1 parent a58f4b5 commit b26b61d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions ur_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ add_message_files(
IOStates.msg
RobotStateRTMsg.msg
MasterboardDataMsg.msg
ToolDataMsg.msg
)

## Generate services in the 'srv' folder
Expand Down
20 changes: 20 additions & 0 deletions ur_msgs/msg/ToolDataMsg.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This data structure contains the ToolData structure
# used by the Universal Robots controller

int8 ANALOG_INPUT_RANGE_CURRENT = 0
int8 ANALOG_INPUT_RANGE_VOLTAGE = 1

int8 analog_input_range2 # one of ANALOG_INPUT_RANGE_*
int8 analog_input_range3 # one of ANALOG_INPUT_RANGE_*
float64 analog_input2
float64 analog_input3
float32 tool_voltage_48v
uint8 tool_output_voltage
float32 tool_current
float32 tool_temperature

uint8 TOOL_BOOTLOADER_MODE = 249
uint8 TOOL_RUNNING_MODE = 253
uint8 TOOL_IDLE_MODE = 255

uint8 tool_mode # one of TOOL_*

0 comments on commit b26b61d

Please sign in to comment.