Skip to content

Commit

Permalink
Merge branch 'tier4/universe' into feature/add-mrm-pull-over-msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsudome-r authored Mar 22, 2024
2 parents 4ac6e31 + dd006f2 commit 39f7a7f
Show file tree
Hide file tree
Showing 13 changed files with 2,149 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tier4_system_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/DiagnosticGraph.msg"
"msg/DiagnosticLink.msg"
"msg/DiagnosticNode.msg"
"msg/DiagGraphStruct.msg"
"msg/DiagGraphStatus.msg"
"msg/DiagNodeStruct.msg"
"msg/DiagNodeStatus.msg"
"msg/DiagLeafStruct.msg"
"msg/DiagLeafStatus.msg"
"msg/DiagLinkStruct.msg"
"msg/DiagLinkStatus.msg"
"msg/OperationModeAvailability.msg"
"msg/EmergencyGoalsClearCommand.msg"
"msg/EmergencyGoalsStamped.msg"
Expand Down
14 changes: 14 additions & 0 deletions tier4_system_msgs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# tier4_system_msgs

## Diagnostic graph messages

See [this page](./doc/diagnostic-graph.md) for the following diagnostic graph messages.

- DiagGraphStatus
- DiagGraphStruct
- DiagLeafStatus
- DiagLeafStruct
- DiagLinkStatus
- DiagLinkStruct
- DiagNodeStatus
- DiagNodeStruct
1,465 changes: 1,465 additions & 0 deletions tier4_system_msgs/doc/diagnostic-graph-data.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
625 changes: 625 additions & 0 deletions tier4_system_msgs/doc/diagnostic-graph-tree.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tier4_system_msgs/doc/diagnostic-graph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Diagnostic graph messages

These are messages that represent aggregated diagnostic graphs.
Diagnostic graph structure is static, so it is published only once as the DiagGraphStruct.
And diagnostic status that changes dynamically is periodically published as the DiagGraphStatus.
The DiagGraphStruct and DiagGraphStatus have the list of nodes and links, and their indices correspond.

## Sample graph

![diagnostic-graph-tree](./diagnostic-graph-tree.drawio.svg)

## Sample message

![diagnostic-graph-data](./diagnostic-graph-data.drawio.svg)
4 changes: 4 additions & 0 deletions tier4_system_msgs/msg/DiagGraphStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
builtin_interfaces/Time stamp
tier4_system_msgs/DiagNodeStatus[] nodes
tier4_system_msgs/DiagLeafStatus[] diags
tier4_system_msgs/DiagLinkStatus[] links
4 changes: 4 additions & 0 deletions tier4_system_msgs/msg/DiagGraphStruct.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
builtin_interfaces/Time stamp
tier4_system_msgs/DiagNodeStruct[] nodes
tier4_system_msgs/DiagLeafStruct[] diags
tier4_system_msgs/DiagLinkStruct[] links
4 changes: 4 additions & 0 deletions tier4_system_msgs/msg/DiagLeafStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
byte level
string message
string hardware_id
diagnostic_msgs/KeyValue[] values
2 changes: 2 additions & 0 deletions tier4_system_msgs/msg/DiagLeafStruct.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string path
string name
1 change: 1 addition & 0 deletions tier4_system_msgs/msg/DiagLinkStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bool used
6 changes: 6 additions & 0 deletions tier4_system_msgs/msg/DiagLinkStruct.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# The index of nodes/diags in the graph struct message.
uint32 parent
uint32 child

# Whether the child is a leaf, The parent is always not.
bool is_leaf
1 change: 1 addition & 0 deletions tier4_system_msgs/msg/DiagNodeStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
byte level
1 change: 1 addition & 0 deletions tier4_system_msgs/msg/DiagNodeStruct.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
string path

0 comments on commit 39f7a7f

Please sign in to comment.