00001
00002 #ifndef VREP_COMMON_SERVICE_SIMROSREADPROXIMITYSENSOR_H
00003 #define VREP_COMMON_SERVICE_SIMROSREADPROXIMITYSENSOR_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
00022 namespace vrep_common
00023 {
00024 template <class ContainerAllocator>
00025 struct simRosReadProximitySensorRequest_ {
00026 typedef simRosReadProximitySensorRequest_<ContainerAllocator> Type;
00027
00028 simRosReadProximitySensorRequest_()
00029 : handle(0)
00030 {
00031 }
00032
00033 simRosReadProximitySensorRequest_(const ContainerAllocator& _alloc)
00034 : handle(0)
00035 {
00036 }
00037
00038 typedef int32_t _handle_type;
00039 int32_t handle;
00040
00041
00042 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > Ptr;
00043 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> const> ConstPtr;
00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00045 };
00046 typedef ::vrep_common::simRosReadProximitySensorRequest_<std::allocator<void> > simRosReadProximitySensorRequest;
00047
00048 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorRequest> simRosReadProximitySensorRequestPtr;
00049 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorRequest const> simRosReadProximitySensorRequestConstPtr;
00050
00051
00052 template <class ContainerAllocator>
00053 struct simRosReadProximitySensorResponse_ {
00054 typedef simRosReadProximitySensorResponse_<ContainerAllocator> Type;
00055
00056 simRosReadProximitySensorResponse_()
00057 : result(0)
00058 , detectedPoint()
00059 , detectedObject(0)
00060 , normalVector()
00061 {
00062 }
00063
00064 simRosReadProximitySensorResponse_(const ContainerAllocator& _alloc)
00065 : result(0)
00066 , detectedPoint(_alloc)
00067 , detectedObject(0)
00068 , normalVector(_alloc)
00069 {
00070 }
00071
00072 typedef int32_t _result_type;
00073 int32_t result;
00074
00075 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _detectedPoint_type;
00076 std::vector<float, typename ContainerAllocator::template rebind<float>::other > detectedPoint;
00077
00078 typedef int32_t _detectedObject_type;
00079 int32_t detectedObject;
00080
00081 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _normalVector_type;
00082 std::vector<float, typename ContainerAllocator::template rebind<float>::other > normalVector;
00083
00084
00085 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > Ptr;
00086 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> const> ConstPtr;
00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00088 };
00089 typedef ::vrep_common::simRosReadProximitySensorResponse_<std::allocator<void> > simRosReadProximitySensorResponse;
00090
00091 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorResponse> simRosReadProximitySensorResponsePtr;
00092 typedef boost::shared_ptr< ::vrep_common::simRosReadProximitySensorResponse const> simRosReadProximitySensorResponseConstPtr;
00093
00094 struct simRosReadProximitySensor
00095 {
00096
00097 typedef simRosReadProximitySensorRequest Request;
00098 typedef simRosReadProximitySensorResponse Response;
00099 Request request;
00100 Response response;
00101
00102 typedef Request RequestType;
00103 typedef Response ResponseType;
00104 };
00105 }
00106
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > : public TrueType {};
00112 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> const> : public TrueType {};
00113 template<class ContainerAllocator>
00114 struct MD5Sum< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "92535b678299d2bdda959704e78c275e";
00118 }
00119
00120 static const char* value(const ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> &) { return value(); }
00121 static const uint64_t static_value1 = 0x92535b678299d2bdULL;
00122 static const uint64_t static_value2 = 0xda959704e78c275eULL;
00123 };
00124
00125 template<class ContainerAllocator>
00126 struct DataType< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "vrep_common/simRosReadProximitySensorRequest";
00130 }
00131
00132 static const char* value(const ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> &) { return value(); }
00133 };
00134
00135 template<class ContainerAllocator>
00136 struct Definition< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "\n\
00140 \n\
00141 \n\
00142 \n\
00143 int32 handle\n\
00144 \n\
00145 ";
00146 }
00147
00148 static const char* value(const ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator> struct IsFixedSize< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > : public TrueType {};
00152 }
00153 }
00154
00155
00156 namespace ros
00157 {
00158 namespace message_traits
00159 {
00160 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > : public TrueType {};
00161 template<class ContainerAllocator> struct IsMessage< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> const> : public TrueType {};
00162 template<class ContainerAllocator>
00163 struct MD5Sum< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "6d96957b6da2491c9e2ffcfcd60996ad";
00167 }
00168
00169 static const char* value(const ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> &) { return value(); }
00170 static const uint64_t static_value1 = 0x6d96957b6da2491cULL;
00171 static const uint64_t static_value2 = 0x9e2ffcfcd60996adULL;
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct DataType< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "vrep_common/simRosReadProximitySensorResponse";
00179 }
00180
00181 static const char* value(const ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 template<class ContainerAllocator>
00185 struct Definition< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "int32 result\n\
00189 float32[] detectedPoint\n\
00190 int32 detectedObject\n\
00191 float32[] normalVector\n\
00192 \n\
00193 \n\
00194 ";
00195 }
00196
00197 static const char* value(const ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> &) { return value(); }
00198 };
00199
00200 }
00201 }
00202
00203 namespace ros
00204 {
00205 namespace serialization
00206 {
00207
00208 template<class ContainerAllocator> struct Serializer< ::vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> >
00209 {
00210 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00211 {
00212 stream.next(m.handle);
00213 }
00214
00215 ROS_DECLARE_ALLINONE_SERIALIZER;
00216 };
00217 }
00218 }
00219
00220
00221 namespace ros
00222 {
00223 namespace serialization
00224 {
00225
00226 template<class ContainerAllocator> struct Serializer< ::vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> >
00227 {
00228 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00229 {
00230 stream.next(m.result);
00231 stream.next(m.detectedPoint);
00232 stream.next(m.detectedObject);
00233 stream.next(m.normalVector);
00234 }
00235
00236 ROS_DECLARE_ALLINONE_SERIALIZER;
00237 };
00238 }
00239 }
00240
00241 namespace ros
00242 {
00243 namespace service_traits
00244 {
00245 template<>
00246 struct MD5Sum<vrep_common::simRosReadProximitySensor> {
00247 static const char* value()
00248 {
00249 return "05a1fa096e5ff4ba7072c60e22ef589e";
00250 }
00251
00252 static const char* value(const vrep_common::simRosReadProximitySensor&) { return value(); }
00253 };
00254
00255 template<>
00256 struct DataType<vrep_common::simRosReadProximitySensor> {
00257 static const char* value()
00258 {
00259 return "vrep_common/simRosReadProximitySensor";
00260 }
00261
00262 static const char* value(const vrep_common::simRosReadProximitySensor&) { return value(); }
00263 };
00264
00265 template<class ContainerAllocator>
00266 struct MD5Sum<vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > {
00267 static const char* value()
00268 {
00269 return "05a1fa096e5ff4ba7072c60e22ef589e";
00270 }
00271
00272 static const char* value(const vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> &) { return value(); }
00273 };
00274
00275 template<class ContainerAllocator>
00276 struct DataType<vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> > {
00277 static const char* value()
00278 {
00279 return "vrep_common/simRosReadProximitySensor";
00280 }
00281
00282 static const char* value(const vrep_common::simRosReadProximitySensorRequest_<ContainerAllocator> &) { return value(); }
00283 };
00284
00285 template<class ContainerAllocator>
00286 struct MD5Sum<vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > {
00287 static const char* value()
00288 {
00289 return "05a1fa096e5ff4ba7072c60e22ef589e";
00290 }
00291
00292 static const char* value(const vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> &) { return value(); }
00293 };
00294
00295 template<class ContainerAllocator>
00296 struct DataType<vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> > {
00297 static const char* value()
00298 {
00299 return "vrep_common/simRosReadProximitySensor";
00300 }
00301
00302 static const char* value(const vrep_common::simRosReadProximitySensorResponse_<ContainerAllocator> &) { return value(); }
00303 };
00304
00305 }
00306 }
00307
00308 #endif // VREP_COMMON_SERVICE_SIMROSREADPROXIMITYSENSOR_H
00309