6 #ifndef STD_MSGS_MESSAGE_HEADER_H
7 #define STD_MSGS_MESSAGE_HEADER_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
22 template <
class ContainerAllocator>
47 typedef std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other >
_frame_id_type;
53 typedef std::shared_ptr< ::std_msgs::Header_<ContainerAllocator> >
Ptr;
54 typedef std::shared_ptr< ::std_msgs::Header_<ContainerAllocator>
const>
ConstPtr;
58 typedef ::std_msgs::Header_<std::allocator<void> >
Header;
60 typedef std::shared_ptr< ::std_msgs::Header >
HeaderPtr;
67 template<
typename ContainerAllocator>
68 std::ostream&
operator<<(std::ostream& s, const ::std_msgs::Header_<ContainerAllocator> & v)
78 namespace message_traits
91 template <
class ContainerAllocator>
96 template <
class ContainerAllocator>
101 template <
class ContainerAllocator>
106 template <
class ContainerAllocator>
111 template <
class ContainerAllocator>
116 template <
class ContainerAllocator>
122 template<
class ContainerAllocator>
127 return "2176decaecbce78abc3b96ef049fabed";
130 static const char*
value(const ::std_msgs::Header_<ContainerAllocator>&) {
return value(); }
131 static const uint64_t static_value1 = 0x2176decaecbce78aULL;
132 static const uint64_t static_value2 = 0xbc3b96ef049fabedULL;
135 template<
class ContainerAllocator>
140 return "std_msgs/Header";
143 static const char*
value(const ::std_msgs::Header_<ContainerAllocator>&) {
return value(); }
146 template<
class ContainerAllocator>
151 return "# Standard metadata for higher-level stamped data types.\n\
152 # This is generally used to communicate timestamped data \n\
153 # in a particular coordinate frame.\n\
155 # sequence ID: consecutively increasing ID \n\
157 #Two-integer timestamp that is expressed as:\n\
158 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
159 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
160 # time-handling sugar is provided by the client library\n\
162 #Frame this data is associated with\n\
169 static const char*
value(const ::std_msgs::Header_<ContainerAllocator>&) {
return value(); }
177 namespace serialization
182 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
185 stream.next(m.stamp);
186 stream.next(m.frame_id);
197 namespace message_operations
200 template<
class ContainerAllocator>
203 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::std_msgs::Header_<ContainerAllocator>& v)
217 #endif // STD_MSGS_MESSAGE_HEADER_H