Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ros_monitoring_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ add_message_files(
MetricDimension.msg
MetricData.msg
MetricList.msg
MetricUnit.msg
)

## Generate added messages and services with any dependencies listed here
Expand Down
19 changes: 0 additions & 19 deletions ros_monitoring_msgs/msg/MetricData.msg
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
std_msgs/Header header

# Constants for commonly used units
string UNIT_SEC=sec
string UNIT_MILLI_SEC=msec
string UNIT_MICRO_SEC=usec
string UNIT_PERCENTAGE=percent
string UNIT_COUNT=count
string UNIT_COUNT_PER_SEC=count_per_sec
string UNIT_BYTES=bytes
string UNIT_KILOBYTES=kilobytes
string UNIT_MEGABYTES=megabytes
string UNIT_GIGABYTES=gigabytes
string UNIT_TERABYTES=terabytes
string UNIT_BYTES_PER_SEC=bytes_per_sec
string UNIT_KILOBYTES_PER_SEC=kilobytes_per_sec
string UNIT_MEGABYTES_PER_SEC=megabytes_per_sec
string UNIT_GIGABYTES_PER_SEC=gigabytes_per_sec
string UNIT_TERABYTES_PER_SEC=terabytes_per_sec
string UNIT_NONE=none

# Constant for NA string
string NA_STRING=non_applicable_string_value

Expand Down
1 change: 1 addition & 0 deletions ros_monitoring_msgs/msg/MetricList.msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
###################################

MetricData[] metrics

43 changes: 43 additions & 0 deletions ros_monitoring_msgs/msg/MetricUnit.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

# Constants for commonly used units
string UNIT_SEC=sec
string UNIT_MILLI_SEC=msec
string UNIT_MICRO_SEC=usec
string UNIT_PERCENTAGE=percent
string UNIT_COUNT=count
string UNIT_COUNT_PER_SEC=count_per_sec
string UNIT_BYTES=bytes
string UNIT_KILOBYTES=kilobytes
string UNIT_MEGABYTES=megabytes
string UNIT_GIGABYTES=gigabytes
string UNIT_TERABYTES=terabytes
string UNIT_BYTES_PER_SEC=bytes_per_sec
string UNIT_KILOBYTES_PER_SEC=kilobytes_per_sec
string UNIT_MEGABYTES_PER_SEC=megabytes_per_sec
string UNIT_GIGABYTES_PER_SEC=gigabytes_per_sec
string UNIT_TERABYTES_PER_SEC=terabytes_per_sec

# Units for temperature
string UNIT_DEGREE_FAHRENHEIT=degree_fahrenheit
string UNIT_DEGREE_CELCIUS=degree_celcius
string UNIT_KELVIN=kelvin

# Units for length
string UNIT_METER=meter
string UNIT_CENTIMETER=centimeter

# Units of angle
string UNIT_RADIAN=radian
string UNIT_DEGREE=degree

# Units of speed/velocity
string UNIT_METER_PER_SEC=meter_per_sec
string UNIT_RADIAN_PER_SEC=radian_per_sec

# Units of power
string UNIT_CURRENT=amphere
string UNIT_VOLTS=volt
string UNIT_POWER=watt


string UNIT_NONE=none