Skip to content

Commit

Permalink
Add skeleton for GetActiveAlarmInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
gavanderhoorn committed Sep 8, 2023
1 parent 867f77e commit 0c7f4fc
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ find_package(rosidl_default_generators REQUIRED)
find_package(trajectory_msgs REQUIRED)

set(msg_files
msg/AlarmInfo.msg
msg/IoResultCodes.msg
msg/MotionReadyEnum.msg
msg/QueueResultEnum.msg
msg/SelectionResultCodes.msg
)

set(srv_files
srv/GetActiveAlarmInfo.srv
srv/QueueTrajPoint.srv
srv/ReadMRegister.srv
srv/ReadSingleIO.srv
Expand Down
25 changes: 25 additions & 0 deletions msg/AlarmInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Alarm Number
int32 number

# Sub Code
int32 sub_code

# Alarm Name/Message
string name

# Contents
string contents

# Meaning
string description

# Cause, Remedy and Notes for Cause-Remedy pairs
#motoros2_interfaces/msg/CauseRemedyPair[] cause_remedy
# # Cause
# string cause
#
# # Remedy
# string remedy
#
# # Notes
# string notes
25 changes: 25 additions & 0 deletions srv/GetActiveAlarmInfo.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# empty request (service returns information about all active alarms & errors).

---

# Result of the service invocation. Values other than one (1) signal failure.
#
# NOTE: future versions of this service may use a different set of result codes
uint32 result_code

# string representation of the value in 'result_code', for humans
string message

# Each entry in this list provides detailed information about all currently
# active alarms. If this list is empty, there are no active alarms.
#
# Note: order of entries in this list does not encode for any specific severity
# or priority of active alarms.
motoros2_interfaces/AlarmInfo[] alarms

# Each entry in this list provides detailed information about all currently
# active errors. If this list is empty, there are no active errors.
#
# Note: order of entries in this list does not encode for any specific severity
# or priority of active errors.
motoros2_interfaces/AlarmInfo[] errors

0 comments on commit 0c7f4fc

Please sign in to comment.