Skip to content

Commit

Permalink
feat(autoware_common_msgs): add published time debug message
Browse files Browse the repository at this point in the history
Signed-off-by: Berkay Karaman <[email protected]>
  • Loading branch information
brkay54 committed Feb 16, 2024
1 parent 224bd3a commit 598b81a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion autoware_common_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ project(autoware_common_msgs)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
set(msg_files
"msg/ResponseStatus.msg"
"msg/PublishedTime.msg")

set(msg_dependencies
builtin_interfaces)

rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
DEPENDENCIES ${msg_dependencies}
)

ament_auto_package()
7 changes: 7 additions & 0 deletions autoware_common_msgs/msg/PublishedTime.msg
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions autoware_common_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<exec_depend>rosidl_default_runtime</exec_depend>
<depend>builtin_interfaces</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down

0 comments on commit 598b81a

Please sign in to comment.