Polygon.h
Go to the documentation of this file.
1 // Generated by gencpp from file geometry_msgs/Polygon.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef GEOMETRY_MSGS_MESSAGE_POLYGON_H
6 #define GEOMETRY_MSGS_MESSAGE_POLYGON_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/Point32.h>
19 
20 namespace geometry_msgs
21 {
22 template <class ContainerAllocator>
23 struct Polygon_
24 {
26 
28  : points() {
29  }
30  Polygon_(const ContainerAllocator& _alloc)
31  : points(_alloc) {
32  (void)_alloc;
33  }
34 
35 
36 
37  typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _points_type;
38  _points_type points;
39 
40 
41 
42 
43  typedef std::shared_ptr< ::geometry_msgs::Polygon_<ContainerAllocator> > Ptr;
44  typedef std::shared_ptr< ::geometry_msgs::Polygon_<ContainerAllocator> const> ConstPtr;
45 
46 }; // struct Polygon_
47 
48 typedef ::geometry_msgs::Polygon_<std::allocator<void> > Polygon;
49 
50 typedef std::shared_ptr< ::geometry_msgs::Polygon > PolygonPtr;
51 typedef std::shared_ptr< ::geometry_msgs::Polygon const> PolygonConstPtr;
52 
53 // constants requiring out of line definition
54 
55 
56 
57 template<typename ContainerAllocator>
58 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Polygon_<ContainerAllocator> & v)
59 {
61 return s;
62 }
63 
64 } // namespace geometry_msgs
65 
66 namespace rs2rosinternal
67 {
68 namespace message_traits
69 {
70 
71 
72 
73 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
74 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/tmp/binarydeb/ros-kinetic-geometry-msgs-1.12.5/msg']}
75 
76 // !!!!!!!!!!! ['__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']
77 
78 
79 
80 
81 template <class ContainerAllocator>
82 struct IsFixedSize< ::geometry_msgs::Polygon_<ContainerAllocator> >
83  : FalseType
84  { };
85 
86 template <class ContainerAllocator>
87 struct IsFixedSize< ::geometry_msgs::Polygon_<ContainerAllocator> const>
88  : FalseType
89  { };
90 
91 template <class ContainerAllocator>
92 struct IsMessage< ::geometry_msgs::Polygon_<ContainerAllocator> >
93  : TrueType
94  { };
95 
96 template <class ContainerAllocator>
97 struct IsMessage< ::geometry_msgs::Polygon_<ContainerAllocator> const>
98  : TrueType
99  { };
100 
101 template <class ContainerAllocator>
102 struct HasHeader< ::geometry_msgs::Polygon_<ContainerAllocator> >
103  : FalseType
104  { };
105 
106 template <class ContainerAllocator>
107 struct HasHeader< ::geometry_msgs::Polygon_<ContainerAllocator> const>
108  : FalseType
109  { };
110 
111 
112 template<class ContainerAllocator>
113 struct MD5Sum< ::geometry_msgs::Polygon_<ContainerAllocator> >
114 {
115  static const char* value()
116  {
117  return "cd60a26494a087f577976f0329fa120e";
118  }
119 
120  static const char* value(const ::geometry_msgs::Polygon_<ContainerAllocator>&) { return value(); }
121  static const uint64_t static_value1 = 0xcd60a26494a087f5ULL;
122  static const uint64_t static_value2 = 0x77976f0329fa120eULL;
123 };
124 
125 template<class ContainerAllocator>
126 struct DataType< ::geometry_msgs::Polygon_<ContainerAllocator> >
127 {
128  static const char* value()
129  {
130  return "geometry_msgs/Polygon";
131  }
132 
133  static const char* value(const ::geometry_msgs::Polygon_<ContainerAllocator>&) { return value(); }
134 };
135 
136 template<class ContainerAllocator>
137 struct Definition< ::geometry_msgs::Polygon_<ContainerAllocator> >
138 {
139  static const char* value()
140  {
141  return "#A specification of a polygon where the first and last points are assumed to be connected\n\
142 Point32[] points\n\
143 \n\
144 ================================================================================\n\
145 MSG: geometry_msgs/Point32\n\
146 # This contains the position of a point in free space(with 32 bits of precision).\n\
147 # It is recommeded to use Point wherever possible instead of Point32. \n\
148 # \n\
149 # This recommendation is to promote interoperability. \n\
150 #\n\
151 # This message is designed to take up less space when sending\n\
152 # lots of points at once, as in the case of a PointCloud. \n\
153 \n\
154 float32 x\n\
155 float32 y\n\
156 float32 z\n\
157 ";
158  }
159 
160  static const char* value(const ::geometry_msgs::Polygon_<ContainerAllocator>&) { return value(); }
161 };
162 
163 } // namespace message_traits
164 } // namespace rs2rosinternal
165 
166 namespace rs2rosinternal
167 {
168 namespace serialization
169 {
170 
171  template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Polygon_<ContainerAllocator> >
172  {
173  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
174  {
175  stream.next(m.points);
176  }
177 
179  }; // struct Polygon_
180 
181 } // namespace serialization
182 } // namespace rs2rosinternal
183 
184 namespace rs2rosinternal
185 {
186 namespace message_operations
187 {
188 
189 template<class ContainerAllocator>
190 struct Printer< ::geometry_msgs::Polygon_<ContainerAllocator> >
191 {
192  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Polygon_<ContainerAllocator>& v)
193  {
194  s << indent << "points[]" << std::endl;
195  for (size_t i = 0; i < v.points.size(); ++i)
196  {
197  s << indent << " points[" << i << "]: ";
198  s << std::endl;
199  s << indent;
201  }
202  }
203 };
204 
205 } // namespace message_operations
206 } // namespace rs2rosinternal
207 
208 #endif // GEOMETRY_MSGS_MESSAGE_POLYGON_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
static const char * value(const ::geometry_msgs::Polygon_< ContainerAllocator > &)
Definition: Polygon.h:120
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 ...
static const char * value(const ::geometry_msgs::Polygon_< ContainerAllocator > &)
Definition: Polygon.h:160
GLsizei const GLchar *const * string
static const char * value(const ::geometry_msgs::Polygon_< ContainerAllocator > &)
Definition: Polygon.h:133
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
_points_type points
Definition: Polygon.h:38
std::shared_ptr< ::geometry_msgs::Polygon > PolygonPtr
Definition: Polygon.h:50
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
std::shared_ptr< ::geometry_msgs::Polygon_< ContainerAllocator > const > ConstPtr
Definition: Polygon.h:44
Stream base-class, provides common functionality for IStream and OStream.
Polygon_< ContainerAllocator > Type
Definition: Polygon.h:25
#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.
static void stream(Stream &s, const std::string &indent, const ::geometry_msgs::Polygon_< ContainerAllocator > &v)
Definition: Polygon.h:192
std::shared_ptr< ::geometry_msgs::Polygon_< ContainerAllocator > > Ptr
Definition: Polygon.h:43
Polygon_(const ContainerAllocator &_alloc)
Definition: Polygon.h:30
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
std::shared_ptr< ::geometry_msgs::Polygon const > PolygonConstPtr
Definition: Polygon.h:51
::geometry_msgs::Polygon_< std::allocator< void > > Polygon
Definition: Polygon.h:48
GLdouble v
GLdouble GLdouble GLint GLint const GLdouble * points
std::vector< ::geometry_msgs::Point32_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_< ContainerAllocator > >::other > _points_type
Definition: Polygon.h:37


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