00001
00002 #ifndef LASER_ASSEMBLER_SERVICE_ASSEMBLESCANS_H
00003 #define LASER_ASSEMBLER_SERVICE_ASSEMBLESCANS_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017 #include "sensor_msgs/PointCloud.h"
00018
00019 namespace laser_assembler
00020 {
00021 template <class ContainerAllocator>
00022 struct AssembleScansRequest_ : public ros::Message
00023 {
00024 typedef AssembleScansRequest_<ContainerAllocator> Type;
00025
00026 AssembleScansRequest_()
00027 : begin()
00028 , end()
00029 {
00030 }
00031
00032 AssembleScansRequest_(const ContainerAllocator& _alloc)
00033 : begin()
00034 , end()
00035 {
00036 }
00037
00038 typedef ros::Time _begin_type;
00039 ros::Time begin;
00040
00041 typedef ros::Time _end_type;
00042 ros::Time end;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "laser_assembler/AssembleScansRequest"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "b341004f74e15bf5e1b2053a9183bdc7"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getServerMD5Sum_() { return "6d5cec00dca23821eae6bd7449078aa7"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00063
00064 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00065
00066 private:
00067 static const char* __s_getMessageDefinition_() { return "\n\
00068 time begin\n\
00069 \n\
00070 time end\n\
00071 \n\
00072 "; }
00073 public:
00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00075
00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00079 {
00080 ros::serialization::OStream stream(write_ptr, 1000000000);
00081 ros::serialization::serialize(stream, begin);
00082 ros::serialization::serialize(stream, end);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00087 {
00088 ros::serialization::IStream stream(read_ptr, 1000000000);
00089 ros::serialization::deserialize(stream, begin);
00090 ros::serialization::deserialize(stream, end);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint32_t serializationLength() const
00095 {
00096 uint32_t size = 0;
00097 size += ros::serialization::serializationLength(begin);
00098 size += ros::serialization::serializationLength(end);
00099 return size;
00100 }
00101
00102 typedef boost::shared_ptr< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> > Ptr;
00103 typedef boost::shared_ptr< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> const> ConstPtr;
00104 };
00105 typedef ::laser_assembler::AssembleScansRequest_<std::allocator<void> > AssembleScansRequest;
00106
00107 typedef boost::shared_ptr< ::laser_assembler::AssembleScansRequest> AssembleScansRequestPtr;
00108 typedef boost::shared_ptr< ::laser_assembler::AssembleScansRequest const> AssembleScansRequestConstPtr;
00109
00110
00111 template <class ContainerAllocator>
00112 struct AssembleScansResponse_ : public ros::Message
00113 {
00114 typedef AssembleScansResponse_<ContainerAllocator> Type;
00115
00116 AssembleScansResponse_()
00117 : cloud()
00118 {
00119 }
00120
00121 AssembleScansResponse_(const ContainerAllocator& _alloc)
00122 : cloud(_alloc)
00123 {
00124 }
00125
00126 typedef ::sensor_msgs::PointCloud_<ContainerAllocator> _cloud_type;
00127 ::sensor_msgs::PointCloud_<ContainerAllocator> cloud;
00128
00129
00130 private:
00131 static const char* __s_getDataType_() { return "laser_assembler/AssembleScansResponse"; }
00132 public:
00133 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00134
00135 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00136
00137 private:
00138 static const char* __s_getMD5Sum_() { return "4217b28a903e4ad7869a83b3653110ff"; }
00139 public:
00140 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00141
00142 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00143
00144 private:
00145 static const char* __s_getServerMD5Sum_() { return "6d5cec00dca23821eae6bd7449078aa7"; }
00146 public:
00147 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00148
00149 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00150
00151 private:
00152 static const char* __s_getMessageDefinition_() { return "\n\
00153 \n\
00154 \n\
00155 sensor_msgs/PointCloud cloud\n\
00156 \n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: sensor_msgs/PointCloud\n\
00160 # This message holds a collection of 3d points, plus optional additional\n\
00161 # information about each point.\n\
00162 \n\
00163 # Time of sensor data acquisition, coordinate frame ID.\n\
00164 Header header\n\
00165 \n\
00166 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00167 # in the frame given in the header.\n\
00168 geometry_msgs/Point32[] points\n\
00169 \n\
00170 # Each channel should have the same number of elements as points array,\n\
00171 # and the data in each channel should correspond 1:1 with each point.\n\
00172 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00173 ChannelFloat32[] channels\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: std_msgs/Header\n\
00177 # Standard metadata for higher-level stamped data types.\n\
00178 # This is generally used to communicate timestamped data \n\
00179 # in a particular coordinate frame.\n\
00180 # \n\
00181 # sequence ID: consecutively increasing ID \n\
00182 uint32 seq\n\
00183 #Two-integer timestamp that is expressed as:\n\
00184 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00185 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00186 # time-handling sugar is provided by the client library\n\
00187 time stamp\n\
00188 #Frame this data is associated with\n\
00189 # 0: no frame\n\
00190 # 1: global frame\n\
00191 string frame_id\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/Point32\n\
00195 # This contains the position of a point in free space(with 32 bits of precision).\n\
00196 # It is recommeded to use Point wherever possible instead of Point32. \n\
00197 # \n\
00198 # This recommendation is to promote interoperability. \n\
00199 #\n\
00200 # This message is designed to take up less space when sending\n\
00201 # lots of points at once, as in the case of a PointCloud. \n\
00202 \n\
00203 float32 x\n\
00204 float32 y\n\
00205 float32 z\n\
00206 ================================================================================\n\
00207 MSG: sensor_msgs/ChannelFloat32\n\
00208 # This message is used by the PointCloud message to hold optional data\n\
00209 # associated with each point in the cloud. The length of the values\n\
00210 # array should be the same as the length of the points array in the\n\
00211 # PointCloud, and each value should be associated with the corresponding\n\
00212 # point.\n\
00213 \n\
00214 # Channel names in existing practice include:\n\
00215 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00216 # This is opposite to usual conventions but remains for\n\
00217 # historical reasons. The newer PointCloud2 message has no\n\
00218 # such problem.\n\
00219 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00220 # (R,G,B) values packed into the least significant 24 bits,\n\
00221 # in order.\n\
00222 # \"intensity\" - laser or pixel intensity.\n\
00223 # \"distance\"\n\
00224 \n\
00225 # The channel name should give semantics of the channel (e.g.\n\
00226 # \"intensity\" instead of \"value\").\n\
00227 string name\n\
00228 \n\
00229 # The values array should be 1-1 with the elements of the associated\n\
00230 # PointCloud.\n\
00231 float32[] values\n\
00232 \n\
00233 "; }
00234 public:
00235 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00236
00237 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00238
00239 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00240 {
00241 ros::serialization::OStream stream(write_ptr, 1000000000);
00242 ros::serialization::serialize(stream, cloud);
00243 return stream.getData();
00244 }
00245
00246 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00247 {
00248 ros::serialization::IStream stream(read_ptr, 1000000000);
00249 ros::serialization::deserialize(stream, cloud);
00250 return stream.getData();
00251 }
00252
00253 ROS_DEPRECATED virtual uint32_t serializationLength() const
00254 {
00255 uint32_t size = 0;
00256 size += ros::serialization::serializationLength(cloud);
00257 return size;
00258 }
00259
00260 typedef boost::shared_ptr< ::laser_assembler::AssembleScansResponse_<ContainerAllocator> > Ptr;
00261 typedef boost::shared_ptr< ::laser_assembler::AssembleScansResponse_<ContainerAllocator> const> ConstPtr;
00262 };
00263 typedef ::laser_assembler::AssembleScansResponse_<std::allocator<void> > AssembleScansResponse;
00264
00265 typedef boost::shared_ptr< ::laser_assembler::AssembleScansResponse> AssembleScansResponsePtr;
00266 typedef boost::shared_ptr< ::laser_assembler::AssembleScansResponse const> AssembleScansResponseConstPtr;
00267
00268 struct AssembleScans
00269 {
00270
00271 typedef AssembleScansRequest Request;
00272 typedef AssembleScansResponse Response;
00273 Request request;
00274 Response response;
00275
00276 typedef Request RequestType;
00277 typedef Response ResponseType;
00278 };
00279 }
00280
00281 namespace ros
00282 {
00283 namespace message_traits
00284 {
00285 template<class ContainerAllocator>
00286 struct MD5Sum< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> > {
00287 static const char* value()
00288 {
00289 return "b341004f74e15bf5e1b2053a9183bdc7";
00290 }
00291
00292 static const char* value(const ::laser_assembler::AssembleScansRequest_<ContainerAllocator> &) { return value(); }
00293 static const uint64_t static_value1 = 0xb341004f74e15bf5ULL;
00294 static const uint64_t static_value2 = 0xe1b2053a9183bdc7ULL;
00295 };
00296
00297 template<class ContainerAllocator>
00298 struct DataType< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "laser_assembler/AssembleScansRequest";
00302 }
00303
00304 static const char* value(const ::laser_assembler::AssembleScansRequest_<ContainerAllocator> &) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct Definition< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "\n\
00312 time begin\n\
00313 \n\
00314 time end\n\
00315 \n\
00316 ";
00317 }
00318
00319 static const char* value(const ::laser_assembler::AssembleScansRequest_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator> struct IsFixedSize< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> > : public TrueType {};
00323 }
00324 }
00325
00326
00327 namespace ros
00328 {
00329 namespace message_traits
00330 {
00331 template<class ContainerAllocator>
00332 struct MD5Sum< ::laser_assembler::AssembleScansResponse_<ContainerAllocator> > {
00333 static const char* value()
00334 {
00335 return "4217b28a903e4ad7869a83b3653110ff";
00336 }
00337
00338 static const char* value(const ::laser_assembler::AssembleScansResponse_<ContainerAllocator> &) { return value(); }
00339 static const uint64_t static_value1 = 0x4217b28a903e4ad7ULL;
00340 static const uint64_t static_value2 = 0x869a83b3653110ffULL;
00341 };
00342
00343 template<class ContainerAllocator>
00344 struct DataType< ::laser_assembler::AssembleScansResponse_<ContainerAllocator> > {
00345 static const char* value()
00346 {
00347 return "laser_assembler/AssembleScansResponse";
00348 }
00349
00350 static const char* value(const ::laser_assembler::AssembleScansResponse_<ContainerAllocator> &) { return value(); }
00351 };
00352
00353 template<class ContainerAllocator>
00354 struct Definition< ::laser_assembler::AssembleScansResponse_<ContainerAllocator> > {
00355 static const char* value()
00356 {
00357 return "\n\
00358 \n\
00359 \n\
00360 sensor_msgs/PointCloud cloud\n\
00361 \n\
00362 \n\
00363 ================================================================================\n\
00364 MSG: sensor_msgs/PointCloud\n\
00365 # This message holds a collection of 3d points, plus optional additional\n\
00366 # information about each point.\n\
00367 \n\
00368 # Time of sensor data acquisition, coordinate frame ID.\n\
00369 Header header\n\
00370 \n\
00371 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00372 # in the frame given in the header.\n\
00373 geometry_msgs/Point32[] points\n\
00374 \n\
00375 # Each channel should have the same number of elements as points array,\n\
00376 # and the data in each channel should correspond 1:1 with each point.\n\
00377 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00378 ChannelFloat32[] channels\n\
00379 \n\
00380 ================================================================================\n\
00381 MSG: std_msgs/Header\n\
00382 # Standard metadata for higher-level stamped data types.\n\
00383 # This is generally used to communicate timestamped data \n\
00384 # in a particular coordinate frame.\n\
00385 # \n\
00386 # sequence ID: consecutively increasing ID \n\
00387 uint32 seq\n\
00388 #Two-integer timestamp that is expressed as:\n\
00389 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00390 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00391 # time-handling sugar is provided by the client library\n\
00392 time stamp\n\
00393 #Frame this data is associated with\n\
00394 # 0: no frame\n\
00395 # 1: global frame\n\
00396 string frame_id\n\
00397 \n\
00398 ================================================================================\n\
00399 MSG: geometry_msgs/Point32\n\
00400 # This contains the position of a point in free space(with 32 bits of precision).\n\
00401 # It is recommeded to use Point wherever possible instead of Point32. \n\
00402 # \n\
00403 # This recommendation is to promote interoperability. \n\
00404 #\n\
00405 # This message is designed to take up less space when sending\n\
00406 # lots of points at once, as in the case of a PointCloud. \n\
00407 \n\
00408 float32 x\n\
00409 float32 y\n\
00410 float32 z\n\
00411 ================================================================================\n\
00412 MSG: sensor_msgs/ChannelFloat32\n\
00413 # This message is used by the PointCloud message to hold optional data\n\
00414 # associated with each point in the cloud. The length of the values\n\
00415 # array should be the same as the length of the points array in the\n\
00416 # PointCloud, and each value should be associated with the corresponding\n\
00417 # point.\n\
00418 \n\
00419 # Channel names in existing practice include:\n\
00420 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00421 # This is opposite to usual conventions but remains for\n\
00422 # historical reasons. The newer PointCloud2 message has no\n\
00423 # such problem.\n\
00424 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00425 # (R,G,B) values packed into the least significant 24 bits,\n\
00426 # in order.\n\
00427 # \"intensity\" - laser or pixel intensity.\n\
00428 # \"distance\"\n\
00429 \n\
00430 # The channel name should give semantics of the channel (e.g.\n\
00431 # \"intensity\" instead of \"value\").\n\
00432 string name\n\
00433 \n\
00434 # The values array should be 1-1 with the elements of the associated\n\
00435 # PointCloud.\n\
00436 float32[] values\n\
00437 \n\
00438 ";
00439 }
00440
00441 static const char* value(const ::laser_assembler::AssembleScansResponse_<ContainerAllocator> &) { return value(); }
00442 };
00443
00444 }
00445 }
00446
00447 namespace ros
00448 {
00449 namespace serialization
00450 {
00451
00452 template<class ContainerAllocator> struct Serializer< ::laser_assembler::AssembleScansRequest_<ContainerAllocator> >
00453 {
00454 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00455 {
00456 stream.next(m.begin);
00457 stream.next(m.end);
00458 }
00459
00460 ROS_DECLARE_ALLINONE_SERIALIZER;
00461 };
00462 }
00463 }
00464
00465
00466 namespace ros
00467 {
00468 namespace serialization
00469 {
00470
00471 template<class ContainerAllocator> struct Serializer< ::laser_assembler::AssembleScansResponse_<ContainerAllocator> >
00472 {
00473 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00474 {
00475 stream.next(m.cloud);
00476 }
00477
00478 ROS_DECLARE_ALLINONE_SERIALIZER;
00479 };
00480 }
00481 }
00482
00483 namespace ros
00484 {
00485 namespace service_traits
00486 {
00487 template<>
00488 struct MD5Sum<laser_assembler::AssembleScans> {
00489 static const char* value()
00490 {
00491 return "6d5cec00dca23821eae6bd7449078aa7";
00492 }
00493
00494 static const char* value(const laser_assembler::AssembleScans&) { return value(); }
00495 };
00496
00497 template<>
00498 struct DataType<laser_assembler::AssembleScans> {
00499 static const char* value()
00500 {
00501 return "laser_assembler/AssembleScans";
00502 }
00503
00504 static const char* value(const laser_assembler::AssembleScans&) { return value(); }
00505 };
00506
00507 template<class ContainerAllocator>
00508 struct MD5Sum<laser_assembler::AssembleScansRequest_<ContainerAllocator> > {
00509 static const char* value()
00510 {
00511 return "6d5cec00dca23821eae6bd7449078aa7";
00512 }
00513
00514 static const char* value(const laser_assembler::AssembleScansRequest_<ContainerAllocator> &) { return value(); }
00515 };
00516
00517 template<class ContainerAllocator>
00518 struct DataType<laser_assembler::AssembleScansRequest_<ContainerAllocator> > {
00519 static const char* value()
00520 {
00521 return "laser_assembler/AssembleScans";
00522 }
00523
00524 static const char* value(const laser_assembler::AssembleScansRequest_<ContainerAllocator> &) { return value(); }
00525 };
00526
00527 template<class ContainerAllocator>
00528 struct MD5Sum<laser_assembler::AssembleScansResponse_<ContainerAllocator> > {
00529 static const char* value()
00530 {
00531 return "6d5cec00dca23821eae6bd7449078aa7";
00532 }
00533
00534 static const char* value(const laser_assembler::AssembleScansResponse_<ContainerAllocator> &) { return value(); }
00535 };
00536
00537 template<class ContainerAllocator>
00538 struct DataType<laser_assembler::AssembleScansResponse_<ContainerAllocator> > {
00539 static const char* value()
00540 {
00541 return "laser_assembler/AssembleScans";
00542 }
00543
00544 static const char* value(const laser_assembler::AssembleScansResponse_<ContainerAllocator> &) { return value(); }
00545 };
00546
00547 }
00548 }
00549
00550 #endif // LASER_ASSEMBLER_SERVICE_ASSEMBLESCANS_H
00551