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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08