Imu.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/Imu.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SENSOR_MSGS_MESSAGE_IMU_H
7 #define SENSOR_MSGS_MESSAGE_IMU_H
8 
9 
10 #include <array>
11 #include <string>
12 #include <vector>
13 #include <map>
14 
15 #include <ros/types.h>
16 #include <ros/serialization.h>
17 #include <ros/builtin_message_traits.h>
18 #include <ros/message_operations.h>
19 
20 #include <std_msgs/Header.h>
22 #include <geometry_msgs/Vector3.h>
23 #include <geometry_msgs/Vector3.h>
24 
25 namespace sensor_msgs
26 {
27 template <class ContainerAllocator>
28 struct Imu_
29 {
31 
32  Imu_()
33  : header()
34  , orientation()
40  orientation_covariance.fill(0.0);
41 
43 
45  }
46  Imu_(const ContainerAllocator& _alloc)
47  : header(_alloc)
48  , orientation(_alloc)
50  , angular_velocity(_alloc)
52  , linear_acceleration(_alloc)
54  (void)_alloc;
55  orientation_covariance.fill(0.0);
56 
58 
60  }
61 
62 
63 
64  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
66 
67  typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type;
69 
70  typedef std::array<double, 9> _orientation_covariance_type;
72 
73  typedef ::geometry_msgs::Vector3_<ContainerAllocator> _angular_velocity_type;
75 
76  typedef std::array<double, 9> _angular_velocity_covariance_type;
78 
79  typedef ::geometry_msgs::Vector3_<ContainerAllocator> _linear_acceleration_type;
81 
82  typedef std::array<double, 9> _linear_acceleration_covariance_type;
84 
85 
86 
87 
88  typedef std::shared_ptr< ::sensor_msgs::Imu_<ContainerAllocator> > Ptr;
89  typedef std::shared_ptr< ::sensor_msgs::Imu_<ContainerAllocator> const> ConstPtr;
90 
91 }; // struct Imu_
92 
93 typedef ::sensor_msgs::Imu_<std::allocator<void> > Imu;
94 
95 typedef std::shared_ptr< ::sensor_msgs::Imu > ImuPtr;
96 typedef std::shared_ptr< ::sensor_msgs::Imu const> ImuConstPtr;
97 
98 // constants requiring out of line definition
99 
100 
101 
102 template<typename ContainerAllocator>
103 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::Imu_<ContainerAllocator> & v)
104 {
106 return s;
107 }
108 
109 } // namespace sensor_msgs
110 
111 namespace roswrap
112 {
113 namespace message_traits
114 {
115 
116 
117 
118 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
119 // {'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']}
120 
121 // !!!!!!!!!!! ['__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']
122 
123 
124 
125 
126 template <class ContainerAllocator>
127 struct IsFixedSize< ::sensor_msgs::Imu_<ContainerAllocator> >
128  : FalseType
129  { };
130 
131 template <class ContainerAllocator>
132 struct IsFixedSize< ::sensor_msgs::Imu_<ContainerAllocator> const>
133  : FalseType
134  { };
135 
136 template <class ContainerAllocator>
137 struct IsMessage< ::sensor_msgs::Imu_<ContainerAllocator> >
138  : TrueType
139  { };
140 
141 template <class ContainerAllocator>
142 struct IsMessage< ::sensor_msgs::Imu_<ContainerAllocator> const>
143  : TrueType
144  { };
145 
146 template <class ContainerAllocator>
147 struct HasHeader< ::sensor_msgs::Imu_<ContainerAllocator> >
148  : TrueType
149  { };
150 
151 template <class ContainerAllocator>
152 struct HasHeader< ::sensor_msgs::Imu_<ContainerAllocator> const>
153  : TrueType
154  { };
155 
156 
157 template<class ContainerAllocator>
158 struct MD5Sum< ::sensor_msgs::Imu_<ContainerAllocator> >
159 {
160  static const char* value()
161  {
162  return "6a62c6daae103f4ff57a132d6f95cec2";
163  }
164 
165  static const char* value(const ::sensor_msgs::Imu_<ContainerAllocator>&) { return value(); }
166  static const uint64_t static_value1 = 0x6a62c6daae103f4fULL;
167  static const uint64_t static_value2 = 0xf57a132d6f95cec2ULL;
168 };
169 
170 template<class ContainerAllocator>
171 struct DataType< ::sensor_msgs::Imu_<ContainerAllocator> >
172 {
173  static const char* value()
174  {
175  return "sensor_msgs/Imu";
176  }
177 
178  static const char* value(const ::sensor_msgs::Imu_<ContainerAllocator>&) { return value(); }
179 };
180 
181 template<class ContainerAllocator>
182 struct Definition< ::sensor_msgs::Imu_<ContainerAllocator> >
183 {
184  static const char* value()
185  {
186  return "# This is a message to hold data from an IMU (Inertial Measurement Unit)\n\
187 #\n\
188 # Accelerations should be in m/s^2 (not in g's), and rotational velocity should be in rad/sec\n\
189 #\n\
190 # If the covariance of the measurement is known, it should be filled in (if all you know is the \n\
191 # variance of each measurement, e.g. from the datasheet, just put those along the diagonal)\n\
192 # A covariance matrix of all zeros will be interpreted as \"covariance unknown\", and to use the\n\
193 # data a covariance will have to be assumed or gotten from some other source\n\
194 #\n\
195 # If you have no estimate for one of the data elements (e.g. your IMU doesn't produce an orientation \n\
196 # estimate), please set element 0 of the associated covariance matrix to -1\n\
197 # If you are interpreting this message, please check for a value of -1 in the first element of each \n\
198 # covariance matrix, and disregard the associated estimate.\n\
199 \n\
200 Header header\n\
201 \n\
202 geometry_msgs/Quaternion orientation\n\
203 float64[9] orientation_covariance # Row major about x, y, z axes\n\
204 \n\
205 geometry_msgs/Vector3 angular_velocity\n\
206 float64[9] angular_velocity_covariance # Row major about x, y, z axes\n\
207 \n\
208 geometry_msgs/Vector3 linear_acceleration\n\
209 float64[9] linear_acceleration_covariance # Row major x, y z \n\
210 \n\
211 ================================================================================\n\
212 MSG: std_msgs/Header\n\
213 # Standard metadata for higher-level stamped data types.\n\
214 # This is generally used to communicate timestamped data \n\
215 # in a particular coordinate frame.\n\
216 # \n\
217 # sequence ID: consecutively increasing ID \n\
218 uint32 seq\n\
219 #Two-integer timestamp that is expressed as:\n\
220 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
221 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
222 # time-handling sugar is provided by the client library\n\
223 time stamp\n\
224 #Frame this data is associated with\n\
225 # 0: no frame\n\
226 # 1: global frame\n\
227 string frame_id\n\
228 \n\
229 ================================================================================\n\
230 MSG: geometry_msgs/Quaternion\n\
231 # This represents an orientation in free space in quaternion form.\n\
232 \n\
233 float64 x\n\
234 float64 y\n\
235 float64 z\n\
236 float64 w\n\
237 \n\
238 ================================================================================\n\
239 MSG: geometry_msgs/Vector3\n\
240 # This represents a vector in free space. \n\
241 # It is only meant to represent a direction. Therefore, it does not\n\
242 # make sense to apply a translation to it (e.g., when applying a \n\
243 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
244 # rotation). If you want your data to be translatable too, use the\n\
245 # geometry_msgs/Point message instead.\n\
246 \n\
247 float64 x\n\
248 float64 y\n\
249 float64 z\n\
250 ";
251  }
252 
253  static const char* value(const ::sensor_msgs::Imu_<ContainerAllocator>&) { return value(); }
254 };
255 
256 } // namespace message_traits
257 } // namespace roswrap
258 
259 namespace roswrap
260 {
261 namespace serialization
262 {
263 
264  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::Imu_<ContainerAllocator> >
265  {
266  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
267  {
268  stream.next(m.header);
269  stream.next(m.orientation);
270  stream.next(m.orientation_covariance);
271  stream.next(m.angular_velocity);
272  stream.next(m.angular_velocity_covariance);
273  stream.next(m.linear_acceleration);
274  stream.next(m.linear_acceleration_covariance);
275  }
276 
278  }; // struct Imu_
279 
280 } // namespace serialization
281 } // namespace roswrap
282 
283 namespace roswrap
284 {
285 namespace message_operations
286 {
287 
288 template<class ContainerAllocator>
289 struct Printer< ::sensor_msgs::Imu_<ContainerAllocator> >
290 {
291  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::Imu_<ContainerAllocator>& v)
292  {
293  s << indent << "header: ";
294  s << std::endl;
296  s << indent << "orientation: ";
297  s << std::endl;
299  s << indent << "orientation_covariance[]" << std::endl;
300  for (size_t i = 0; i < v.orientation_covariance.size(); ++i)
301  {
302  s << indent << " orientation_covariance[" << i << "]: ";
303  Printer<double>::stream(s, indent + " ", v.orientation_covariance[i]);
304  }
305  s << indent << "angular_velocity: ";
306  s << std::endl;
308  s << indent << "angular_velocity_covariance[]" << std::endl;
309  for (size_t i = 0; i < v.angular_velocity_covariance.size(); ++i)
310  {
311  s << indent << " angular_velocity_covariance[" << i << "]: ";
312  Printer<double>::stream(s, indent + " ", v.angular_velocity_covariance[i]);
313  }
314  s << indent << "linear_acceleration: ";
315  s << std::endl;
317  s << indent << "linear_acceleration_covariance[]" << std::endl;
318  for (size_t i = 0; i < v.linear_acceleration_covariance.size(); ++i)
319  {
320  s << indent << " linear_acceleration_covariance[" << i << "]: ";
321  Printer<double>::stream(s, indent + " ", v.linear_acceleration_covariance[i]);
322  }
323  }
324 };
325 
326 } // namespace message_operations
327 } // namespace roswrap
328 
329 #endif // SENSOR_MSGS_MESSAGE_IMU_H
sensor_msgs::ImuConstPtr
std::shared_ptr< ::sensor_msgs::Imu const > ImuConstPtr
Definition: Imu.h:96
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
sensor_msgs::Imu_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: Imu.h:64
sensor_msgs::Imu
::sensor_msgs::Imu_< std::allocator< void > > Imu
Definition: Imu.h:93
sensor_msgs::Imu_
Definition: Imu.h:28
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
sensor_msgs::Imu_::linear_acceleration
_linear_acceleration_type linear_acceleration
Definition: Imu.h:80
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
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
Quaternion.h
const
#define const
Definition: getopt.c:38
sensor_msgs::Imu_::orientation_covariance
_orientation_covariance_type orientation_covariance
Definition: Imu.h:71
sensor_msgs::Imu_::orientation
_orientation_type orientation
Definition: Imu.h:68
s
XmlRpcServer s
sensor_msgs::ImuPtr
std::shared_ptr< ::sensor_msgs::Imu > ImuPtr
Definition: Imu.h:95
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
sensor_msgs::Imu_::Imu_
Imu_()
Definition: Imu.h:32
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
sensor_msgs::Imu_::Ptr
std::shared_ptr< ::sensor_msgs::Imu_< ContainerAllocator > > Ptr
Definition: Imu.h:88
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::Imu_::Type
Imu_< ContainerAllocator > Type
Definition: Imu.h:30
sensor_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
Definition: BatteryState.h:187
roswrap::serialization::Serializer< ::sensor_msgs::Imu_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: Imu.h:266
roswrap::message_traits::MD5Sum< ::sensor_msgs::Imu_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::Imu_< ContainerAllocator > &)
Definition: Imu.h:165
sensor_msgs::Imu_::_orientation_covariance_type
std::array< double, 9 > _orientation_covariance_type
Definition: Imu.h:70
roswrap::message_traits::Definition< ::sensor_msgs::Imu_< ContainerAllocator > >::value
static const char * value()
Definition: Imu.h:184
roswrap::message_traits::DataType< ::sensor_msgs::Imu_< ContainerAllocator > >::value
static const char * value()
Definition: Imu.h:173
roswrap::message_operations::Printer< ::sensor_msgs::Imu_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::Imu_< ContainerAllocator > &v)
Definition: Imu.h:291
sensor_msgs::Imu_::angular_velocity_covariance
_angular_velocity_covariance_type angular_velocity_covariance
Definition: Imu.h:77
sensor_msgs::Imu_::Imu_
Imu_(const ContainerAllocator &_alloc)
Definition: Imu.h:46
sensor_msgs::Imu_::linear_acceleration_covariance
_linear_acceleration_covariance_type linear_acceleration_covariance
Definition: Imu.h:83
sensor_msgs::Imu_::_angular_velocity_type
::geometry_msgs::Vector3_< ContainerAllocator > _angular_velocity_type
Definition: Imu.h:73
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
roswrap::message_traits::Definition< ::sensor_msgs::Imu_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::Imu_< ContainerAllocator > &)
Definition: Imu.h:253
std_msgs::Header_
Definition: Header.h:23
sensor_msgs::Imu_::_angular_velocity_covariance_type
std::array< double, 9 > _angular_velocity_covariance_type
Definition: Imu.h:76
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::DataType< ::sensor_msgs::Imu_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::Imu_< ContainerAllocator > &)
Definition: Imu.h:178
roswrap::message_traits::MD5Sum< ::sensor_msgs::Imu_< ContainerAllocator > >::value
static const char * value()
Definition: Imu.h:160
sensor_msgs::Imu_::_linear_acceleration_covariance_type
std::array< double, 9 > _linear_acceleration_covariance_type
Definition: Imu.h:82
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
geometry_msgs::Quaternion_
Definition: kinetic/include/geometry_msgs/Quaternion.h:23
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sensor_msgs::Imu_::header
_header_type header
Definition: Imu.h:65
sensor_msgs::Imu_::angular_velocity
_angular_velocity_type angular_velocity
Definition: Imu.h:74
sensor_msgs::Imu_::_linear_acceleration_type
::geometry_msgs::Vector3_< ContainerAllocator > _linear_acceleration_type
Definition: Imu.h:79
sensor_msgs::Imu_::ConstPtr
std::shared_ptr< ::sensor_msgs::Imu_< ContainerAllocator > const > ConstPtr
Definition: Imu.h:89
sensor_msgs
Tools for manipulating sensor_msgs.
Header.h
sensor_msgs::Imu_::_orientation_type
::geometry_msgs::Quaternion_< ContainerAllocator > _orientation_type
Definition: Imu.h:67


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