Quaternion.h
Go to the documentation of this file.
1 // Generated by gencpp from file geometry_msgs/Quaternion.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef GEOMETRY_MSGS_MESSAGE_QUATERNION_H
6 #define GEOMETRY_MSGS_MESSAGE_QUATERNION_H
7 
8 #include <memory>
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 
19 namespace geometry_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : x(0.0)
28  , y(0.0)
29  , z(0.0)
30  , w(0.0) {
31  }
32  Quaternion_(const ContainerAllocator& _alloc)
33  : x(0.0)
34  , y(0.0)
35  , z(0.0)
36  , w(0.0) {
37  (void)_alloc;
38  }
39 
40 
41 
42  typedef double _x_type;
43  _x_type x;
44 
45  typedef double _y_type;
46  _y_type y;
47 
48  typedef double _z_type;
49  _z_type z;
50 
51  typedef double _w_type;
52  _w_type w;
53 
54 
55 
56 
57  typedef std::shared_ptr< ::geometry_msgs::Quaternion_<ContainerAllocator> > Ptr;
58  typedef std::shared_ptr< ::geometry_msgs::Quaternion_<ContainerAllocator> const> ConstPtr;
59 
60 }; // struct Quaternion_
61 
62 typedef ::geometry_msgs::Quaternion_<std::allocator<void> > Quaternion;
63 
64 typedef std::shared_ptr< ::geometry_msgs::Quaternion > QuaternionPtr;
65 typedef std::shared_ptr< ::geometry_msgs::Quaternion const> QuaternionConstPtr;
66 
67 // constants requiring out of line definition
68 
69 
70 
71 template<typename ContainerAllocator>
72 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Quaternion_<ContainerAllocator> & v)
73 {
75 return s;
76 }
77 
78 } // namespace geometry_msgs
79 
80 namespace rs2rosinternal
81 {
82 namespace message_traits
83 {
84 
85 
86 
87 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
88 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/tmp/binarydeb/ros-kinetic-geometry-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< ::geometry_msgs::Quaternion_<ContainerAllocator> >
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsFixedSize< ::geometry_msgs::Quaternion_<ContainerAllocator> const>
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsMessage< ::geometry_msgs::Quaternion_<ContainerAllocator> >
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct IsMessage< ::geometry_msgs::Quaternion_<ContainerAllocator> const>
112  : TrueType
113  { };
114 
115 template <class ContainerAllocator>
116 struct HasHeader< ::geometry_msgs::Quaternion_<ContainerAllocator> >
117  : FalseType
118  { };
119 
120 template <class ContainerAllocator>
121 struct HasHeader< ::geometry_msgs::Quaternion_<ContainerAllocator> const>
122  : FalseType
123  { };
124 
125 
126 template<class ContainerAllocator>
127 struct MD5Sum< ::geometry_msgs::Quaternion_<ContainerAllocator> >
128 {
129  static const char* value()
130  {
131  return "a779879fadf0160734f906b8c19c7004";
132  }
133 
134  static const char* value(const ::geometry_msgs::Quaternion_<ContainerAllocator>&) { return value(); }
135  static const uint64_t static_value1 = 0xa779879fadf01607ULL;
136  static const uint64_t static_value2 = 0x34f906b8c19c7004ULL;
137 };
138 
139 template<class ContainerAllocator>
140 struct DataType< ::geometry_msgs::Quaternion_<ContainerAllocator> >
141 {
142  static const char* value()
143  {
144  return "geometry_msgs/Quaternion";
145  }
146 
147  static const char* value(const ::geometry_msgs::Quaternion_<ContainerAllocator>&) { return value(); }
148 };
149 
150 template<class ContainerAllocator>
151 struct Definition< ::geometry_msgs::Quaternion_<ContainerAllocator> >
152 {
153  static const char* value()
154  {
155  return "# This represents an orientation in free space in quaternion form.\n\
156 \n\
157 float64 x\n\
158 float64 y\n\
159 float64 z\n\
160 float64 w\n\
161 ";
162  }
163 
164  static const char* value(const ::geometry_msgs::Quaternion_<ContainerAllocator>&) { return value(); }
165 };
166 
167 } // namespace message_traits
168 } // namespace rs2rosinternal
169 
170 namespace rs2rosinternal
171 {
172 namespace serialization
173 {
174 
175  template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Quaternion_<ContainerAllocator> >
176  {
177  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
178  {
179  stream.next(m.x);
180  stream.next(m.y);
181  stream.next(m.z);
182  stream.next(m.w);
183  }
184 
186  }; // struct Quaternion_
187 
188 } // namespace serialization
189 } // namespace rs2rosinternal
190 
191 namespace rs2rosinternal
192 {
193 namespace message_operations
194 {
195 
196 template<class ContainerAllocator>
197 struct Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >
198 {
199  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Quaternion_<ContainerAllocator>& v)
200  {
201  s << indent << "x: ";
202  Printer<double>::stream(s, indent + " ", v.x);
203  s << indent << "y: ";
204  Printer<double>::stream(s, indent + " ", v.y);
205  s << indent << "z: ";
206  Printer<double>::stream(s, indent + " ", v.z);
207  s << indent << "w: ";
208  Printer<double>::stream(s, indent + " ", v.w);
209  }
210 };
211 
212 } // namespace message_operations
213 } // namespace rs2rosinternal
214 
215 #endif // GEOMETRY_MSGS_MESSAGE_QUATERNION_H
static const char * value(const ::geometry_msgs::Quaternion_< ContainerAllocator > &)
Definition: Quaternion.h:147
GLint y
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
std::shared_ptr< ::geometry_msgs::Quaternion const > QuaternionConstPtr
Definition: Quaternion.h:65
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.
std::shared_ptr< ::geometry_msgs::Quaternion > QuaternionPtr
Definition: Quaternion.h:64
static const char * value(const ::geometry_msgs::Quaternion_< ContainerAllocator > &)
Definition: Quaternion.h:134
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble GLdouble GLdouble w
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
GLdouble GLdouble z
std::shared_ptr< ::geometry_msgs::Quaternion_< ContainerAllocator > > Ptr
Definition: Quaternion.h:57
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 ::geometry_msgs::Quaternion_< ContainerAllocator > &)
Definition: Quaternion.h:164
Quaternion_< ContainerAllocator > Type
Definition: Quaternion.h:24
GLdouble x
#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::shared_ptr< ::geometry_msgs::Quaternion_< ContainerAllocator > const > ConstPtr
Definition: Quaternion.h:58
Quaternion_(const ContainerAllocator &_alloc)
Definition: Quaternion.h:32
::geometry_msgs::Quaternion_< std::allocator< void > > Quaternion
Definition: Quaternion.h:62
static void stream(Stream &s, const std::string &indent, const ::geometry_msgs::Quaternion_< ContainerAllocator > &v)
Definition: Quaternion.h:199
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:39