Inertia.h
Go to the documentation of this file.
1 // Generated by gencpp from file geometry_msgs/Inertia.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef GEOMETRY_MSGS_MESSAGE_INERTIA_H
6 #define GEOMETRY_MSGS_MESSAGE_INERTIA_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 <geometry_msgs/Vector3.h>
19 
20 namespace geometry_msgs
21 {
22 template <class ContainerAllocator>
23 struct Inertia_
24 {
26 
28  : m(0.0)
29  , com()
30  , ixx(0.0)
31  , ixy(0.0)
32  , ixz(0.0)
33  , iyy(0.0)
34  , iyz(0.0)
35  , izz(0.0) {
36  }
37  Inertia_(const ContainerAllocator& _alloc)
38  : m(0.0)
39  , com(_alloc)
40  , ixx(0.0)
41  , ixy(0.0)
42  , ixz(0.0)
43  , iyy(0.0)
44  , iyz(0.0)
45  , izz(0.0) {
46  (void)_alloc;
47  }
48 
49 
50 
51  typedef double _m_type;
52  _m_type m;
53 
54  typedef ::geometry_msgs::Vector3_<ContainerAllocator> _com_type;
55  _com_type com;
56 
57  typedef double _ixx_type;
58  _ixx_type ixx;
59 
60  typedef double _ixy_type;
61  _ixy_type ixy;
62 
63  typedef double _ixz_type;
64  _ixz_type ixz;
65 
66  typedef double _iyy_type;
67  _iyy_type iyy;
68 
69  typedef double _iyz_type;
70  _iyz_type iyz;
71 
72  typedef double _izz_type;
73  _izz_type izz;
74 
75 
76 
77 
78  typedef std::shared_ptr< ::geometry_msgs::Inertia_<ContainerAllocator> > Ptr;
79  typedef std::shared_ptr< ::geometry_msgs::Inertia_<ContainerAllocator> const> ConstPtr;
80 
81 }; // struct Inertia_
82 
83 typedef ::geometry_msgs::Inertia_<std::allocator<void> > Inertia;
84 
85 typedef std::shared_ptr< ::geometry_msgs::Inertia > InertiaPtr;
86 typedef std::shared_ptr< ::geometry_msgs::Inertia const> InertiaConstPtr;
87 
88 // constants requiring out of line definition
89 
90 
91 
92 template<typename ContainerAllocator>
93 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Inertia_<ContainerAllocator> & v)
94 {
96 return s;
97 }
98 
99 } // namespace geometry_msgs
100 
101 namespace rs2rosinternal
102 {
103 namespace message_traits
104 {
105 
106 
107 
108 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
109 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/tmp/binarydeb/ros-kinetic-geometry-msgs-1.12.5/msg']}
110 
111 // !!!!!!!!!!! ['__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']
112 
113 
114 
115 
116 template <class ContainerAllocator>
117 struct IsFixedSize< ::geometry_msgs::Inertia_<ContainerAllocator> >
118  : TrueType
119  { };
120 
121 template <class ContainerAllocator>
122 struct IsFixedSize< ::geometry_msgs::Inertia_<ContainerAllocator> const>
123  : TrueType
124  { };
125 
126 template <class ContainerAllocator>
127 struct IsMessage< ::geometry_msgs::Inertia_<ContainerAllocator> >
128  : TrueType
129  { };
130 
131 template <class ContainerAllocator>
132 struct IsMessage< ::geometry_msgs::Inertia_<ContainerAllocator> const>
133  : TrueType
134  { };
135 
136 template <class ContainerAllocator>
137 struct HasHeader< ::geometry_msgs::Inertia_<ContainerAllocator> >
138  : FalseType
139  { };
140 
141 template <class ContainerAllocator>
142 struct HasHeader< ::geometry_msgs::Inertia_<ContainerAllocator> const>
143  : FalseType
144  { };
145 
146 
147 template<class ContainerAllocator>
148 struct MD5Sum< ::geometry_msgs::Inertia_<ContainerAllocator> >
149 {
150  static const char* value()
151  {
152  return "1d26e4bb6c83ff141c5cf0d883c2b0fe";
153  }
154 
155  static const char* value(const ::geometry_msgs::Inertia_<ContainerAllocator>&) { return value(); }
156  static const uint64_t static_value1 = 0x1d26e4bb6c83ff14ULL;
157  static const uint64_t static_value2 = 0x1c5cf0d883c2b0feULL;
158 };
159 
160 template<class ContainerAllocator>
161 struct DataType< ::geometry_msgs::Inertia_<ContainerAllocator> >
162 {
163  static const char* value()
164  {
165  return "geometry_msgs/Inertia";
166  }
167 
168  static const char* value(const ::geometry_msgs::Inertia_<ContainerAllocator>&) { return value(); }
169 };
170 
171 template<class ContainerAllocator>
172 struct Definition< ::geometry_msgs::Inertia_<ContainerAllocator> >
173 {
174  static const char* value()
175  {
176  return "# Mass [kg]\n\
177 float64 m\n\
178 \n\
179 # Center of mass [m]\n\
180 geometry_msgs/Vector3 com\n\
181 \n\
182 # Inertia Tensor [kg-m^2]\n\
183 # | ixx ixy ixz |\n\
184 # I = | ixy iyy iyz |\n\
185 # | ixz iyz izz |\n\
186 float64 ixx\n\
187 float64 ixy\n\
188 float64 ixz\n\
189 float64 iyy\n\
190 float64 iyz\n\
191 float64 izz\n\
192 \n\
193 ================================================================================\n\
194 MSG: geometry_msgs/Vector3\n\
195 # This represents a vector in free space. \n\
196 # It is only meant to represent a direction. Therefore, it does not\n\
197 # make sense to apply a translation to it (e.g., when applying a \n\
198 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
199 # rotation). If you want your data to be translatable too, use the\n\
200 # geometry_msgs/Point message instead.\n\
201 \n\
202 float64 x\n\
203 float64 y\n\
204 float64 z\n\
205 ";
206  }
207 
208  static const char* value(const ::geometry_msgs::Inertia_<ContainerAllocator>&) { return value(); }
209 };
210 
211 } // namespace message_traits
212 } // namespace rs2rosinternal
213 
214 namespace rs2rosinternal
215 {
216 namespace serialization
217 {
218 
219  template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Inertia_<ContainerAllocator> >
220  {
221  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
222  {
223  stream.next(m.m);
224  stream.next(m.com);
225  stream.next(m.ixx);
226  stream.next(m.ixy);
227  stream.next(m.ixz);
228  stream.next(m.iyy);
229  stream.next(m.iyz);
230  stream.next(m.izz);
231  }
232 
234  }; // struct Inertia_
235 
236 } // namespace serialization
237 } // namespace rs2rosinternal
238 
239 namespace rs2rosinternal
240 {
241 namespace message_operations
242 {
243 
244 template<class ContainerAllocator>
245 struct Printer< ::geometry_msgs::Inertia_<ContainerAllocator> >
246 {
247  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Inertia_<ContainerAllocator>& v)
248  {
249  s << indent << "m: ";
250  Printer<double>::stream(s, indent + " ", v.m);
251  s << indent << "com: ";
252  s << std::endl;
254  s << indent << "ixx: ";
255  Printer<double>::stream(s, indent + " ", v.ixx);
256  s << indent << "ixy: ";
257  Printer<double>::stream(s, indent + " ", v.ixy);
258  s << indent << "ixz: ";
259  Printer<double>::stream(s, indent + " ", v.ixz);
260  s << indent << "iyy: ";
261  Printer<double>::stream(s, indent + " ", v.iyy);
262  s << indent << "iyz: ";
263  Printer<double>::stream(s, indent + " ", v.iyz);
264  s << indent << "izz: ";
265  Printer<double>::stream(s, indent + " ", v.izz);
266  }
267 };
268 
269 } // namespace message_operations
270 } // namespace rs2rosinternal
271 
272 #endif // GEOMETRY_MSGS_MESSAGE_INERTIA_H
static void stream(Stream &s, const std::string &indent, const ::geometry_msgs::Inertia_< ContainerAllocator > &v)
Definition: Inertia.h:247
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
Specialize to provide the md5sum for a message.
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Inertia_(const ContainerAllocator &_alloc)
Definition: Inertia.h:37
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...
static const char * value(const ::geometry_msgs::Inertia_< ContainerAllocator > &)
Definition: Inertia.h:155
static const char * value(const ::geometry_msgs::Inertia_< ContainerAllocator > &)
Definition: Inertia.h:168
::geometry_msgs::Vector3_< ContainerAllocator > _com_type
Definition: Inertia.h:54
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::geometry_msgs::Inertia_< ContainerAllocator > const > ConstPtr
Definition: Inertia.h:79
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
std::shared_ptr< ::geometry_msgs::Inertia_< ContainerAllocator > > Ptr
Definition: Inertia.h:78
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
std::shared_ptr< ::geometry_msgs::Inertia > InertiaPtr
Definition: Inertia.h:85
Inertia_< ContainerAllocator > Type
Definition: Inertia.h:25
static const char * value(const ::geometry_msgs::Inertia_< ContainerAllocator > &)
Definition: Inertia.h:208
Templated serialization class. Default implementation provides backwards compatibility with old messa...
::geometry_msgs::Inertia_< std::allocator< void > > Inertia
Definition: Inertia.h:83
std::shared_ptr< ::geometry_msgs::Inertia const > InertiaConstPtr
Definition: Inertia.h:86
GLdouble v


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