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