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