From ac49ce1e71c54eab1b6ee19d630bdb4b499e40ff Mon Sep 17 00:00:00 2001 From: Berkay Karaman Date: Thu, 22 Feb 2024 12:14:04 +0300 Subject: [PATCH] feat(autoware_msgs): add new optional messages package with published time debug message Signed-off-by: Berkay Karaman --- autoware_optional_msgs/CMakeLists.txt | 18 +++++++++++++++ autoware_optional_msgs/msg/PublishedTime.msg | 7 ++++++ autoware_optional_msgs/package.xml | 24 ++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 autoware_optional_msgs/CMakeLists.txt create mode 100644 autoware_optional_msgs/msg/PublishedTime.msg create mode 100644 autoware_optional_msgs/package.xml diff --git a/autoware_optional_msgs/CMakeLists.txt b/autoware_optional_msgs/CMakeLists.txt new file mode 100644 index 0000000..4755ae0 --- /dev/null +++ b/autoware_optional_msgs/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 3.14) +project(autoware_optional_msgs) + +find_package(ament_cmake_auto REQUIRED) +ament_auto_find_build_dependencies() + +set(msg_files + "msg/PublishedTime.msg") + +set(msg_dependencies + builtin_interfaces) + +rosidl_generate_interfaces(${PROJECT_NAME} + ${msg_files} + DEPENDENCIES ${msg_dependencies} +) + +ament_auto_package() diff --git a/autoware_optional_msgs/msg/PublishedTime.msg b/autoware_optional_msgs/msg/PublishedTime.msg new file mode 100644 index 0000000..d060ec2 --- /dev/null +++ b/autoware_optional_msgs/msg/PublishedTime.msg @@ -0,0 +1,7 @@ +# The debug message which includes header and publishing timestamp + +# Message header time +builtin_interfaces/Time header_stamp + +# Timestamp when the message was published +builtin_interfaces/Time published_stamp diff --git a/autoware_optional_msgs/package.xml b/autoware_optional_msgs/package.xml new file mode 100644 index 0000000..aef6af7 --- /dev/null +++ b/autoware_optional_msgs/package.xml @@ -0,0 +1,24 @@ + + + + autoware_optional_msgs + 1.0.0 + Autoware optional messages package. + Berkay Karaman + Apache License 2.0 + + ament_cmake_auto + rosidl_default_generators + + rosidl_default_runtime + builtin_interfaces + + ament_lint_auto + ament_lint_common + + rosidl_interface_packages + + + ament_cmake + +