pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
messages.h
Go to the documentation of this file.
1/**
2 @file
3 @author Alexander Sherikov
4 @copyright 2025 Alexander Sherikov. Licensed under the Apache License,
5 Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
6 @brief
7*/
8
9#pragma once
10
11namespace // NOLINT
12{
14 {
15 template <class t_Message>
16 class Message
17 {
18 };
19
20
21 template <>
22 class Message<plotjuggler_msgs::msg::StatisticsNames>
23 {
24 public:
25 inline static const char *const type = "plotjuggler_msgs/msg/StatisticsNames"; // NOLINT
26
27 inline static const char *const schema = // NOLINT
28 R"SCHEMA(
29# header
30std_msgs/Header header
31
32# Statistics names
33string[] names
34uint32 names_version #This is increased each time names change
35
36================================================================================
37MSG: std_msgs/Header
38# Standard metadata for higher-level stamped data types.
39# This is generally used to communicate timestamped data
40# in a particular coordinate frame.
41
42# Two-integer timestamp that is expressed as seconds and nanoseconds.
43builtin_interfaces/Time stamp
44
45# Transform frame with which this data is associated.
46string frame_id
47
48================================================================================
49MSG: builtin_interfaces/Time
50# This message communicates ROS Time defined here:
51# https://design.ros2.org/articles/clock_and_time.html
52
53# The seconds component, valid over all int32 values.
54int32 sec
55
56# The nanoseconds component, valid in the range [0, 10e9).
57uint32 nanosec
58)SCHEMA";
59 };
60
61
62 template <>
63 class Message<plotjuggler_msgs::msg::StatisticsValues>
64 {
65 public:
66 inline static const char *const type = "plotjuggler_msgs/msg/StatisticsValues"; // NOLINT
67
68 inline static const char *const schema = // NOLINT
69 R"SCHEMA(
70# header
71std_msgs/Header header
72
73# Statistics
74float64[] values
75uint32 names_version # The values vector corresponds to the name vector with the same name
76
77================================================================================
78MSG: std_msgs/Header
79# Standard metadata for higher-level stamped data types.
80# This is generally used to communicate timestamped data
81# in a particular coordinate frame.
82
83# Two-integer timestamp that is expressed as seconds and nanoseconds.
84builtin_interfaces/Time stamp
85
86# Transform frame with which this data is associated.
87string frame_id
88
89================================================================================
90MSG: builtin_interfaces/Time
91# This message communicates ROS Time defined here:
92# https://design.ros2.org/articles/clock_and_time.html
93
94# The seconds component, valid over all int32 values.
95int32 sec
96
97# The nanoseconds component, valid in the range [0, 10e9).
98uint32 nanosec
99)SCHEMA";
100 };
101 } // namespace pjmsg_mcap_wrapper_private::pjmsg
102} // namespace