Skip to content

Commit

Permalink
feat: tier4_metric_msgs (#149)
Browse files Browse the repository at this point in the history
* add tier4_metric_msgs

* change metricList to metricArray

* ci(pre-commit): autofix

* update comments.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
xtk8532704 and pre-commit-ci[bot] authored Nov 12, 2024
1 parent a6d8211 commit 93259c2
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tier4_metric_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.5)
project(tier4_metric_msgs)

find_package(ament_cmake_auto REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)

ament_auto_find_build_dependencies()

rosidl_generate_interfaces(
${PROJECT_NAME}
"msg/Metric.msg"
"msg/MetricArray.msg"
DEPENDENCIES builtin_interfaces
)


if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package()
9 changes: 9 additions & 0 deletions tier4_metric_msgs/msg/Metric.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# name of the metric
string name

# unit (or type) of the metric
# you can leave it empty or assign any identifier to the unit, such as "milliseconds", "m/s", "IoU", "battery percentage", etc.
string unit

# value of the metric
string value
5 changes: 5 additions & 0 deletions tier4_metric_msgs/msg/MetricArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# time stamp
builtin_interfaces/Time stamp

# metrics list
Metric[] metric_array
26 changes: 26 additions & 0 deletions tier4_metric_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>tier4_metric_msgs</name>
<version>0.1.0</version>
<description>The tier4_metric_msgs package</description>
<maintainer email="[email protected]">Temkei Kem</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<build_depend>rosidl_default_generators</build_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>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit 93259c2

Please sign in to comment.