Go to the documentation of this file.00001
00002 #ifndef TURTLEBOT_PANORAMA_SERVICE_TAKEPANO_H
00003 #define TURTLEBOT_PANORAMA_SERVICE_TAKEPANO_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
00022 namespace turtlebot_panorama
00023 {
00024 template <class ContainerAllocator>
00025 struct TakePanoRequest_ {
00026 typedef TakePanoRequest_<ContainerAllocator> Type;
00027
00028 TakePanoRequest_()
00029 : mode(0)
00030 , pano_angle(0.0)
00031 , snap_interval(0.0)
00032 , rot_vel(0.0)
00033 {
00034 }
00035
00036 TakePanoRequest_(const ContainerAllocator& _alloc)
00037 : mode(0)
00038 , pano_angle(0.0)
00039 , snap_interval(0.0)
00040 , rot_vel(0.0)
00041 {
00042 }
00043
00044 typedef uint8_t _mode_type;
00045 uint8_t mode;
00046
00047 typedef float _pano_angle_type;
00048 float pano_angle;
00049
00050 typedef float _snap_interval_type;
00051 float snap_interval;
00052
00053 typedef float _rot_vel_type;
00054 float rot_vel;
00055
00056 enum { SNAPANDROTATE = 0 };
00057 enum { CONTINUOUS = 1 };
00058 enum { STOP = 2 };
00059
00060 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > Ptr;
00061 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> const> ConstPtr;
00062 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00063 };
00064 typedef ::turtlebot_panorama::TakePanoRequest_<std::allocator<void> > TakePanoRequest;
00065
00066 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoRequest> TakePanoRequestPtr;
00067 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoRequest const> TakePanoRequestConstPtr;
00068
00069
00070
00071 template <class ContainerAllocator>
00072 struct TakePanoResponse_ {
00073 typedef TakePanoResponse_<ContainerAllocator> Type;
00074
00075 TakePanoResponse_()
00076 : status(0)
00077 {
00078 }
00079
00080 TakePanoResponse_(const ContainerAllocator& _alloc)
00081 : status(0)
00082 {
00083 }
00084
00085 typedef uint8_t _status_type;
00086 uint8_t status;
00087
00088 enum { STARTED = 0 };
00089 enum { IN_PROGRESS = 1 };
00090 enum { STOPPED = 2 };
00091
00092 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > Ptr;
00093 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> const> ConstPtr;
00094 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00095 };
00096 typedef ::turtlebot_panorama::TakePanoResponse_<std::allocator<void> > TakePanoResponse;
00097
00098 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoResponse> TakePanoResponsePtr;
00099 typedef boost::shared_ptr< ::turtlebot_panorama::TakePanoResponse const> TakePanoResponseConstPtr;
00100
00101
00102 struct TakePano
00103 {
00104
00105 typedef TakePanoRequest Request;
00106 typedef TakePanoResponse Response;
00107 Request request;
00108 Response response;
00109
00110 typedef Request RequestType;
00111 typedef Response ResponseType;
00112 };
00113 }
00114
00115 namespace ros
00116 {
00117 namespace message_traits
00118 {
00119 template<class ContainerAllocator> struct IsMessage< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > : public TrueType {};
00120 template<class ContainerAllocator> struct IsMessage< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> const> : public TrueType {};
00121 template<class ContainerAllocator>
00122 struct MD5Sum< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "f52c694c82704221735cc576c7587ecc";
00126 }
00127
00128 static const char* value(const ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> &) { return value(); }
00129 static const uint64_t static_value1 = 0xf52c694c82704221ULL;
00130 static const uint64_t static_value2 = 0x735cc576c7587eccULL;
00131 };
00132
00133 template<class ContainerAllocator>
00134 struct DataType< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "turtlebot_panorama/TakePanoRequest";
00138 }
00139
00140 static const char* value(const ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> &) { return value(); }
00141 };
00142
00143 template<class ContainerAllocator>
00144 struct Definition< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "\n\
00148 uint8 mode\n\
00149 \n\
00150 uint8 SNAPANDROTATE=0\n\
00151 \n\
00152 uint8 CONTINUOUS=1\n\
00153 \n\
00154 uint8 STOP=2\n\
00155 \n\
00156 float32 pano_angle\n\
00157 \n\
00158 float32 snap_interval\n\
00159 \n\
00160 float32 rot_vel\n\
00161 \n\
00162 \n\
00163 ";
00164 }
00165
00166 static const char* value(const ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 template<class ContainerAllocator> struct IsFixedSize< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > : public TrueType {};
00170 }
00171 }
00172
00173
00174 namespace ros
00175 {
00176 namespace message_traits
00177 {
00178 template<class ContainerAllocator> struct IsMessage< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > : public TrueType {};
00179 template<class ContainerAllocator> struct IsMessage< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> const> : public TrueType {};
00180 template<class ContainerAllocator>
00181 struct MD5Sum< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > {
00182 static const char* value()
00183 {
00184 return "1ebe3e03b034aa9578d367d7cf6ed627";
00185 }
00186
00187 static const char* value(const ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> &) { return value(); }
00188 static const uint64_t static_value1 = 0x1ebe3e03b034aa95ULL;
00189 static const uint64_t static_value2 = 0x78d367d7cf6ed627ULL;
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct DataType< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "turtlebot_panorama/TakePanoResponse";
00197 }
00198
00199 static const char* value(const ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> &) { return value(); }
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct Definition< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "\n\
00207 uint8 status\n\
00208 uint8 STARTED=0\n\
00209 uint8 IN_PROGRESS=1\n\
00210 uint8 STOPPED=2\n\
00211 \n\
00212 ";
00213 }
00214
00215 static const char* value(const ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> &) { return value(); }
00216 };
00217
00218 template<class ContainerAllocator> struct IsFixedSize< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > : public TrueType {};
00219 }
00220 }
00221
00222 namespace ros
00223 {
00224 namespace serialization
00225 {
00226
00227 template<class ContainerAllocator> struct Serializer< ::turtlebot_panorama::TakePanoRequest_<ContainerAllocator> >
00228 {
00229 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00230 {
00231 stream.next(m.mode);
00232 stream.next(m.pano_angle);
00233 stream.next(m.snap_interval);
00234 stream.next(m.rot_vel);
00235 }
00236
00237 ROS_DECLARE_ALLINONE_SERIALIZER;
00238 };
00239 }
00240 }
00241
00242
00243 namespace ros
00244 {
00245 namespace serialization
00246 {
00247
00248 template<class ContainerAllocator> struct Serializer< ::turtlebot_panorama::TakePanoResponse_<ContainerAllocator> >
00249 {
00250 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00251 {
00252 stream.next(m.status);
00253 }
00254
00255 ROS_DECLARE_ALLINONE_SERIALIZER;
00256 };
00257 }
00258 }
00259
00260 namespace ros
00261 {
00262 namespace service_traits
00263 {
00264 template<>
00265 struct MD5Sum<turtlebot_panorama::TakePano> {
00266 static const char* value()
00267 {
00268 return "ae9e615a5f5b5081544bd9259c9e0f4e";
00269 }
00270
00271 static const char* value(const turtlebot_panorama::TakePano&) { return value(); }
00272 };
00273
00274 template<>
00275 struct DataType<turtlebot_panorama::TakePano> {
00276 static const char* value()
00277 {
00278 return "turtlebot_panorama/TakePano";
00279 }
00280
00281 static const char* value(const turtlebot_panorama::TakePano&) { return value(); }
00282 };
00283
00284 template<class ContainerAllocator>
00285 struct MD5Sum<turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > {
00286 static const char* value()
00287 {
00288 return "ae9e615a5f5b5081544bd9259c9e0f4e";
00289 }
00290
00291 static const char* value(const turtlebot_panorama::TakePanoRequest_<ContainerAllocator> &) { return value(); }
00292 };
00293
00294 template<class ContainerAllocator>
00295 struct DataType<turtlebot_panorama::TakePanoRequest_<ContainerAllocator> > {
00296 static const char* value()
00297 {
00298 return "turtlebot_panorama/TakePano";
00299 }
00300
00301 static const char* value(const turtlebot_panorama::TakePanoRequest_<ContainerAllocator> &) { return value(); }
00302 };
00303
00304 template<class ContainerAllocator>
00305 struct MD5Sum<turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > {
00306 static const char* value()
00307 {
00308 return "ae9e615a5f5b5081544bd9259c9e0f4e";
00309 }
00310
00311 static const char* value(const turtlebot_panorama::TakePanoResponse_<ContainerAllocator> &) { return value(); }
00312 };
00313
00314 template<class ContainerAllocator>
00315 struct DataType<turtlebot_panorama::TakePanoResponse_<ContainerAllocator> > {
00316 static const char* value()
00317 {
00318 return "turtlebot_panorama/TakePano";
00319 }
00320
00321 static const char* value(const turtlebot_panorama::TakePanoResponse_<ContainerAllocator> &) { return value(); }
00322 };
00323
00324 }
00325 }
00326
00327 #endif // TURTLEBOT_PANORAMA_SERVICE_TAKEPANO_H
00328