From e5b219fb2594066c883c2471311bde0e0b15882a Mon Sep 17 00:00:00 2001 From: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com> Date: Thu, 4 Jul 2024 19:56:45 +0900 Subject: [PATCH] feat(tier4_autoware_msgs): add timenode.msg and timetree.msg (#137) * feat(tier4_autoware_msgs): add TimeNode.msg and TimeTree.msg Signed-off-by: Y.Hisaki * rename Signed-off-by: Y.Hisaki * fix miss Signed-off-by: Y.Hisaki --------- Signed-off-by: Y.Hisaki --- tier4_debug_msgs/CMakeLists.txt | 4 +++- tier4_debug_msgs/msg/ProcessingTimeNode.msg | 8 ++++++++ tier4_debug_msgs/msg/ProcessingTimeTree.msg | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tier4_debug_msgs/msg/ProcessingTimeNode.msg create mode 100644 tier4_debug_msgs/msg/ProcessingTimeTree.msg diff --git a/tier4_debug_msgs/CMakeLists.txt b/tier4_debug_msgs/CMakeLists.txt index e08adfdf..c82be471 100644 --- a/tier4_debug_msgs/CMakeLists.txt +++ b/tier4_debug_msgs/CMakeLists.txt @@ -27,8 +27,10 @@ rosidl_generate_interfaces(${PROJECT_NAME} "msg/Int64Stamped.msg" "msg/Int64MultiArrayStamped.msg" "msg/StringStamped.msg" + "msg/ProcessingTimeNode.msg" + "msg/ProcessingTimeTree.msg" DEPENDENCIES - builtin_interfaces + builtin_interfaces ) if(BUILD_TESTING) diff --git a/tier4_debug_msgs/msg/ProcessingTimeNode.msg b/tier4_debug_msgs/msg/ProcessingTimeNode.msg new file mode 100644 index 00000000..04428b41 --- /dev/null +++ b/tier4_debug_msgs/msg/ProcessingTimeNode.msg @@ -0,0 +1,8 @@ +# Unique ID of the node +int32 id +# Name of the node +string name +# Processing time of the node +float64 processing_time +# ID of the parent node, 0 if no parent +int32 parent_id diff --git a/tier4_debug_msgs/msg/ProcessingTimeTree.msg b/tier4_debug_msgs/msg/ProcessingTimeTree.msg new file mode 100644 index 00000000..0e7be75d --- /dev/null +++ b/tier4_debug_msgs/msg/ProcessingTimeTree.msg @@ -0,0 +1,2 @@ +# Array of all time nodes +ProcessingTimeNode[] nodes