RegionOfInterest.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/RegionOfInterest.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_REGIONOFINTEREST_H
6 #define SENSOR_MSGS_MESSAGE_REGIONOFINTEREST_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 
19 namespace sensor_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : x_offset(0)
28  , y_offset(0)
29  , height(0)
30  , width(0)
31  , do_rectify(false) {
32  }
33  RegionOfInterest_(const ContainerAllocator& _alloc)
34  : x_offset(0)
35  , y_offset(0)
36  , height(0)
37  , width(0)
38  , do_rectify(false) {
39  (void)_alloc;
40  }
41 
42 
43 
45  _x_offset_type x_offset;
46 
48  _y_offset_type y_offset;
49 
51  _height_type height;
52 
54  _width_type width;
55 
57  _do_rectify_type do_rectify;
58 
59 
60 
61 
62  typedef std::shared_ptr< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> > Ptr;
63  typedef std::shared_ptr< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> const> ConstPtr;
64 
65 }; // struct RegionOfInterest_
66 
67 typedef ::sensor_msgs::RegionOfInterest_<std::allocator<void> > RegionOfInterest;
68 
69 typedef std::shared_ptr< ::sensor_msgs::RegionOfInterest > RegionOfInterestPtr;
70 typedef std::shared_ptr< ::sensor_msgs::RegionOfInterest const> RegionOfInterestConstPtr;
71 
72 // constants requiring out of line definition
73 
74 
75 
76 template<typename ContainerAllocator>
77 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::RegionOfInterest_<ContainerAllocator> & v)
78 {
80 return s;
81 }
82 
83 } // namespace sensor_msgs
84 
85 namespace rs2rosinternal
86 {
87 namespace message_traits
88 {
89 
90 
91 
92 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
93 // {'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']}
94 
95 // !!!!!!!!!!! ['__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']
96 
97 
98 
99 
100 template <class ContainerAllocator>
101 struct IsFixedSize< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsFixedSize< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> const>
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct IsMessage< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
112  : TrueType
113  { };
114 
115 template <class ContainerAllocator>
116 struct IsMessage< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> const>
117  : TrueType
118  { };
119 
120 template <class ContainerAllocator>
121 struct HasHeader< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
122  : FalseType
123  { };
124 
125 template <class ContainerAllocator>
126 struct HasHeader< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> const>
127  : FalseType
128  { };
129 
130 
131 template<class ContainerAllocator>
132 struct MD5Sum< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
133 {
134  static const char* value()
135  {
136  return "bdb633039d588fcccb441a4d43ccfe09";
137  }
138 
139  static const char* value(const ::sensor_msgs::RegionOfInterest_<ContainerAllocator>&) { return value(); }
140  static const uint64_t static_value1 = 0xbdb633039d588fccULL;
141  static const uint64_t static_value2 = 0xcb441a4d43ccfe09ULL;
142 };
143 
144 template<class ContainerAllocator>
145 struct DataType< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
146 {
147  static const char* value()
148  {
149  return "sensor_msgs/RegionOfInterest";
150  }
151 
152  static const char* value(const ::sensor_msgs::RegionOfInterest_<ContainerAllocator>&) { return value(); }
153 };
154 
155 template<class ContainerAllocator>
156 struct Definition< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
157 {
158  static const char* value()
159  {
160  return "# This message is used to specify a region of interest within an image.\n\
161 #\n\
162 # When used to specify the ROI setting of the camera when the image was\n\
163 # taken, the height and width fields should either match the height and\n\
164 # width fields for the associated image; or height = width = 0\n\
165 # indicates that the full resolution image was captured.\n\
166 \n\
167 uint32 x_offset # Leftmost pixel of the ROI\n\
168  # (0 if the ROI includes the left edge of the image)\n\
169 uint32 y_offset # Topmost pixel of the ROI\n\
170  # (0 if the ROI includes the top edge of the image)\n\
171 uint32 height # Height of ROI\n\
172 uint32 width # Width of ROI\n\
173 \n\
174 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
175 # ROI in this message. Typically this should be False if the full image\n\
176 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
177 # used).\n\
178 bool do_rectify\n\
179 ";
180  }
181 
182  static const char* value(const ::sensor_msgs::RegionOfInterest_<ContainerAllocator>&) { return value(); }
183 };
184 
185 } // namespace message_traits
186 } // namespace rs2rosinternal
187 
188 namespace rs2rosinternal
189 {
190 namespace serialization
191 {
192 
193  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
194  {
195  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
196  {
197  stream.next(m.x_offset);
198  stream.next(m.y_offset);
199  stream.next(m.height);
200  stream.next(m.width);
201  stream.next(m.do_rectify);
202  }
203 
205  }; // struct RegionOfInterest_
206 
207 } // namespace serialization
208 } // namespace rs2rosinternal
209 
210 namespace rs2rosinternal
211 {
212 namespace message_operations
213 {
214 
215 template<class ContainerAllocator>
216 struct Printer< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >
217 {
218  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::RegionOfInterest_<ContainerAllocator>& v)
219  {
220  s << indent << "x_offset: ";
221  Printer<uint32_t>::stream(s, indent + " ", v.x_offset);
222  s << indent << "y_offset: ";
223  Printer<uint32_t>::stream(s, indent + " ", v.y_offset);
224  s << indent << "height: ";
225  Printer<uint32_t>::stream(s, indent + " ", v.height);
226  s << indent << "width: ";
227  Printer<uint32_t>::stream(s, indent + " ", v.width);
228  s << indent << "do_rectify: ";
229  Printer<uint8_t>::stream(s, indent + " ", v.do_rectify);
230  }
231 };
232 
233 } // namespace message_operations
234 } // namespace rs2rosinternal
235 
236 #endif // SENSOR_MSGS_MESSAGE_REGIONOFINTEREST_H
std::shared_ptr< ::sensor_msgs::RegionOfInterest const > RegionOfInterestConstPtr
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
static const char * value(const ::sensor_msgs::RegionOfInterest_< ContainerAllocator > &)
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 ::sensor_msgs::RegionOfInterest_< ContainerAllocator > &v)
::sensor_msgs::RegionOfInterest_< std::allocator< void > > RegionOfInterest
static const char * value(const ::sensor_msgs::RegionOfInterest_< ContainerAllocator > &)
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
unsigned char uint8_t
Definition: stdint.h:78
std::shared_ptr< ::sensor_msgs::RegionOfInterest_< ContainerAllocator > > Ptr
std::shared_ptr< ::sensor_msgs::RegionOfInterest_< ContainerAllocator > const > ConstPtr
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
RegionOfInterest_< ContainerAllocator > Type
static const char * value(const ::sensor_msgs::RegionOfInterest_< ContainerAllocator > &)
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::sensor_msgs::RegionOfInterest > RegionOfInterestPtr
unsigned int uint32_t
Definition: stdint.h:80
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
GLint GLsizei GLsizei height
#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.
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
GLint GLsizei width
RegionOfInterest_(const ContainerAllocator &_alloc)


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