TimeReference.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/TimeReference.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_TIMEREFERENCE_H
6 #define SENSOR_MSGS_MESSAGE_TIMEREFERENCE_H
7 
8 
9 #include <memory>
10 #include <string>
11 #include <vector>
12 #include <map>
13 
14 #include <ros/types.h>
15 #include <ros/serialization.h>
17 #include <ros/message_operations.h>
18 
19 #include <std_msgs/Header.h>
20 
21 namespace sensor_msgs
22 {
23 template <class ContainerAllocator>
25 {
27 
29  : header()
30  , time_ref()
31  , source() {
32  }
33  TimeReference_(const ContainerAllocator& _alloc)
34  : header(_alloc)
35  , time_ref()
36  , source(_alloc) {
37  (void)_alloc;
38  }
39 
40 
41 
42  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
43  _header_type header;
44 
46  _time_ref_type time_ref;
47 
48  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _source_type;
49  _source_type source;
50 
51 
52 
53 
54  typedef std::shared_ptr< ::sensor_msgs::TimeReference_<ContainerAllocator> > Ptr;
55  typedef std::shared_ptr< ::sensor_msgs::TimeReference_<ContainerAllocator> const> ConstPtr;
56 
57 }; // struct TimeReference_
58 
59 typedef ::sensor_msgs::TimeReference_<std::allocator<void> > TimeReference;
60 
61 typedef std::shared_ptr< ::sensor_msgs::TimeReference > TimeReferencePtr;
62 typedef std::shared_ptr< ::sensor_msgs::TimeReference const> TimeReferenceConstPtr;
63 
64 // constants requiring out of line definition
65 
66 
67 
68 template<typename ContainerAllocator>
69 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::TimeReference_<ContainerAllocator> & v)
70 {
72 return s;
73 }
74 
75 } // namespace sensor_msgs
76 
77 namespace rs2rosinternal
78 {
79 namespace message_traits
80 {
81 
82 
83 
84 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
85 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'sensor_msgs': ['/tmp/binarydeb/ros-kinetic-sensor-msgs-1.12.5/msg']}
86 
87 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
88 
89 
90 
91 
92 template <class ContainerAllocator>
93 struct IsFixedSize< ::sensor_msgs::TimeReference_<ContainerAllocator> >
94  : FalseType
95  { };
96 
97 template <class ContainerAllocator>
98 struct IsFixedSize< ::sensor_msgs::TimeReference_<ContainerAllocator> const>
99  : FalseType
100  { };
101 
102 template <class ContainerAllocator>
103 struct IsMessage< ::sensor_msgs::TimeReference_<ContainerAllocator> >
104  : TrueType
105  { };
106 
107 template <class ContainerAllocator>
108 struct IsMessage< ::sensor_msgs::TimeReference_<ContainerAllocator> const>
109  : TrueType
110  { };
111 
112 template <class ContainerAllocator>
113 struct HasHeader< ::sensor_msgs::TimeReference_<ContainerAllocator> >
114  : TrueType
115  { };
116 
117 template <class ContainerAllocator>
118 struct HasHeader< ::sensor_msgs::TimeReference_<ContainerAllocator> const>
119  : TrueType
120  { };
121 
122 
123 template<class ContainerAllocator>
124 struct MD5Sum< ::sensor_msgs::TimeReference_<ContainerAllocator> >
125 {
126  static const char* value()
127  {
128  return "fded64a0265108ba86c3d38fb11c0c16";
129  }
130 
131  static const char* value(const ::sensor_msgs::TimeReference_<ContainerAllocator>&) { return value(); }
132  static const uint64_t static_value1 = 0xfded64a0265108baULL;
133  static const uint64_t static_value2 = 0x86c3d38fb11c0c16ULL;
134 };
135 
136 template<class ContainerAllocator>
137 struct DataType< ::sensor_msgs::TimeReference_<ContainerAllocator> >
138 {
139  static const char* value()
140  {
141  return "sensor_msgs/TimeReference";
142  }
143 
144  static const char* value(const ::sensor_msgs::TimeReference_<ContainerAllocator>&) { return value(); }
145 };
146 
147 template<class ContainerAllocator>
148 struct Definition< ::sensor_msgs::TimeReference_<ContainerAllocator> >
149 {
150  static const char* value()
151  {
152  return "# Measurement from an external time source not actively synchronized with the system clock.\n\
153 \n\
154 Header header # stamp is system time for which measurement was valid\n\
155  # frame_id is not used \n\
156 \n\
157 time time_ref # corresponding time from this external source\n\
158 string source # (optional) name of time source\n\
159 \n\
160 ================================================================================\n\
161 MSG: std_msgs/Header\n\
162 # Standard metadata for higher-level stamped data types.\n\
163 # This is generally used to communicate timestamped data \n\
164 # in a particular coordinate frame.\n\
165 # \n\
166 # sequence ID: consecutively increasing ID \n\
167 uint32 seq\n\
168 #Two-integer timestamp that is expressed as:\n\
169 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
170 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
171 # time-handling sugar is provided by the client library\n\
172 time stamp\n\
173 #Frame this data is associated with\n\
174 # 0: no frame\n\
175 # 1: global frame\n\
176 string frame_id\n\
177 ";
178  }
179 
180  static const char* value(const ::sensor_msgs::TimeReference_<ContainerAllocator>&) { return value(); }
181 };
182 
183 } // namespace message_traits
184 } // namespace rs2rosinternal
185 
186 namespace rs2rosinternal
187 {
188 namespace serialization
189 {
190 
191  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::TimeReference_<ContainerAllocator> >
192  {
193  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
194  {
195  stream.next(m.header);
196  stream.next(m.time_ref);
197  stream.next(m.source);
198  }
199 
201  }; // struct TimeReference_
202 
203 } // namespace serialization
204 } // namespace rs2rosinternal
205 
206 namespace rs2rosinternal
207 {
208 namespace message_operations
209 {
210 
211 template<class ContainerAllocator>
212 struct Printer< ::sensor_msgs::TimeReference_<ContainerAllocator> >
213 {
214  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::TimeReference_<ContainerAllocator>& v)
215  {
216  s << indent << "header: ";
217  s << std::endl;
219  s << indent << "time_ref: ";
220  Printer<rs2rosinternal::Time>::stream(s, indent + " ", v.time_ref);
221  s << indent << "source: ";
222  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.source);
223  }
224 };
225 
226 } // namespace message_operations
227 } // namespace rs2rosinternal
228 
229 #endif // SENSOR_MSGS_MESSAGE_TIMEREFERENCE_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
const GLfloat * m
Definition: glext.h:6814
std::shared_ptr< ::sensor_msgs::TimeReference_< ContainerAllocator > > Ptr
Definition: TimeReference.h:54
Specialize to provide the md5sum for a message.
::sensor_msgs::TimeReference_< std::allocator< void > > TimeReference
Definition: TimeReference.h:59
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
std::shared_ptr< ::sensor_msgs::TimeReference_< ContainerAllocator > const > ConstPtr
Definition: TimeReference.h:55
GLsizei const GLchar *const * string
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Stream base-class, provides common functionality for IStream and OStream.
static const char * value(const ::sensor_msgs::TimeReference_< ContainerAllocator > &)
TimeReference_< ContainerAllocator > Type
Definition: TimeReference.h:26
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
Time representation. May either represent wall clock time or ROS clock time.
Definition: time.h:177
rs2rosinternal::Time _time_ref_type
Definition: TimeReference.h:45
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: TimeReference.h:42
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _source_type
Definition: TimeReference.h:48
TimeReference_(const ContainerAllocator &_alloc)
Definition: TimeReference.h:33
std::shared_ptr< ::sensor_msgs::TimeReference > TimeReferencePtr
Definition: TimeReference.h:61
static const char * value(const ::sensor_msgs::TimeReference_< ContainerAllocator > &)
GLsizei GLsizei GLchar * source
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::TimeReference_< ContainerAllocator > &v)
std::shared_ptr< ::sensor_msgs::TimeReference const > TimeReferenceConstPtr
Definition: TimeReference.h:62
static const char * value(const ::sensor_msgs::TimeReference_< ContainerAllocator > &)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:11