From d0c0bc35f1b792fc4dc903a5dcef5fe9c0d969c7 Mon Sep 17 00:00:00 2001 From: liu cui Date: Fri, 20 Dec 2024 14:11:19 +0800 Subject: [PATCH] feat(autoware_debug_msgs): move messages from tier4_debug_msgs Signed-off-by: liu cui --- autoware_debug_msgs/CMakeLists.txt | 41 +++++++++++++++++++ autoware_debug_msgs/msg/BoolStamped.msg | 2 + .../msg/Float32MultiArrayStamped.msg | 3 ++ autoware_debug_msgs/msg/Float32Stamped.msg | 2 + .../msg/Float64MultiArrayStamped.msg | 3 ++ autoware_debug_msgs/msg/Float64Stamped.msg | 2 + .../msg/Int32MultiArrayStamped.msg | 3 ++ autoware_debug_msgs/msg/Int32Stamped.msg | 2 + .../msg/Int64MultiArrayStamped.msg | 3 ++ autoware_debug_msgs/msg/Int64Stamped.msg | 2 + .../msg/MultiArrayDimension.msg | 11 +++++ autoware_debug_msgs/msg/MultiArrayLayout.msg | 34 +++++++++++++++ .../msg/ProcessingTimeNode.msg | 10 +++++ .../msg/ProcessingTimeTree.msg | 2 + autoware_debug_msgs/msg/StringStamped.msg | 2 + autoware_debug_msgs/package.xml | 27 ++++++++++++ 16 files changed, 149 insertions(+) create mode 100644 autoware_debug_msgs/CMakeLists.txt create mode 100644 autoware_debug_msgs/msg/BoolStamped.msg create mode 100644 autoware_debug_msgs/msg/Float32MultiArrayStamped.msg create mode 100644 autoware_debug_msgs/msg/Float32Stamped.msg create mode 100644 autoware_debug_msgs/msg/Float64MultiArrayStamped.msg create mode 100644 autoware_debug_msgs/msg/Float64Stamped.msg create mode 100644 autoware_debug_msgs/msg/Int32MultiArrayStamped.msg create mode 100644 autoware_debug_msgs/msg/Int32Stamped.msg create mode 100644 autoware_debug_msgs/msg/Int64MultiArrayStamped.msg create mode 100644 autoware_debug_msgs/msg/Int64Stamped.msg create mode 100644 autoware_debug_msgs/msg/MultiArrayDimension.msg create mode 100644 autoware_debug_msgs/msg/MultiArrayLayout.msg create mode 100644 autoware_debug_msgs/msg/ProcessingTimeNode.msg create mode 100644 autoware_debug_msgs/msg/ProcessingTimeTree.msg create mode 100644 autoware_debug_msgs/msg/StringStamped.msg create mode 100644 autoware_debug_msgs/package.xml diff --git a/autoware_debug_msgs/CMakeLists.txt b/autoware_debug_msgs/CMakeLists.txt new file mode 100644 index 0000000..07f3d40 --- /dev/null +++ b/autoware_debug_msgs/CMakeLists.txt @@ -0,0 +1,41 @@ +cmake_minimum_required(VERSION 3.5) +project(autoware_debug_msgs) + +if(NOT CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_EXTENSIONS OFF) +endif() + +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Wpedantic) +endif() + +find_package(ament_cmake_auto REQUIRED) +ament_auto_find_build_dependencies() + +rosidl_generate_interfaces(${PROJECT_NAME} + "msg/MultiArrayDimension.msg" + "msg/MultiArrayLayout.msg" + "msg/BoolStamped.msg" + "msg/Float32Stamped.msg" + "msg/Float32MultiArrayStamped.msg" + "msg/Float64Stamped.msg" + "msg/Float64MultiArrayStamped.msg" + "msg/Int32Stamped.msg" + "msg/Int32MultiArrayStamped.msg" + "msg/Int64Stamped.msg" + "msg/Int64MultiArrayStamped.msg" + "msg/StringStamped.msg" + "msg/ProcessingTimeNode.msg" + "msg/ProcessingTimeTree.msg" + DEPENDENCIES + builtin_interfaces +) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + ament_lint_auto_find_test_dependencies() +endif() + +ament_auto_package() diff --git a/autoware_debug_msgs/msg/BoolStamped.msg b/autoware_debug_msgs/msg/BoolStamped.msg new file mode 100644 index 0000000..edb7a41 --- /dev/null +++ b/autoware_debug_msgs/msg/BoolStamped.msg @@ -0,0 +1,2 @@ +builtin_interfaces/Time stamp +bool data diff --git a/autoware_debug_msgs/msg/Float32MultiArrayStamped.msg b/autoware_debug_msgs/msg/Float32MultiArrayStamped.msg new file mode 100644 index 0000000..8efeba9 --- /dev/null +++ b/autoware_debug_msgs/msg/Float32MultiArrayStamped.msg @@ -0,0 +1,3 @@ +builtin_interfaces/Time stamp +autoware_debug_msgs/MultiArrayLayout layout +float32[] data diff --git a/autoware_debug_msgs/msg/Float32Stamped.msg b/autoware_debug_msgs/msg/Float32Stamped.msg new file mode 100644 index 0000000..8d02ab5 --- /dev/null +++ b/autoware_debug_msgs/msg/Float32Stamped.msg @@ -0,0 +1,2 @@ +builtin_interfaces/Time stamp +float32 data diff --git a/autoware_debug_msgs/msg/Float64MultiArrayStamped.msg b/autoware_debug_msgs/msg/Float64MultiArrayStamped.msg new file mode 100644 index 0000000..994c41c --- /dev/null +++ b/autoware_debug_msgs/msg/Float64MultiArrayStamped.msg @@ -0,0 +1,3 @@ +builtin_interfaces/Time stamp +autoware_debug_msgs/MultiArrayLayout layout +float64[] data diff --git a/autoware_debug_msgs/msg/Float64Stamped.msg b/autoware_debug_msgs/msg/Float64Stamped.msg new file mode 100644 index 0000000..97a9447 --- /dev/null +++ b/autoware_debug_msgs/msg/Float64Stamped.msg @@ -0,0 +1,2 @@ +builtin_interfaces/Time stamp +float64 data diff --git a/autoware_debug_msgs/msg/Int32MultiArrayStamped.msg b/autoware_debug_msgs/msg/Int32MultiArrayStamped.msg new file mode 100644 index 0000000..67830d0 --- /dev/null +++ b/autoware_debug_msgs/msg/Int32MultiArrayStamped.msg @@ -0,0 +1,3 @@ +builtin_interfaces/Time stamp +autoware_debug_msgs/MultiArrayLayout layout +int32[] data diff --git a/autoware_debug_msgs/msg/Int32Stamped.msg b/autoware_debug_msgs/msg/Int32Stamped.msg new file mode 100644 index 0000000..0d54877 --- /dev/null +++ b/autoware_debug_msgs/msg/Int32Stamped.msg @@ -0,0 +1,2 @@ +builtin_interfaces/Time stamp +int32 data diff --git a/autoware_debug_msgs/msg/Int64MultiArrayStamped.msg b/autoware_debug_msgs/msg/Int64MultiArrayStamped.msg new file mode 100644 index 0000000..0ee2d45 --- /dev/null +++ b/autoware_debug_msgs/msg/Int64MultiArrayStamped.msg @@ -0,0 +1,3 @@ +builtin_interfaces/Time stamp +autoware_debug_msgs/MultiArrayLayout layout +int64[] data diff --git a/autoware_debug_msgs/msg/Int64Stamped.msg b/autoware_debug_msgs/msg/Int64Stamped.msg new file mode 100644 index 0000000..917edff --- /dev/null +++ b/autoware_debug_msgs/msg/Int64Stamped.msg @@ -0,0 +1,2 @@ +builtin_interfaces/Time stamp +int64 data diff --git a/autoware_debug_msgs/msg/MultiArrayDimension.msg b/autoware_debug_msgs/msg/MultiArrayDimension.msg new file mode 100644 index 0000000..05bb4d8 --- /dev/null +++ b/autoware_debug_msgs/msg/MultiArrayDimension.msg @@ -0,0 +1,11 @@ +# This is from ros2 common_interfaces. +# https://github.com/ros2/common_interfaces/blob/master/std_msgs/msg/MultiArrayDimension.msg + +# This was originally provided as an example message. +# It is deprecated as of Foxy +# It is recommended to create your own semantically meaningful message. +# However if you would like to continue using this please use the equivalent in example_msgs. + +string label # label of given dimension +uint32 size # size of given dimension (in type units) +uint32 stride # stride of given dimension diff --git a/autoware_debug_msgs/msg/MultiArrayLayout.msg b/autoware_debug_msgs/msg/MultiArrayLayout.msg new file mode 100644 index 0000000..e96cb23 --- /dev/null +++ b/autoware_debug_msgs/msg/MultiArrayLayout.msg @@ -0,0 +1,34 @@ +# This is from ros2 common_interfaces. +# https://github.com/ros2/common_interfaces/blob/master/std_msgs/msg/MultiArrayLayout.msg + +# This was originally provided as an example message. +# It is deprecated as of Foxy +# It is recommended to create your own semantically meaningful message. +# However if you would like to continue using this please use the equivalent in example_msgs. + +# The multiarray declares a generic multi-dimensional array of a +# particular data type. Dimensions are ordered from outer most +# to inner most. +# +# Accessors should ALWAYS be written in terms of dimension stride +# and specified outer-most dimension first. +# +# multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k] +# +# A standard, 3-channel 640x480 image with interleaved color channels +# would be specified as: +# +# dim[0].label = "height" +# dim[0].size = 480 +# dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image) +# dim[1].label = "width" +# dim[1].size = 640 +# dim[1].stride = 3*640 = 1920 +# dim[2].label = "channel" +# dim[2].size = 3 +# dim[2].stride = 3 +# +# multiarray(i,j,k) refers to the ith row, jth column, and kth channel. + +autoware_debug_msgs/MultiArrayDimension[] dim # Array of dimension properties +uint32 data_offset # padding bytes at front of data diff --git a/autoware_debug_msgs/msg/ProcessingTimeNode.msg b/autoware_debug_msgs/msg/ProcessingTimeNode.msg new file mode 100644 index 0000000..e7d4409 --- /dev/null +++ b/autoware_debug_msgs/msg/ProcessingTimeNode.msg @@ -0,0 +1,10 @@ +# 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 +# Comment +string comment diff --git a/autoware_debug_msgs/msg/ProcessingTimeTree.msg b/autoware_debug_msgs/msg/ProcessingTimeTree.msg new file mode 100644 index 0000000..0e7be75 --- /dev/null +++ b/autoware_debug_msgs/msg/ProcessingTimeTree.msg @@ -0,0 +1,2 @@ +# Array of all time nodes +ProcessingTimeNode[] nodes diff --git a/autoware_debug_msgs/msg/StringStamped.msg b/autoware_debug_msgs/msg/StringStamped.msg new file mode 100644 index 0000000..a48c85b --- /dev/null +++ b/autoware_debug_msgs/msg/StringStamped.msg @@ -0,0 +1,2 @@ +builtin_interfaces/Time stamp +string data diff --git a/autoware_debug_msgs/package.xml b/autoware_debug_msgs/package.xml new file mode 100644 index 0000000..8980095 --- /dev/null +++ b/autoware_debug_msgs/package.xml @@ -0,0 +1,27 @@ + + + + autoware_debug_msgs + 0.0.0 + The autoware_debug_msgs package + Takamasa Horibe + cyn_liu + Apache License 2.0 + + ament_cmake_auto + + rosidl_default_generators + + builtin_interfaces + + rosidl_default_runtime + + ament_lint_auto + ament_lint_common + + rosidl_interface_packages + + + ament_cmake + +