From 10dbe5835124a840699ba78cc0dfe56a25434571 Mon Sep 17 00:00:00 2001
From: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com>
Date: Wed, 15 Oct 2025 13:25:05 +0200
Subject: [PATCH] Use builtin_interfaces/Time for TransitionEvent stamp
Signed-off-by: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com>
---
lifecycle_msgs/CMakeLists.txt | 2 ++
lifecycle_msgs/msg/TransitionEvent.msg | 2 +-
lifecycle_msgs/package.xml | 3 +++
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/lifecycle_msgs/CMakeLists.txt b/lifecycle_msgs/CMakeLists.txt
index 709b9904..2585964f 100644
--- a/lifecycle_msgs/CMakeLists.txt
+++ b/lifecycle_msgs/CMakeLists.txt
@@ -13,6 +13,7 @@ endif()
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
+find_package(builtin_interfaces REQUIRED)
set(msg_files
"msg/State.msg"
@@ -30,6 +31,7 @@ set(srv_files
rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
${srv_files}
+ DEPENDENCIES builtin_interfaces
ADD_LINTER_TESTS
)
diff --git a/lifecycle_msgs/msg/TransitionEvent.msg b/lifecycle_msgs/msg/TransitionEvent.msg
index 48c84995..ac910d78 100644
--- a/lifecycle_msgs/msg/TransitionEvent.msg
+++ b/lifecycle_msgs/msg/TransitionEvent.msg
@@ -1,5 +1,5 @@
# The time point at which this event occurred.
-uint64 timestamp
+builtin_interfaces/Time stamp
# The id and label of this transition event.
Transition transition
diff --git a/lifecycle_msgs/package.xml b/lifecycle_msgs/package.xml
index 1afad4ce..3cc247c5 100644
--- a/lifecycle_msgs/package.xml
+++ b/lifecycle_msgs/package.xml
@@ -16,6 +16,9 @@
ament_cmake
rosidl_default_generators
+ builtin_interfaces
+
+ builtin_interfaces
rosidl_default_runtime
ament_lint_auto