Go to the documentation of this file.00001
00002 #ifndef SRS_LEG_DETECTOR_SERVICE_DETECTLEGS_H
00003 #define SRS_LEG_DETECTOR_SERVICE_DETECTLEGS_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/PointCloud.h"
00022
00023 namespace srs_leg_detector
00024 {
00025 template <class ContainerAllocator>
00026 struct DetectLegsRequest_ {
00027 typedef DetectLegsRequest_<ContainerAllocator> Type;
00028
00029 DetectLegsRequest_()
00030 {
00031 }
00032
00033 DetectLegsRequest_(const ContainerAllocator& _alloc)
00034 {
00035 }
00036
00037
00038 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > Ptr;
00039 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> const> ConstPtr;
00040 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00041 };
00042 typedef ::srs_leg_detector::DetectLegsRequest_<std::allocator<void> > DetectLegsRequest;
00043
00044 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsRequest> DetectLegsRequestPtr;
00045 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsRequest const> DetectLegsRequestConstPtr;
00046
00047
00048 template <class ContainerAllocator>
00049 struct DetectLegsResponse_ {
00050 typedef DetectLegsResponse_<ContainerAllocator> Type;
00051
00052 DetectLegsResponse_()
00053 : leg_list()
00054 {
00055 }
00056
00057 DetectLegsResponse_(const ContainerAllocator& _alloc)
00058 : leg_list(_alloc)
00059 {
00060 }
00061
00062 typedef ::sensor_msgs::PointCloud_<ContainerAllocator> _leg_list_type;
00063 ::sensor_msgs::PointCloud_<ContainerAllocator> leg_list;
00064
00065
00066 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > Ptr;
00067 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> const> ConstPtr;
00068 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00069 };
00070 typedef ::srs_leg_detector::DetectLegsResponse_<std::allocator<void> > DetectLegsResponse;
00071
00072 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsResponse> DetectLegsResponsePtr;
00073 typedef boost::shared_ptr< ::srs_leg_detector::DetectLegsResponse const> DetectLegsResponseConstPtr;
00074
00075 struct DetectLegs
00076 {
00077
00078 typedef DetectLegsRequest Request;
00079 typedef DetectLegsResponse Response;
00080 Request request;
00081 Response response;
00082
00083 typedef Request RequestType;
00084 typedef Response ResponseType;
00085 };
00086 }
00087
00088 namespace ros
00089 {
00090 namespace message_traits
00091 {
00092 template<class ContainerAllocator> struct IsMessage< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > : public TrueType {};
00093 template<class ContainerAllocator> struct IsMessage< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> const> : public TrueType {};
00094 template<class ContainerAllocator>
00095 struct MD5Sum< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "d41d8cd98f00b204e9800998ecf8427e";
00099 }
00100
00101 static const char* value(const ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> &) { return value(); }
00102 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00103 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00104 };
00105
00106 template<class ContainerAllocator>
00107 struct DataType< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > {
00108 static const char* value()
00109 {
00110 return "srs_leg_detector/DetectLegsRequest";
00111 }
00112
00113 static const char* value(const ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> &) { return value(); }
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct Definition< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "\n\
00121 \n\
00122 ";
00123 }
00124
00125 static const char* value(const ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> &) { return value(); }
00126 };
00127
00128 template<class ContainerAllocator> struct IsFixedSize< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > : public TrueType {};
00129 }
00130 }
00131
00132
00133 namespace ros
00134 {
00135 namespace message_traits
00136 {
00137 template<class ContainerAllocator> struct IsMessage< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > : public TrueType {};
00138 template<class ContainerAllocator> struct IsMessage< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> const> : public TrueType {};
00139 template<class ContainerAllocator>
00140 struct MD5Sum< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "941854f3e81fd64b94eaa0d5b1ad95e1";
00144 }
00145
00146 static const char* value(const ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> &) { return value(); }
00147 static const uint64_t static_value1 = 0x941854f3e81fd64bULL;
00148 static const uint64_t static_value2 = 0x94eaa0d5b1ad95e1ULL;
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct DataType< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "srs_leg_detector/DetectLegsResponse";
00156 }
00157
00158 static const char* value(const ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> &) { return value(); }
00159 };
00160
00161 template<class ContainerAllocator>
00162 struct Definition< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "\n\
00166 sensor_msgs/PointCloud leg_list\n\
00167 \n\
00168 \n\
00169 ================================================================================\n\
00170 MSG: sensor_msgs/PointCloud\n\
00171 # This message holds a collection of 3d points, plus optional additional\n\
00172 # information about each point.\n\
00173 \n\
00174 # Time of sensor data acquisition, coordinate frame ID.\n\
00175 Header header\n\
00176 \n\
00177 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00178 # in the frame given in the header.\n\
00179 geometry_msgs/Point32[] points\n\
00180 \n\
00181 # Each channel should have the same number of elements as points array,\n\
00182 # and the data in each channel should correspond 1:1 with each point.\n\
00183 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00184 ChannelFloat32[] channels\n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: std_msgs/Header\n\
00188 # Standard metadata for higher-level stamped data types.\n\
00189 # This is generally used to communicate timestamped data \n\
00190 # in a particular coordinate frame.\n\
00191 # \n\
00192 # sequence ID: consecutively increasing ID \n\
00193 uint32 seq\n\
00194 #Two-integer timestamp that is expressed as:\n\
00195 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00196 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00197 # time-handling sugar is provided by the client library\n\
00198 time stamp\n\
00199 #Frame this data is associated with\n\
00200 # 0: no frame\n\
00201 # 1: global frame\n\
00202 string frame_id\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: geometry_msgs/Point32\n\
00206 # This contains the position of a point in free space(with 32 bits of precision).\n\
00207 # It is recommeded to use Point wherever possible instead of Point32. \n\
00208 # \n\
00209 # This recommendation is to promote interoperability. \n\
00210 #\n\
00211 # This message is designed to take up less space when sending\n\
00212 # lots of points at once, as in the case of a PointCloud. \n\
00213 \n\
00214 float32 x\n\
00215 float32 y\n\
00216 float32 z\n\
00217 ================================================================================\n\
00218 MSG: sensor_msgs/ChannelFloat32\n\
00219 # This message is used by the PointCloud message to hold optional data\n\
00220 # associated with each point in the cloud. The length of the values\n\
00221 # array should be the same as the length of the points array in the\n\
00222 # PointCloud, and each value should be associated with the corresponding\n\
00223 # point.\n\
00224 \n\
00225 # Channel names in existing practice include:\n\
00226 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00227 # This is opposite to usual conventions but remains for\n\
00228 # historical reasons. The newer PointCloud2 message has no\n\
00229 # such problem.\n\
00230 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00231 # (R,G,B) values packed into the least significant 24 bits,\n\
00232 # in order.\n\
00233 # \"intensity\" - laser or pixel intensity.\n\
00234 # \"distance\"\n\
00235 \n\
00236 # The channel name should give semantics of the channel (e.g.\n\
00237 # \"intensity\" instead of \"value\").\n\
00238 string name\n\
00239 \n\
00240 # The values array should be 1-1 with the elements of the associated\n\
00241 # PointCloud.\n\
00242 float32[] values\n\
00243 \n\
00244 ";
00245 }
00246
00247 static const char* value(const ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 }
00251 }
00252
00253 namespace ros
00254 {
00255 namespace serialization
00256 {
00257
00258 template<class ContainerAllocator> struct Serializer< ::srs_leg_detector::DetectLegsRequest_<ContainerAllocator> >
00259 {
00260 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00261 {
00262 }
00263
00264 ROS_DECLARE_ALLINONE_SERIALIZER;
00265 };
00266 }
00267 }
00268
00269
00270 namespace ros
00271 {
00272 namespace serialization
00273 {
00274
00275 template<class ContainerAllocator> struct Serializer< ::srs_leg_detector::DetectLegsResponse_<ContainerAllocator> >
00276 {
00277 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00278 {
00279 stream.next(m.leg_list);
00280 }
00281
00282 ROS_DECLARE_ALLINONE_SERIALIZER;
00283 };
00284 }
00285 }
00286
00287 namespace ros
00288 {
00289 namespace service_traits
00290 {
00291 template<>
00292 struct MD5Sum<srs_leg_detector::DetectLegs> {
00293 static const char* value()
00294 {
00295 return "941854f3e81fd64b94eaa0d5b1ad95e1";
00296 }
00297
00298 static const char* value(const srs_leg_detector::DetectLegs&) { return value(); }
00299 };
00300
00301 template<>
00302 struct DataType<srs_leg_detector::DetectLegs> {
00303 static const char* value()
00304 {
00305 return "srs_leg_detector/DetectLegs";
00306 }
00307
00308 static const char* value(const srs_leg_detector::DetectLegs&) { return value(); }
00309 };
00310
00311 template<class ContainerAllocator>
00312 struct MD5Sum<srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > {
00313 static const char* value()
00314 {
00315 return "941854f3e81fd64b94eaa0d5b1ad95e1";
00316 }
00317
00318 static const char* value(const srs_leg_detector::DetectLegsRequest_<ContainerAllocator> &) { return value(); }
00319 };
00320
00321 template<class ContainerAllocator>
00322 struct DataType<srs_leg_detector::DetectLegsRequest_<ContainerAllocator> > {
00323 static const char* value()
00324 {
00325 return "srs_leg_detector/DetectLegs";
00326 }
00327
00328 static const char* value(const srs_leg_detector::DetectLegsRequest_<ContainerAllocator> &) { return value(); }
00329 };
00330
00331 template<class ContainerAllocator>
00332 struct MD5Sum<srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > {
00333 static const char* value()
00334 {
00335 return "941854f3e81fd64b94eaa0d5b1ad95e1";
00336 }
00337
00338 static const char* value(const srs_leg_detector::DetectLegsResponse_<ContainerAllocator> &) { return value(); }
00339 };
00340
00341 template<class ContainerAllocator>
00342 struct DataType<srs_leg_detector::DetectLegsResponse_<ContainerAllocator> > {
00343 static const char* value()
00344 {
00345 return "srs_leg_detector/DetectLegs";
00346 }
00347
00348 static const char* value(const srs_leg_detector::DetectLegsResponse_<ContainerAllocator> &) { return value(); }
00349 };
00350
00351 }
00352 }
00353
00354 #endif // SRS_LEG_DETECTOR_SERVICE_DETECTLEGS_H
00355