MagneticField.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/MagneticField.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_MAGNETICFIELD_H
6 #define SENSOR_MSGS_MESSAGE_MAGNETICFIELD_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 #include <std_msgs/Header.h>
19 #include <geometry_msgs/Vector3.h>
20 
21 namespace sensor_msgs
22 {
23 template <class ContainerAllocator>
25 {
27 
29  : header()
30  , magnetic_field()
32  magnetic_field_covariance.fill(0.0);
33  }
34  MagneticField_(const ContainerAllocator& _alloc)
35  : header(_alloc)
36  , magnetic_field(_alloc)
38  (void)_alloc;
39  magnetic_field_covariance.fill(0.0);
40  }
41 
42 
43 
44  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
45  _header_type header;
46 
47  typedef ::geometry_msgs::Vector3_<ContainerAllocator> _magnetic_field_type;
48  _magnetic_field_type magnetic_field;
49 
50  typedef std::array<double, 9> _magnetic_field_covariance_type;
51  _magnetic_field_covariance_type magnetic_field_covariance;
52 
53 
54 
55 
58 
59 }; // struct MagneticField_
60 
61 typedef ::sensor_msgs::MagneticField_<std::allocator<void> > MagneticField;
62 
65 
66 // constants requiring out of line definition
67 
68 
69 
70 template<typename ContainerAllocator>
71 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::MagneticField_<ContainerAllocator> & v)
72 {
74 return s;
75 }
76 
77 } // namespace sensor_msgs
78 
79 namespace rs2rosinternal
80 {
81 namespace message_traits
82 {
83 
84 
85 
86 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
87 // {'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']}
88 
89 // !!!!!!!!!!! ['__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']
90 
91 
92 
93 
94 template <class ContainerAllocator>
95 struct IsFixedSize< ::sensor_msgs::MagneticField_<ContainerAllocator> >
96  : FalseType
97  { };
98 
99 template <class ContainerAllocator>
100 struct IsFixedSize< ::sensor_msgs::MagneticField_<ContainerAllocator> const>
101  : FalseType
102  { };
103 
104 template <class ContainerAllocator>
105 struct IsMessage< ::sensor_msgs::MagneticField_<ContainerAllocator> >
106  : TrueType
107  { };
108 
109 template <class ContainerAllocator>
110 struct IsMessage< ::sensor_msgs::MagneticField_<ContainerAllocator> const>
111  : TrueType
112  { };
113 
114 template <class ContainerAllocator>
115 struct HasHeader< ::sensor_msgs::MagneticField_<ContainerAllocator> >
116  : TrueType
117  { };
118 
119 template <class ContainerAllocator>
120 struct HasHeader< ::sensor_msgs::MagneticField_<ContainerAllocator> const>
121  : TrueType
122  { };
123 
124 
125 template<class ContainerAllocator>
126 struct MD5Sum< ::sensor_msgs::MagneticField_<ContainerAllocator> >
127 {
128  static const char* value()
129  {
130  return "2f3b0b43eed0c9501de0fa3ff89a45aa";
131  }
132 
133  static const char* value(const ::sensor_msgs::MagneticField_<ContainerAllocator>&) { return value(); }
134  static const uint64_t static_value1 = 0x2f3b0b43eed0c950ULL;
135  static const uint64_t static_value2 = 0x1de0fa3ff89a45aaULL;
136 };
137 
138 template<class ContainerAllocator>
139 struct DataType< ::sensor_msgs::MagneticField_<ContainerAllocator> >
140 {
141  static const char* value()
142  {
143  return "sensor_msgs/MagneticField";
144  }
145 
146  static const char* value(const ::sensor_msgs::MagneticField_<ContainerAllocator>&) { return value(); }
147 };
148 
149 template<class ContainerAllocator>
150 struct Definition< ::sensor_msgs::MagneticField_<ContainerAllocator> >
151 {
152  static const char* value()
153  {
154  return " # Measurement of the Magnetic Field vector at a specific location.\n\
155 \n\
156  # If the covariance of the measurement is known, it should be filled in\n\
157  # (if all you know is the variance of each measurement, e.g. from the datasheet,\n\
158  #just put those along the diagonal)\n\
159  # A covariance matrix of all zeros will be interpreted as \"covariance unknown\",\n\
160  # and to use the data a covariance will have to be assumed or gotten from some\n\
161  # other source\n\
162 \n\
163 \n\
164  Header header # timestamp is the time the\n\
165  # field was measured\n\
166  # frame_id is the location and orientation\n\
167  # of the field measurement\n\
168 \n\
169  geometry_msgs/Vector3 magnetic_field # x, y, and z components of the\n\
170  # field vector in Tesla\n\
171  # If your sensor does not output 3 axes,\n\
172  # put NaNs in the components not reported.\n\
173 \n\
174  float64[9] magnetic_field_covariance # Row major about x, y, z axes\n\
175  # 0 is interpreted as variance unknown\n\
176 ================================================================================\n\
177 MSG: std_msgs/Header\n\
178 # Standard metadata for higher-level stamped data types.\n\
179 # This is generally used to communicate timestamped data \n\
180 # in a particular coordinate frame.\n\
181 # \n\
182 # sequence ID: consecutively increasing ID \n\
183 uint32 seq\n\
184 #Two-integer timestamp that is expressed as:\n\
185 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
186 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
187 # time-handling sugar is provided by the client library\n\
188 time stamp\n\
189 #Frame this data is associated with\n\
190 # 0: no frame\n\
191 # 1: global frame\n\
192 string frame_id\n\
193 \n\
194 ================================================================================\n\
195 MSG: geometry_msgs/Vector3\n\
196 # This represents a vector in free space. \n\
197 # It is only meant to represent a direction. Therefore, it does not\n\
198 # make sense to apply a translation to it (e.g., when applying a \n\
199 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
200 # rotation). If you want your data to be translatable too, use the\n\
201 # geometry_msgs/Point message instead.\n\
202 \n\
203 float64 x\n\
204 float64 y\n\
205 float64 z\n\
206 ";
207  }
208 
209  static const char* value(const ::sensor_msgs::MagneticField_<ContainerAllocator>&) { return value(); }
210 };
211 
212 } // namespace message_traits
213 } // namespace rs2rosinternal
214 
215 namespace rs2rosinternal
216 {
217 namespace serialization
218 {
219 
220  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::MagneticField_<ContainerAllocator> >
221  {
222  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
223  {
224  stream.next(m.header);
225  stream.next(m.magnetic_field);
226  stream.next(m.magnetic_field_covariance);
227  }
228 
230  }; // struct MagneticField_
231 
232 } // namespace serialization
233 } // namespace rs2rosinternal
234 
235 namespace rs2rosinternal
236 {
237 namespace message_operations
238 {
239 
240 template<class ContainerAllocator>
241 struct Printer< ::sensor_msgs::MagneticField_<ContainerAllocator> >
242 {
243  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::MagneticField_<ContainerAllocator>& v)
244  {
245  s << indent << "header: ";
246  s << std::endl;
248  s << indent << "magnetic_field: ";
249  s << std::endl;
250  Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.magnetic_field);
251  s << indent << "magnetic_field_covariance[]" << std::endl;
252  for (size_t i = 0; i < v.magnetic_field_covariance.size(); ++i)
253  {
254  s << indent << " magnetic_field_covariance[" << i << "]: ";
255  Printer<double>::stream(s, indent + " ", v.magnetic_field_covariance[i]);
256  }
257  }
258 };
259 
260 } // namespace message_operations
261 } // namespace rs2rosinternal
262 
263 #endif // SENSOR_MSGS_MESSAGE_MAGNETICFIELD_H
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::MagneticField_< ContainerAllocator > &v)
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
::sensor_msgs::MagneticField_< std::allocator< void > > MagneticField
Definition: MagneticField.h:61
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
static const char * value(const ::sensor_msgs::MagneticField_< ContainerAllocator > &)
Specialize to provide the md5sum for a message.
boost::shared_ptr< ::sensor_msgs::MagneticField > MagneticFieldPtr
Definition: MagneticField.h:63
std::array< double, 9 > _magnetic_field_covariance_type
Definition: MagneticField.h:50
boost::shared_ptr< ::sensor_msgs::MagneticField const > MagneticFieldConstPtr
Definition: MagneticField.h:64
_magnetic_field_type magnetic_field
Definition: MagneticField.h:48
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
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...
MagneticField_< ContainerAllocator > Type
Definition: MagneticField.h:26
Stream base-class, provides common functionality for IStream and OStream.
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
MagneticField_(const ContainerAllocator &_alloc)
Definition: MagneticField.h:34
static const char * value(const ::sensor_msgs::MagneticField_< ContainerAllocator > &)
#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.
boost::shared_ptr< ::sensor_msgs::MagneticField_< ContainerAllocator > const > ConstPtr
Definition: MagneticField.h:57
::geometry_msgs::Vector3_< ContainerAllocator > _magnetic_field_type
Definition: MagneticField.h:47
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: MagneticField.h:44
int i
static const char * value(const ::sensor_msgs::MagneticField_< ContainerAllocator > &)
boost::shared_ptr< ::sensor_msgs::MagneticField_< ContainerAllocator > > Ptr
Definition: MagneticField.h:56
_magnetic_field_covariance_type magnetic_field_covariance
Definition: MagneticField.h:51
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v


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