Vector3.h
Go to the documentation of this file.
1 // Generated by gencpp from file geometry_msgs/Vector3.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef GEOMETRY_MSGS_MESSAGE_VECTOR3_H
6 #define GEOMETRY_MSGS_MESSAGE_VECTOR3_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>
22 struct Vector3_
23 {
25 
27  : x(0.0)
28  , y(0.0)
29  , z(0.0) {
30  }
31  Vector3_(const ContainerAllocator& _alloc)
32  : x(0.0)
33  , y(0.0)
34  , z(0.0) {
35  (void)_alloc;
36  }
37 
38 
39 
40  typedef double _x_type;
41  _x_type x;
42 
43  typedef double _y_type;
44  _y_type y;
45 
46  typedef double _z_type;
47  _z_type z;
48 
49 
50 
51 
52  typedef std::shared_ptr< ::geometry_msgs::Vector3_<ContainerAllocator> > Ptr;
53  typedef std::shared_ptr< ::geometry_msgs::Vector3_<ContainerAllocator> const> ConstPtr;
54 
55 }; // struct Vector3_
56 
57 typedef ::geometry_msgs::Vector3_<std::allocator<void> > Vector3;
58 
59 typedef std::shared_ptr< ::geometry_msgs::Vector3 > Vector3Ptr;
60 typedef std::shared_ptr< ::geometry_msgs::Vector3 const> Vector3ConstPtr;
61 
62 // constants requiring out of line definition
63 
64 
65 
66 template<typename ContainerAllocator>
67 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Vector3_<ContainerAllocator> & v)
68 {
70 return s;
71 }
72 
73 } // namespace geometry_msgs
74 
75 namespace rs2rosinternal
76 {
77 namespace message_traits
78 {
79 
80 
81 
82 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
83 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/tmp/binarydeb/ros-kinetic-geometry-msgs-1.12.5/msg']}
84 
85 // !!!!!!!!!!! ['__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']
86 
87 
88 
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::geometry_msgs::Vector3_<ContainerAllocator> >
92  : TrueType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsFixedSize< ::geometry_msgs::Vector3_<ContainerAllocator> const>
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::geometry_msgs::Vector3_<ContainerAllocator> >
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsMessage< ::geometry_msgs::Vector3_<ContainerAllocator> const>
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::geometry_msgs::Vector3_<ContainerAllocator> >
112  : FalseType
113  { };
114 
115 template <class ContainerAllocator>
116 struct HasHeader< ::geometry_msgs::Vector3_<ContainerAllocator> const>
117  : FalseType
118  { };
119 
120 
121 template<class ContainerAllocator>
122 struct MD5Sum< ::geometry_msgs::Vector3_<ContainerAllocator> >
123 {
124  static const char* value()
125  {
126  return "4a842b65f413084dc2b10fb484ea7f17";
127  }
128 
129  static const char* value(const ::geometry_msgs::Vector3_<ContainerAllocator>&) { return value(); }
130  static const uint64_t static_value1 = 0x4a842b65f413084dULL;
131  static const uint64_t static_value2 = 0xc2b10fb484ea7f17ULL;
132 };
133 
134 template<class ContainerAllocator>
135 struct DataType< ::geometry_msgs::Vector3_<ContainerAllocator> >
136 {
137  static const char* value()
138  {
139  return "geometry_msgs/Vector3";
140  }
141 
142  static const char* value(const ::geometry_msgs::Vector3_<ContainerAllocator>&) { return value(); }
143 };
144 
145 template<class ContainerAllocator>
146 struct Definition< ::geometry_msgs::Vector3_<ContainerAllocator> >
147 {
148  static const char* value()
149  {
150  return "# This represents a vector in free space. \n\
151 # It is only meant to represent a direction. Therefore, it does not\n\
152 # make sense to apply a translation to it (e.g., when applying a \n\
153 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
154 # rotation). If you want your data to be translatable too, use the\n\
155 # geometry_msgs/Point message instead.\n\
156 \n\
157 float64 x\n\
158 float64 y\n\
159 float64 z\n\
160 ";
161  }
162 
163  static const char* value(const ::geometry_msgs::Vector3_<ContainerAllocator>&) { return value(); }
164 };
165 
166 } // namespace message_traits
167 } // namespace rs2rosinternal
168 
169 namespace rs2rosinternal
170 {
171 namespace serialization
172 {
173 
174  template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Vector3_<ContainerAllocator> >
175  {
176  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
177  {
178  stream.next(m.x);
179  stream.next(m.y);
180  stream.next(m.z);
181  }
182 
184  }; // struct Vector3_
185 
186 } // namespace serialization
187 } // namespace rs2rosinternal
188 
189 namespace rs2rosinternal
190 {
191 namespace message_operations
192 {
193 
194 template<class ContainerAllocator>
195 struct Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >
196 {
197  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Vector3_<ContainerAllocator>& v)
198  {
199  s << indent << "x: ";
200  Printer<double>::stream(s, indent + " ", v.x);
201  s << indent << "y: ";
202  Printer<double>::stream(s, indent + " ", v.y);
203  s << indent << "z: ";
204  Printer<double>::stream(s, indent + " ", v.z);
205  }
206 };
207 
208 } // namespace message_operations
209 } // namespace rs2rosinternal
210 
211 #endif // GEOMETRY_MSGS_MESSAGE_VECTOR3_H
std::shared_ptr< ::geometry_msgs::Vector3 > Vector3Ptr
Definition: Vector3.h:59
GLint y
Vector3_(const ContainerAllocator &_alloc)
Definition: Vector3.h:31
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.
static void stream(Stream &s, const std::string &indent, const ::geometry_msgs::Vector3_< ContainerAllocator > &v)
Definition: Vector3.h:197
static const char * value(const ::geometry_msgs::Vector3_< ContainerAllocator > &)
Definition: Vector3.h:163
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
GLdouble GLdouble z
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.
std::shared_ptr< ::geometry_msgs::Vector3 const > Vector3ConstPtr
Definition: Vector3.h:60
std::shared_ptr< ::geometry_msgs::Vector3_< ContainerAllocator > > Ptr
Definition: Vector3.h:52
GLdouble x
static const char * value(const ::geometry_msgs::Vector3_< ContainerAllocator > &)
Definition: Vector3.h:142
#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.
Vector3_< ContainerAllocator > Type
Definition: Vector3.h:24
static const char * value(const ::geometry_msgs::Vector3_< ContainerAllocator > &)
Definition: Vector3.h:129
std::shared_ptr< ::geometry_msgs::Vector3_< ContainerAllocator > const > ConstPtr
Definition: Vector3.h:53
Templated serialization class. Default implementation provides backwards compatibility with old messa...
::geometry_msgs::Vector3_< std::allocator< void > > Vector3
Definition: Vector3.h:57
GLdouble v


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