00001
00002 #ifndef LASER_SLAM_SERVICE_RECENTSCANTIME_H
00003 #define LASER_SLAM_SERVICE_RECENTSCANTIME_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
00018 namespace laser_slam
00019 {
00020 template <class ContainerAllocator>
00021 struct RecentScanTimeRequest_ : public ros::Message
00022 {
00023 typedef RecentScanTimeRequest_<ContainerAllocator> Type;
00024
00025 RecentScanTimeRequest_()
00026 : t1()
00027 , t2()
00028 {
00029 }
00030
00031 RecentScanTimeRequest_(const ContainerAllocator& _alloc)
00032 : t1()
00033 , t2()
00034 {
00035 }
00036
00037 typedef ros::Time _t1_type;
00038 ros::Time t1;
00039
00040 typedef ros::Time _t2_type;
00041 ros::Time t2;
00042
00043
00044 private:
00045 static const char* __s_getDataType_() { return "laser_slam/RecentScanTimeRequest"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00048
00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00050
00051 private:
00052 static const char* __s_getMD5Sum_() { return "636acdcf9cff2656f32f60d631b1e915"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getServerMD5Sum_() { return "cdd594f6cb6fa1a1b9db91fa9de1847b"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "time t1\n\
00067 time t2\n\
00068 \n\
00069 "; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00076 {
00077 ros::serialization::OStream stream(write_ptr, 1000000000);
00078 ros::serialization::serialize(stream, t1);
00079 ros::serialization::serialize(stream, t2);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00084 {
00085 ros::serialization::IStream stream(read_ptr, 1000000000);
00086 ros::serialization::deserialize(stream, t1);
00087 ros::serialization::deserialize(stream, t2);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint32_t serializationLength() const
00092 {
00093 uint32_t size = 0;
00094 size += ros::serialization::serializationLength(t1);
00095 size += ros::serialization::serializationLength(t2);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::laser_slam::RecentScanTimeRequest_<std::allocator<void> > RecentScanTimeRequest;
00103
00104 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeRequest> RecentScanTimeRequestPtr;
00105 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeRequest const> RecentScanTimeRequestConstPtr;
00106
00107
00108 template <class ContainerAllocator>
00109 struct RecentScanTimeResponse_ : public ros::Message
00110 {
00111 typedef RecentScanTimeResponse_<ContainerAllocator> Type;
00112
00113 RecentScanTimeResponse_()
00114 : found(false)
00115 , t()
00116 {
00117 }
00118
00119 RecentScanTimeResponse_(const ContainerAllocator& _alloc)
00120 : found(false)
00121 , t()
00122 {
00123 }
00124
00125 typedef uint8_t _found_type;
00126 uint8_t found;
00127
00128 typedef ros::Time _t_type;
00129 ros::Time t;
00130
00131
00132 private:
00133 static const char* __s_getDataType_() { return "laser_slam/RecentScanTimeResponse"; }
00134 public:
00135 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00136
00137 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00138
00139 private:
00140 static const char* __s_getMD5Sum_() { return "a0cf51c4871882ea146d55ce23ae4273"; }
00141 public:
00142 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00143
00144 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00145
00146 private:
00147 static const char* __s_getServerMD5Sum_() { return "cdd594f6cb6fa1a1b9db91fa9de1847b"; }
00148 public:
00149 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00150
00151 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00152
00153 private:
00154 static const char* __s_getMessageDefinition_() { return "bool found\n\
00155 time t\n\
00156 \n\
00157 "; }
00158 public:
00159 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00160
00161 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00162
00163 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00164 {
00165 ros::serialization::OStream stream(write_ptr, 1000000000);
00166 ros::serialization::serialize(stream, found);
00167 ros::serialization::serialize(stream, t);
00168 return stream.getData();
00169 }
00170
00171 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00172 {
00173 ros::serialization::IStream stream(read_ptr, 1000000000);
00174 ros::serialization::deserialize(stream, found);
00175 ros::serialization::deserialize(stream, t);
00176 return stream.getData();
00177 }
00178
00179 ROS_DEPRECATED virtual uint32_t serializationLength() const
00180 {
00181 uint32_t size = 0;
00182 size += ros::serialization::serializationLength(found);
00183 size += ros::serialization::serializationLength(t);
00184 return size;
00185 }
00186
00187 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> > Ptr;
00188 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> const> ConstPtr;
00189 };
00190 typedef ::laser_slam::RecentScanTimeResponse_<std::allocator<void> > RecentScanTimeResponse;
00191
00192 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeResponse> RecentScanTimeResponsePtr;
00193 typedef boost::shared_ptr< ::laser_slam::RecentScanTimeResponse const> RecentScanTimeResponseConstPtr;
00194
00195 struct RecentScanTime
00196 {
00197
00198 typedef RecentScanTimeRequest Request;
00199 typedef RecentScanTimeResponse Response;
00200 Request request;
00201 Response response;
00202
00203 typedef Request RequestType;
00204 typedef Response ResponseType;
00205 };
00206 }
00207
00208 namespace ros
00209 {
00210 namespace message_traits
00211 {
00212 template<class ContainerAllocator>
00213 struct MD5Sum< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "636acdcf9cff2656f32f60d631b1e915";
00217 }
00218
00219 static const char* value(const ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> &) { return value(); }
00220 static const uint64_t static_value1 = 0x636acdcf9cff2656ULL;
00221 static const uint64_t static_value2 = 0xf32f60d631b1e915ULL;
00222 };
00223
00224 template<class ContainerAllocator>
00225 struct DataType< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> > {
00226 static const char* value()
00227 {
00228 return "laser_slam/RecentScanTimeRequest";
00229 }
00230
00231 static const char* value(const ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> &) { return value(); }
00232 };
00233
00234 template<class ContainerAllocator>
00235 struct Definition< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> > {
00236 static const char* value()
00237 {
00238 return "time t1\n\
00239 time t2\n\
00240 \n\
00241 ";
00242 }
00243
00244 static const char* value(const ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> &) { return value(); }
00245 };
00246
00247 template<class ContainerAllocator> struct IsFixedSize< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> > : public TrueType {};
00248 }
00249 }
00250
00251
00252 namespace ros
00253 {
00254 namespace message_traits
00255 {
00256 template<class ContainerAllocator>
00257 struct MD5Sum< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> > {
00258 static const char* value()
00259 {
00260 return "a0cf51c4871882ea146d55ce23ae4273";
00261 }
00262
00263 static const char* value(const ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> &) { return value(); }
00264 static const uint64_t static_value1 = 0xa0cf51c4871882eaULL;
00265 static const uint64_t static_value2 = 0x146d55ce23ae4273ULL;
00266 };
00267
00268 template<class ContainerAllocator>
00269 struct DataType< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> > {
00270 static const char* value()
00271 {
00272 return "laser_slam/RecentScanTimeResponse";
00273 }
00274
00275 static const char* value(const ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> &) { return value(); }
00276 };
00277
00278 template<class ContainerAllocator>
00279 struct Definition< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> > {
00280 static const char* value()
00281 {
00282 return "bool found\n\
00283 time t\n\
00284 \n\
00285 ";
00286 }
00287
00288 static const char* value(const ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 template<class ContainerAllocator> struct IsFixedSize< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> > : public TrueType {};
00292 }
00293 }
00294
00295 namespace ros
00296 {
00297 namespace serialization
00298 {
00299
00300 template<class ContainerAllocator> struct Serializer< ::laser_slam::RecentScanTimeRequest_<ContainerAllocator> >
00301 {
00302 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00303 {
00304 stream.next(m.t1);
00305 stream.next(m.t2);
00306 }
00307
00308 ROS_DECLARE_ALLINONE_SERIALIZER;
00309 };
00310 }
00311 }
00312
00313
00314 namespace ros
00315 {
00316 namespace serialization
00317 {
00318
00319 template<class ContainerAllocator> struct Serializer< ::laser_slam::RecentScanTimeResponse_<ContainerAllocator> >
00320 {
00321 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00322 {
00323 stream.next(m.found);
00324 stream.next(m.t);
00325 }
00326
00327 ROS_DECLARE_ALLINONE_SERIALIZER;
00328 };
00329 }
00330 }
00331
00332 namespace ros
00333 {
00334 namespace service_traits
00335 {
00336 template<>
00337 struct MD5Sum<laser_slam::RecentScanTime> {
00338 static const char* value()
00339 {
00340 return "cdd594f6cb6fa1a1b9db91fa9de1847b";
00341 }
00342
00343 static const char* value(const laser_slam::RecentScanTime&) { return value(); }
00344 };
00345
00346 template<>
00347 struct DataType<laser_slam::RecentScanTime> {
00348 static const char* value()
00349 {
00350 return "laser_slam/RecentScanTime";
00351 }
00352
00353 static const char* value(const laser_slam::RecentScanTime&) { return value(); }
00354 };
00355
00356 template<class ContainerAllocator>
00357 struct MD5Sum<laser_slam::RecentScanTimeRequest_<ContainerAllocator> > {
00358 static const char* value()
00359 {
00360 return "cdd594f6cb6fa1a1b9db91fa9de1847b";
00361 }
00362
00363 static const char* value(const laser_slam::RecentScanTimeRequest_<ContainerAllocator> &) { return value(); }
00364 };
00365
00366 template<class ContainerAllocator>
00367 struct DataType<laser_slam::RecentScanTimeRequest_<ContainerAllocator> > {
00368 static const char* value()
00369 {
00370 return "laser_slam/RecentScanTime";
00371 }
00372
00373 static const char* value(const laser_slam::RecentScanTimeRequest_<ContainerAllocator> &) { return value(); }
00374 };
00375
00376 template<class ContainerAllocator>
00377 struct MD5Sum<laser_slam::RecentScanTimeResponse_<ContainerAllocator> > {
00378 static const char* value()
00379 {
00380 return "cdd594f6cb6fa1a1b9db91fa9de1847b";
00381 }
00382
00383 static const char* value(const laser_slam::RecentScanTimeResponse_<ContainerAllocator> &) { return value(); }
00384 };
00385
00386 template<class ContainerAllocator>
00387 struct DataType<laser_slam::RecentScanTimeResponse_<ContainerAllocator> > {
00388 static const char* value()
00389 {
00390 return "laser_slam/RecentScanTime";
00391 }
00392
00393 static const char* value(const laser_slam::RecentScanTimeResponse_<ContainerAllocator> &) { return value(); }
00394 };
00395
00396 }
00397 }
00398
00399 #endif // LASER_SLAM_SERVICE_RECENTSCANTIME_H
00400