$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/srv/GetSegmentedLine.srv */ 00002 #ifndef SR_ROBOT_MSGS_SERVICE_GETSEGMENTEDLINE_H 00003 #define SR_ROBOT_MSGS_SERVICE_GETSEGMENTEDLINE_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/PointCloud2.h" 00022 00023 namespace sr_robot_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct GetSegmentedLineRequest_ { 00027 typedef GetSegmentedLineRequest_<ContainerAllocator> Type; 00028 00029 GetSegmentedLineRequest_() 00030 { 00031 } 00032 00033 GetSegmentedLineRequest_(const ContainerAllocator& _alloc) 00034 { 00035 } 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "sr_robot_msgs/GetSegmentedLineRequest"; } 00040 public: 00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00042 00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00044 00045 private: 00046 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00049 00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00051 00052 private: 00053 static const char* __s_getServerMD5Sum_() { return "e52f6bd605c2394bdcc68a7000875e0c"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "\n\ 00061 "; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00066 00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00068 { 00069 ros::serialization::OStream stream(write_ptr, 1000000000); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 return size; 00083 } 00084 00085 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > Ptr; 00086 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> const> ConstPtr; 00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00088 }; // struct GetSegmentedLineRequest 00089 typedef ::sr_robot_msgs::GetSegmentedLineRequest_<std::allocator<void> > GetSegmentedLineRequest; 00090 00091 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineRequest> GetSegmentedLineRequestPtr; 00092 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineRequest const> GetSegmentedLineRequestConstPtr; 00093 00094 00095 template <class ContainerAllocator> 00096 struct GetSegmentedLineResponse_ { 00097 typedef GetSegmentedLineResponse_<ContainerAllocator> Type; 00098 00099 GetSegmentedLineResponse_() 00100 : line_cloud() 00101 { 00102 } 00103 00104 GetSegmentedLineResponse_(const ContainerAllocator& _alloc) 00105 : line_cloud(_alloc) 00106 { 00107 } 00108 00109 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _line_cloud_type; 00110 ::sensor_msgs::PointCloud2_<ContainerAllocator> line_cloud; 00111 00112 00113 private: 00114 static const char* __s_getDataType_() { return "sr_robot_msgs/GetSegmentedLineResponse"; } 00115 public: 00116 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00117 00118 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00119 00120 private: 00121 static const char* __s_getMD5Sum_() { return "e52f6bd605c2394bdcc68a7000875e0c"; } 00122 public: 00123 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00124 00125 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00126 00127 private: 00128 static const char* __s_getServerMD5Sum_() { return "e52f6bd605c2394bdcc68a7000875e0c"; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00131 00132 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00133 00134 private: 00135 static const char* __s_getMessageDefinition_() { return "sensor_msgs/PointCloud2 line_cloud\n\ 00136 \n\ 00137 \n\ 00138 ================================================================================\n\ 00139 MSG: sensor_msgs/PointCloud2\n\ 00140 # This message holds a collection of N-dimensional points, which may\n\ 00141 # contain additional information such as normals, intensity, etc. The\n\ 00142 # point data is stored as a binary blob, its layout described by the\n\ 00143 # contents of the \"fields\" array.\n\ 00144 \n\ 00145 # The point cloud data may be organized 2d (image-like) or 1d\n\ 00146 # (unordered). Point clouds organized as 2d images may be produced by\n\ 00147 # camera depth sensors such as stereo or time-of-flight.\n\ 00148 \n\ 00149 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\ 00150 # points).\n\ 00151 Header header\n\ 00152 \n\ 00153 # 2D structure of the point cloud. If the cloud is unordered, height is\n\ 00154 # 1 and width is the length of the point cloud.\n\ 00155 uint32 height\n\ 00156 uint32 width\n\ 00157 \n\ 00158 # Describes the channels and their layout in the binary data blob.\n\ 00159 PointField[] fields\n\ 00160 \n\ 00161 bool is_bigendian # Is this data bigendian?\n\ 00162 uint32 point_step # Length of a point in bytes\n\ 00163 uint32 row_step # Length of a row in bytes\n\ 00164 uint8[] data # Actual point data, size is (row_step*height)\n\ 00165 \n\ 00166 bool is_dense # True if there are no invalid points\n\ 00167 \n\ 00168 ================================================================================\n\ 00169 MSG: std_msgs/Header\n\ 00170 # Standard metadata for higher-level stamped data types.\n\ 00171 # This is generally used to communicate timestamped data \n\ 00172 # in a particular coordinate frame.\n\ 00173 # \n\ 00174 # sequence ID: consecutively increasing ID \n\ 00175 uint32 seq\n\ 00176 #Two-integer timestamp that is expressed as:\n\ 00177 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00178 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00179 # time-handling sugar is provided by the client library\n\ 00180 time stamp\n\ 00181 #Frame this data is associated with\n\ 00182 # 0: no frame\n\ 00183 # 1: global frame\n\ 00184 string frame_id\n\ 00185 \n\ 00186 ================================================================================\n\ 00187 MSG: sensor_msgs/PointField\n\ 00188 # This message holds the description of one point entry in the\n\ 00189 # PointCloud2 message format.\n\ 00190 uint8 INT8 = 1\n\ 00191 uint8 UINT8 = 2\n\ 00192 uint8 INT16 = 3\n\ 00193 uint8 UINT16 = 4\n\ 00194 uint8 INT32 = 5\n\ 00195 uint8 UINT32 = 6\n\ 00196 uint8 FLOAT32 = 7\n\ 00197 uint8 FLOAT64 = 8\n\ 00198 \n\ 00199 string name # Name of field\n\ 00200 uint32 offset # Offset from start of point struct\n\ 00201 uint8 datatype # Datatype enumeration, see above\n\ 00202 uint32 count # How many elements in the field\n\ 00203 \n\ 00204 "; } 00205 public: 00206 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00207 00208 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00209 00210 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00211 { 00212 ros::serialization::OStream stream(write_ptr, 1000000000); 00213 ros::serialization::serialize(stream, line_cloud); 00214 return stream.getData(); 00215 } 00216 00217 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00218 { 00219 ros::serialization::IStream stream(read_ptr, 1000000000); 00220 ros::serialization::deserialize(stream, line_cloud); 00221 return stream.getData(); 00222 } 00223 00224 ROS_DEPRECATED virtual uint32_t serializationLength() const 00225 { 00226 uint32_t size = 0; 00227 size += ros::serialization::serializationLength(line_cloud); 00228 return size; 00229 } 00230 00231 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > Ptr; 00232 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> const> ConstPtr; 00233 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00234 }; // struct GetSegmentedLineResponse 00235 typedef ::sr_robot_msgs::GetSegmentedLineResponse_<std::allocator<void> > GetSegmentedLineResponse; 00236 00237 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineResponse> GetSegmentedLineResponsePtr; 00238 typedef boost::shared_ptr< ::sr_robot_msgs::GetSegmentedLineResponse const> GetSegmentedLineResponseConstPtr; 00239 00240 struct GetSegmentedLine 00241 { 00242 00243 typedef GetSegmentedLineRequest Request; 00244 typedef GetSegmentedLineResponse Response; 00245 Request request; 00246 Response response; 00247 00248 typedef Request RequestType; 00249 typedef Response ResponseType; 00250 }; // struct GetSegmentedLine 00251 } // namespace sr_robot_msgs 00252 00253 namespace ros 00254 { 00255 namespace message_traits 00256 { 00257 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > : public TrueType {}; 00258 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> const> : public TrueType {}; 00259 template<class ContainerAllocator> 00260 struct MD5Sum< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "d41d8cd98f00b204e9800998ecf8427e"; 00264 } 00265 00266 static const char* value(const ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> &) { return value(); } 00267 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00268 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct DataType< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "sr_robot_msgs/GetSegmentedLineRequest"; 00276 } 00277 00278 static const char* value(const ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> &) { return value(); } 00279 }; 00280 00281 template<class ContainerAllocator> 00282 struct Definition< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "\n\ 00286 "; 00287 } 00288 00289 static const char* value(const ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> &) { return value(); } 00290 }; 00291 00292 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > : public TrueType {}; 00293 } // namespace message_traits 00294 } // namespace ros 00295 00296 00297 namespace ros 00298 { 00299 namespace message_traits 00300 { 00301 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > : public TrueType {}; 00302 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> const> : public TrueType {}; 00303 template<class ContainerAllocator> 00304 struct MD5Sum< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "e52f6bd605c2394bdcc68a7000875e0c"; 00308 } 00309 00310 static const char* value(const ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> &) { return value(); } 00311 static const uint64_t static_value1 = 0xe52f6bd605c2394bULL; 00312 static const uint64_t static_value2 = 0xdcc68a7000875e0cULL; 00313 }; 00314 00315 template<class ContainerAllocator> 00316 struct DataType< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > { 00317 static const char* value() 00318 { 00319 return "sr_robot_msgs/GetSegmentedLineResponse"; 00320 } 00321 00322 static const char* value(const ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> &) { return value(); } 00323 }; 00324 00325 template<class ContainerAllocator> 00326 struct Definition< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > { 00327 static const char* value() 00328 { 00329 return "sensor_msgs/PointCloud2 line_cloud\n\ 00330 \n\ 00331 \n\ 00332 ================================================================================\n\ 00333 MSG: sensor_msgs/PointCloud2\n\ 00334 # This message holds a collection of N-dimensional points, which may\n\ 00335 # contain additional information such as normals, intensity, etc. The\n\ 00336 # point data is stored as a binary blob, its layout described by the\n\ 00337 # contents of the \"fields\" array.\n\ 00338 \n\ 00339 # The point cloud data may be organized 2d (image-like) or 1d\n\ 00340 # (unordered). Point clouds organized as 2d images may be produced by\n\ 00341 # camera depth sensors such as stereo or time-of-flight.\n\ 00342 \n\ 00343 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\ 00344 # points).\n\ 00345 Header header\n\ 00346 \n\ 00347 # 2D structure of the point cloud. If the cloud is unordered, height is\n\ 00348 # 1 and width is the length of the point cloud.\n\ 00349 uint32 height\n\ 00350 uint32 width\n\ 00351 \n\ 00352 # Describes the channels and their layout in the binary data blob.\n\ 00353 PointField[] fields\n\ 00354 \n\ 00355 bool is_bigendian # Is this data bigendian?\n\ 00356 uint32 point_step # Length of a point in bytes\n\ 00357 uint32 row_step # Length of a row in bytes\n\ 00358 uint8[] data # Actual point data, size is (row_step*height)\n\ 00359 \n\ 00360 bool is_dense # True if there are no invalid points\n\ 00361 \n\ 00362 ================================================================================\n\ 00363 MSG: std_msgs/Header\n\ 00364 # Standard metadata for higher-level stamped data types.\n\ 00365 # This is generally used to communicate timestamped data \n\ 00366 # in a particular coordinate frame.\n\ 00367 # \n\ 00368 # sequence ID: consecutively increasing ID \n\ 00369 uint32 seq\n\ 00370 #Two-integer timestamp that is expressed as:\n\ 00371 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00372 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00373 # time-handling sugar is provided by the client library\n\ 00374 time stamp\n\ 00375 #Frame this data is associated with\n\ 00376 # 0: no frame\n\ 00377 # 1: global frame\n\ 00378 string frame_id\n\ 00379 \n\ 00380 ================================================================================\n\ 00381 MSG: sensor_msgs/PointField\n\ 00382 # This message holds the description of one point entry in the\n\ 00383 # PointCloud2 message format.\n\ 00384 uint8 INT8 = 1\n\ 00385 uint8 UINT8 = 2\n\ 00386 uint8 INT16 = 3\n\ 00387 uint8 UINT16 = 4\n\ 00388 uint8 INT32 = 5\n\ 00389 uint8 UINT32 = 6\n\ 00390 uint8 FLOAT32 = 7\n\ 00391 uint8 FLOAT64 = 8\n\ 00392 \n\ 00393 string name # Name of field\n\ 00394 uint32 offset # Offset from start of point struct\n\ 00395 uint8 datatype # Datatype enumeration, see above\n\ 00396 uint32 count # How many elements in the field\n\ 00397 \n\ 00398 "; 00399 } 00400 00401 static const char* value(const ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> &) { return value(); } 00402 }; 00403 00404 } // namespace message_traits 00405 } // namespace ros 00406 00407 namespace ros 00408 { 00409 namespace serialization 00410 { 00411 00412 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > 00413 { 00414 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00415 { 00416 } 00417 00418 ROS_DECLARE_ALLINONE_SERIALIZER; 00419 }; // struct GetSegmentedLineRequest_ 00420 } // namespace serialization 00421 } // namespace ros 00422 00423 00424 namespace ros 00425 { 00426 namespace serialization 00427 { 00428 00429 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > 00430 { 00431 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00432 { 00433 stream.next(m.line_cloud); 00434 } 00435 00436 ROS_DECLARE_ALLINONE_SERIALIZER; 00437 }; // struct GetSegmentedLineResponse_ 00438 } // namespace serialization 00439 } // namespace ros 00440 00441 namespace ros 00442 { 00443 namespace service_traits 00444 { 00445 template<> 00446 struct MD5Sum<sr_robot_msgs::GetSegmentedLine> { 00447 static const char* value() 00448 { 00449 return "e52f6bd605c2394bdcc68a7000875e0c"; 00450 } 00451 00452 static const char* value(const sr_robot_msgs::GetSegmentedLine&) { return value(); } 00453 }; 00454 00455 template<> 00456 struct DataType<sr_robot_msgs::GetSegmentedLine> { 00457 static const char* value() 00458 { 00459 return "sr_robot_msgs/GetSegmentedLine"; 00460 } 00461 00462 static const char* value(const sr_robot_msgs::GetSegmentedLine&) { return value(); } 00463 }; 00464 00465 template<class ContainerAllocator> 00466 struct MD5Sum<sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > { 00467 static const char* value() 00468 { 00469 return "e52f6bd605c2394bdcc68a7000875e0c"; 00470 } 00471 00472 static const char* value(const sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> &) { return value(); } 00473 }; 00474 00475 template<class ContainerAllocator> 00476 struct DataType<sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> > { 00477 static const char* value() 00478 { 00479 return "sr_robot_msgs/GetSegmentedLine"; 00480 } 00481 00482 static const char* value(const sr_robot_msgs::GetSegmentedLineRequest_<ContainerAllocator> &) { return value(); } 00483 }; 00484 00485 template<class ContainerAllocator> 00486 struct MD5Sum<sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > { 00487 static const char* value() 00488 { 00489 return "e52f6bd605c2394bdcc68a7000875e0c"; 00490 } 00491 00492 static const char* value(const sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> &) { return value(); } 00493 }; 00494 00495 template<class ContainerAllocator> 00496 struct DataType<sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> > { 00497 static const char* value() 00498 { 00499 return "sr_robot_msgs/GetSegmentedLine"; 00500 } 00501 00502 static const char* value(const sr_robot_msgs::GetSegmentedLineResponse_<ContainerAllocator> &) { return value(); } 00503 }; 00504 00505 } // namespace service_traits 00506 } // namespace ros 00507 00508 #endif // SR_ROBOT_MSGS_SERVICE_GETSEGMENTEDLINE_H 00509