00001
00002 #ifndef PR2_MSGS_SERVICE_SETPERIODICCMD_H
00003 #define PR2_MSGS_SERVICE_SETPERIODICCMD_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 #include "pr2_msgs/PeriodicCmd.h"
00020
00021
00022
00023 namespace pr2_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct SetPeriodicCmdRequest_ {
00027 typedef SetPeriodicCmdRequest_<ContainerAllocator> Type;
00028
00029 SetPeriodicCmdRequest_()
00030 : command()
00031 {
00032 }
00033
00034 SetPeriodicCmdRequest_(const ContainerAllocator& _alloc)
00035 : command(_alloc)
00036 {
00037 }
00038
00039 typedef ::pr2_msgs::PeriodicCmd_<ContainerAllocator> _command_type;
00040 ::pr2_msgs::PeriodicCmd_<ContainerAllocator> command;
00041
00042
00043 private:
00044 static const char* __s_getDataType_() { return "pr2_msgs/SetPeriodicCmdRequest"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00047
00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00049
00050 private:
00051 static const char* __s_getMD5Sum_() { return "d4deedcc194c4a77110f7228904ee733"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00054
00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00056
00057 private:
00058 static const char* __s_getServerMD5Sum_() { return "daeb6e862b732192bc82a7ea52bb7975"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "pr2_msgs/PeriodicCmd command\n\
00066 \n\
00067 ================================================================================\n\
00068 MSG: pr2_msgs/PeriodicCmd\n\
00069 # This message is used to set the parameters of a profile executed by the\n\
00070 # laser tilt controller.\n\
00071 Header header\n\
00072 string profile\n\
00073 float64 period\n\
00074 float64 amplitude\n\
00075 float64 offset\n\
00076 \n\
00077 ================================================================================\n\
00078 MSG: std_msgs/Header\n\
00079 # Standard metadata for higher-level stamped data types.\n\
00080 # This is generally used to communicate timestamped data \n\
00081 # in a particular coordinate frame.\n\
00082 # \n\
00083 # sequence ID: consecutively increasing ID \n\
00084 uint32 seq\n\
00085 #Two-integer timestamp that is expressed as:\n\
00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00088 # time-handling sugar is provided by the client library\n\
00089 time stamp\n\
00090 #Frame this data is associated with\n\
00091 # 0: no frame\n\
00092 # 1: global frame\n\
00093 string frame_id\n\
00094 \n\
00095 "; }
00096 public:
00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00100
00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00102 {
00103 ros::serialization::OStream stream(write_ptr, 1000000000);
00104 ros::serialization::serialize(stream, command);
00105 return stream.getData();
00106 }
00107
00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00109 {
00110 ros::serialization::IStream stream(read_ptr, 1000000000);
00111 ros::serialization::deserialize(stream, command);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint32_t serializationLength() const
00116 {
00117 uint32_t size = 0;
00118 size += ros::serialization::serializationLength(command);
00119 return size;
00120 }
00121
00122 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > Ptr;
00123 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> const> ConstPtr;
00124 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00125 };
00126 typedef ::pr2_msgs::SetPeriodicCmdRequest_<std::allocator<void> > SetPeriodicCmdRequest;
00127
00128 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdRequest> SetPeriodicCmdRequestPtr;
00129 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdRequest const> SetPeriodicCmdRequestConstPtr;
00130
00131
00132 template <class ContainerAllocator>
00133 struct SetPeriodicCmdResponse_ {
00134 typedef SetPeriodicCmdResponse_<ContainerAllocator> Type;
00135
00136 SetPeriodicCmdResponse_()
00137 : start_time()
00138 {
00139 }
00140
00141 SetPeriodicCmdResponse_(const ContainerAllocator& _alloc)
00142 : start_time()
00143 {
00144 }
00145
00146 typedef ros::Time _start_time_type;
00147 ros::Time start_time;
00148
00149
00150 private:
00151 static const char* __s_getDataType_() { return "pr2_msgs/SetPeriodicCmdResponse"; }
00152 public:
00153 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00154
00155 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00156
00157 private:
00158 static const char* __s_getMD5Sum_() { return "3888666920054f1ef39d2df7a5d94b02"; }
00159 public:
00160 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00161
00162 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00163
00164 private:
00165 static const char* __s_getServerMD5Sum_() { return "daeb6e862b732192bc82a7ea52bb7975"; }
00166 public:
00167 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00168
00169 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00170
00171 private:
00172 static const char* __s_getMessageDefinition_() { return "time start_time\n\
00173 \n\
00174 "; }
00175 public:
00176 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00177
00178 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00179
00180 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00181 {
00182 ros::serialization::OStream stream(write_ptr, 1000000000);
00183 ros::serialization::serialize(stream, start_time);
00184 return stream.getData();
00185 }
00186
00187 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00188 {
00189 ros::serialization::IStream stream(read_ptr, 1000000000);
00190 ros::serialization::deserialize(stream, start_time);
00191 return stream.getData();
00192 }
00193
00194 ROS_DEPRECATED virtual uint32_t serializationLength() const
00195 {
00196 uint32_t size = 0;
00197 size += ros::serialization::serializationLength(start_time);
00198 return size;
00199 }
00200
00201 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > Ptr;
00202 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> const> ConstPtr;
00203 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00204 };
00205 typedef ::pr2_msgs::SetPeriodicCmdResponse_<std::allocator<void> > SetPeriodicCmdResponse;
00206
00207 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdResponse> SetPeriodicCmdResponsePtr;
00208 typedef boost::shared_ptr< ::pr2_msgs::SetPeriodicCmdResponse const> SetPeriodicCmdResponseConstPtr;
00209
00210 struct SetPeriodicCmd
00211 {
00212
00213 typedef SetPeriodicCmdRequest Request;
00214 typedef SetPeriodicCmdResponse Response;
00215 Request request;
00216 Response response;
00217
00218 typedef Request RequestType;
00219 typedef Response ResponseType;
00220 };
00221 }
00222
00223 namespace ros
00224 {
00225 namespace message_traits
00226 {
00227 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > : public TrueType {};
00228 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> const> : public TrueType {};
00229 template<class ContainerAllocator>
00230 struct MD5Sum< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > {
00231 static const char* value()
00232 {
00233 return "d4deedcc194c4a77110f7228904ee733";
00234 }
00235
00236 static const char* value(const ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> &) { return value(); }
00237 static const uint64_t static_value1 = 0xd4deedcc194c4a77ULL;
00238 static const uint64_t static_value2 = 0x110f7228904ee733ULL;
00239 };
00240
00241 template<class ContainerAllocator>
00242 struct DataType< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > {
00243 static const char* value()
00244 {
00245 return "pr2_msgs/SetPeriodicCmdRequest";
00246 }
00247
00248 static const char* value(const ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> &) { return value(); }
00249 };
00250
00251 template<class ContainerAllocator>
00252 struct Definition< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > {
00253 static const char* value()
00254 {
00255 return "pr2_msgs/PeriodicCmd command\n\
00256 \n\
00257 ================================================================================\n\
00258 MSG: pr2_msgs/PeriodicCmd\n\
00259 # This message is used to set the parameters of a profile executed by the\n\
00260 # laser tilt controller.\n\
00261 Header header\n\
00262 string profile\n\
00263 float64 period\n\
00264 float64 amplitude\n\
00265 float64 offset\n\
00266 \n\
00267 ================================================================================\n\
00268 MSG: std_msgs/Header\n\
00269 # Standard metadata for higher-level stamped data types.\n\
00270 # This is generally used to communicate timestamped data \n\
00271 # in a particular coordinate frame.\n\
00272 # \n\
00273 # sequence ID: consecutively increasing ID \n\
00274 uint32 seq\n\
00275 #Two-integer timestamp that is expressed as:\n\
00276 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00277 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00278 # time-handling sugar is provided by the client library\n\
00279 time stamp\n\
00280 #Frame this data is associated with\n\
00281 # 0: no frame\n\
00282 # 1: global frame\n\
00283 string frame_id\n\
00284 \n\
00285 ";
00286 }
00287
00288 static const char* value(const ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 }
00292 }
00293
00294
00295 namespace ros
00296 {
00297 namespace message_traits
00298 {
00299 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > : public TrueType {};
00300 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> const> : public TrueType {};
00301 template<class ContainerAllocator>
00302 struct MD5Sum< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > {
00303 static const char* value()
00304 {
00305 return "3888666920054f1ef39d2df7a5d94b02";
00306 }
00307
00308 static const char* value(const ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> &) { return value(); }
00309 static const uint64_t static_value1 = 0x3888666920054f1eULL;
00310 static const uint64_t static_value2 = 0xf39d2df7a5d94b02ULL;
00311 };
00312
00313 template<class ContainerAllocator>
00314 struct DataType< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > {
00315 static const char* value()
00316 {
00317 return "pr2_msgs/SetPeriodicCmdResponse";
00318 }
00319
00320 static const char* value(const ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> &) { return value(); }
00321 };
00322
00323 template<class ContainerAllocator>
00324 struct Definition< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > {
00325 static const char* value()
00326 {
00327 return "time start_time\n\
00328 \n\
00329 ";
00330 }
00331
00332 static const char* value(const ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> &) { return value(); }
00333 };
00334
00335 template<class ContainerAllocator> struct IsFixedSize< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > : public TrueType {};
00336 }
00337 }
00338
00339 namespace ros
00340 {
00341 namespace serialization
00342 {
00343
00344 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> >
00345 {
00346 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00347 {
00348 stream.next(m.command);
00349 }
00350
00351 ROS_DECLARE_ALLINONE_SERIALIZER;
00352 };
00353 }
00354 }
00355
00356
00357 namespace ros
00358 {
00359 namespace serialization
00360 {
00361
00362 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> >
00363 {
00364 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00365 {
00366 stream.next(m.start_time);
00367 }
00368
00369 ROS_DECLARE_ALLINONE_SERIALIZER;
00370 };
00371 }
00372 }
00373
00374 namespace ros
00375 {
00376 namespace service_traits
00377 {
00378 template<>
00379 struct MD5Sum<pr2_msgs::SetPeriodicCmd> {
00380 static const char* value()
00381 {
00382 return "daeb6e862b732192bc82a7ea52bb7975";
00383 }
00384
00385 static const char* value(const pr2_msgs::SetPeriodicCmd&) { return value(); }
00386 };
00387
00388 template<>
00389 struct DataType<pr2_msgs::SetPeriodicCmd> {
00390 static const char* value()
00391 {
00392 return "pr2_msgs/SetPeriodicCmd";
00393 }
00394
00395 static const char* value(const pr2_msgs::SetPeriodicCmd&) { return value(); }
00396 };
00397
00398 template<class ContainerAllocator>
00399 struct MD5Sum<pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > {
00400 static const char* value()
00401 {
00402 return "daeb6e862b732192bc82a7ea52bb7975";
00403 }
00404
00405 static const char* value(const pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> &) { return value(); }
00406 };
00407
00408 template<class ContainerAllocator>
00409 struct DataType<pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> > {
00410 static const char* value()
00411 {
00412 return "pr2_msgs/SetPeriodicCmd";
00413 }
00414
00415 static const char* value(const pr2_msgs::SetPeriodicCmdRequest_<ContainerAllocator> &) { return value(); }
00416 };
00417
00418 template<class ContainerAllocator>
00419 struct MD5Sum<pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > {
00420 static const char* value()
00421 {
00422 return "daeb6e862b732192bc82a7ea52bb7975";
00423 }
00424
00425 static const char* value(const pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> &) { return value(); }
00426 };
00427
00428 template<class ContainerAllocator>
00429 struct DataType<pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> > {
00430 static const char* value()
00431 {
00432 return "pr2_msgs/SetPeriodicCmd";
00433 }
00434
00435 static const char* value(const pr2_msgs::SetPeriodicCmdResponse_<ContainerAllocator> &) { return value(); }
00436 };
00437
00438 }
00439 }
00440
00441 #endif // PR2_MSGS_SERVICE_SETPERIODICCMD_H
00442