00001
00002 #ifndef VREP_COMMON_SERVICE_SIMROSGETVISIONSENSORIMAGE_H
00003 #define VREP_COMMON_SERVICE_SIMROSGETVISIONSENSORIMAGE_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "ros/service_traits.h"
00018
00019
00020
00021 #include "sensor_msgs/Image.h"
00022
00023 namespace vrep_common
00024 {
00025 template <class ContainerAllocator>
00026 struct simRosGetVisionSensorImageRequest_ {
00027 typedef simRosGetVisionSensorImageRequest_<ContainerAllocator> Type;
00028
00029 simRosGetVisionSensorImageRequest_()
00030 : handle(0)
00031 , options(0)
00032 {
00033 }
00034
00035 simRosGetVisionSensorImageRequest_(const ContainerAllocator& _alloc)
00036 : handle(0)
00037 , options(0)
00038 {
00039 }
00040
00041 typedef int32_t _handle_type;
00042 int32_t handle;
00043
00044 typedef uint8_t _options_type;
00045 uint8_t options;
00046
00047
00048 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::vrep_common::simRosGetVisionSensorImageRequest_<std::allocator<void> > simRosGetVisionSensorImageRequest;
00053
00054 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageRequest> simRosGetVisionSensorImageRequestPtr;
00055 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageRequest const> simRosGetVisionSensorImageRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct simRosGetVisionSensorImageResponse_ {
00060 typedef simRosGetVisionSensorImageResponse_<ContainerAllocator> Type;
00061
00062 simRosGetVisionSensorImageResponse_()
00063 : result(0)
00064 , image()
00065 {
00066 }
00067
00068 simRosGetVisionSensorImageResponse_(const ContainerAllocator& _alloc)
00069 : result(0)
00070 , image(_alloc)
00071 {
00072 }
00073
00074 typedef int32_t _result_type;
00075 int32_t result;
00076
00077 typedef ::sensor_msgs::Image_<ContainerAllocator> _image_type;
00078 ::sensor_msgs::Image_<ContainerAllocator> image;
00079
00080
00081 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > Ptr;
00082 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> const> ConstPtr;
00083 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00084 };
00085 typedef ::vrep_common::simRosGetVisionSensorImageResponse_<std::allocator<void> > simRosGetVisionSensorImageResponse;
00086
00087 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageResponse> simRosGetVisionSensorImageResponsePtr;
00088 typedef boost::shared_ptr< ::vrep_common::simRosGetVisionSensorImageResponse const> simRosGetVisionSensorImageResponseConstPtr;
00089
00090 struct simRosGetVisionSensorImage
00091 {
00092
00093 typedef simRosGetVisionSensorImageRequest Request;
00094 typedef simRosGetVisionSensorImageResponse Response;
00095 Request request;
00096 Response response;
00097
00098 typedef Request RequestType;
00099 typedef Response ResponseType;
00100 };
00101 }
00102
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > : public TrueType {};
00108 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> const> : public TrueType {};
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "849631fc9158c7822872c77f87a72668";
00114 }
00115
00116 static const char* value(const ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> &) { return value(); }
00117 static const uint64_t static_value1 = 0x849631fc9158c782ULL;
00118 static const uint64_t static_value2 = 0x2872c77f87a72668ULL;
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct DataType< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "vrep_common/simRosGetVisionSensorImageRequest";
00126 }
00127
00128 static const char* value(const ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct Definition< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "\n\
00136 \n\
00137 \n\
00138 \n\
00139 int32 handle\n\
00140 uint8 options\n\
00141 \n\
00142 ";
00143 }
00144
00145 static const char* value(const ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 template<class ContainerAllocator> struct IsFixedSize< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > : public TrueType {};
00149 }
00150 }
00151
00152
00153 namespace ros
00154 {
00155 namespace message_traits
00156 {
00157 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > : public TrueType {};
00158 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> const> : public TrueType {};
00159 template<class ContainerAllocator>
00160 struct MD5Sum< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > {
00161 static const char* value()
00162 {
00163 return "52755fc56cbfa4eb9fe755efd8eb5ca6";
00164 }
00165
00166 static const char* value(const ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> &) { return value(); }
00167 static const uint64_t static_value1 = 0x52755fc56cbfa4ebULL;
00168 static const uint64_t static_value2 = 0x9fe755efd8eb5ca6ULL;
00169 };
00170
00171 template<class ContainerAllocator>
00172 struct DataType< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > {
00173 static const char* value()
00174 {
00175 return "vrep_common/simRosGetVisionSensorImageResponse";
00176 }
00177
00178 static const char* value(const ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> &) { return value(); }
00179 };
00180
00181 template<class ContainerAllocator>
00182 struct Definition< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > {
00183 static const char* value()
00184 {
00185 return "int32 result\n\
00186 sensor_msgs/Image image\n\
00187 \n\
00188 \n\
00189 ================================================================================\n\
00190 MSG: sensor_msgs/Image\n\
00191 # This message contains an uncompressed image\n\
00192 # (0, 0) is at top-left corner of image\n\
00193 #\n\
00194 \n\
00195 Header header # Header timestamp should be acquisition time of image\n\
00196 # Header frame_id should be optical frame of camera\n\
00197 # origin of frame should be optical center of cameara\n\
00198 # +x should point to the right in the image\n\
00199 # +y should point down in the image\n\
00200 # +z should point into to plane of the image\n\
00201 # If the frame_id here and the frame_id of the CameraInfo\n\
00202 # message associated with the image conflict\n\
00203 # the behavior is undefined\n\
00204 \n\
00205 uint32 height # image height, that is, number of rows\n\
00206 uint32 width # image width, that is, number of columns\n\
00207 \n\
00208 # The legal values for encoding are in file src/image_encodings.cpp\n\
00209 # If you want to standardize a new string format, join\n\
00210 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00211 \n\
00212 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00213 # taken from the list of strings in src/image_encodings.cpp\n\
00214 \n\
00215 uint8 is_bigendian # is this data bigendian?\n\
00216 uint32 step # Full row length in bytes\n\
00217 uint8[] data # actual matrix data, size is (step * rows)\n\
00218 \n\
00219 ================================================================================\n\
00220 MSG: std_msgs/Header\n\
00221 # Standard metadata for higher-level stamped data types.\n\
00222 # This is generally used to communicate timestamped data \n\
00223 # in a particular coordinate frame.\n\
00224 # \n\
00225 # sequence ID: consecutively increasing ID \n\
00226 uint32 seq\n\
00227 #Two-integer timestamp that is expressed as:\n\
00228 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00229 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00230 # time-handling sugar is provided by the client library\n\
00231 time stamp\n\
00232 #Frame this data is associated with\n\
00233 # 0: no frame\n\
00234 # 1: global frame\n\
00235 string frame_id\n\
00236 \n\
00237 ";
00238 }
00239
00240 static const char* value(const ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> &) { return value(); }
00241 };
00242
00243 }
00244 }
00245
00246 namespace ros
00247 {
00248 namespace serialization
00249 {
00250
00251 template<class ContainerAllocator> struct Serializer< ::vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> >
00252 {
00253 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00254 {
00255 stream.next(m.handle);
00256 stream.next(m.options);
00257 }
00258
00259 ROS_DECLARE_ALLINONE_SERIALIZER;
00260 };
00261 }
00262 }
00263
00264
00265 namespace ros
00266 {
00267 namespace serialization
00268 {
00269
00270 template<class ContainerAllocator> struct Serializer< ::vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> >
00271 {
00272 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00273 {
00274 stream.next(m.result);
00275 stream.next(m.image);
00276 }
00277
00278 ROS_DECLARE_ALLINONE_SERIALIZER;
00279 };
00280 }
00281 }
00282
00283 namespace ros
00284 {
00285 namespace service_traits
00286 {
00287 template<>
00288 struct MD5Sum<vrep_common::simRosGetVisionSensorImage> {
00289 static const char* value()
00290 {
00291 return "c9fa464de5ffa4b5a019f79bc572d29f";
00292 }
00293
00294 static const char* value(const vrep_common::simRosGetVisionSensorImage&) { return value(); }
00295 };
00296
00297 template<>
00298 struct DataType<vrep_common::simRosGetVisionSensorImage> {
00299 static const char* value()
00300 {
00301 return "vrep_common/simRosGetVisionSensorImage";
00302 }
00303
00304 static const char* value(const vrep_common::simRosGetVisionSensorImage&) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct MD5Sum<vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "c9fa464de5ffa4b5a019f79bc572d29f";
00312 }
00313
00314 static const char* value(const vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> &) { return value(); }
00315 };
00316
00317 template<class ContainerAllocator>
00318 struct DataType<vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "vrep_common/simRosGetVisionSensorImage";
00322 }
00323
00324 static const char* value(const vrep_common::simRosGetVisionSensorImageRequest_<ContainerAllocator> &) { return value(); }
00325 };
00326
00327 template<class ContainerAllocator>
00328 struct MD5Sum<vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > {
00329 static const char* value()
00330 {
00331 return "c9fa464de5ffa4b5a019f79bc572d29f";
00332 }
00333
00334 static const char* value(const vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> &) { return value(); }
00335 };
00336
00337 template<class ContainerAllocator>
00338 struct DataType<vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> > {
00339 static const char* value()
00340 {
00341 return "vrep_common/simRosGetVisionSensorImage";
00342 }
00343
00344 static const char* value(const vrep_common::simRosGetVisionSensorImageResponse_<ContainerAllocator> &) { return value(); }
00345 };
00346
00347 }
00348 }
00349
00350 #endif // VREP_COMMON_SERVICE_SIMROSGETVISIONSENSORIMAGE_H
00351