$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/srv/ChangeControlType.srv */ 00002 #ifndef SR_ROBOT_MSGS_SERVICE_CHANGECONTROLTYPE_H 00003 #define SR_ROBOT_MSGS_SERVICE_CHANGECONTROLTYPE_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 "sr_robot_msgs/ControlType.h" 00020 00021 00022 #include "sr_robot_msgs/ControlType.h" 00023 00024 namespace sr_robot_msgs 00025 { 00026 template <class ContainerAllocator> 00027 struct ChangeControlTypeRequest_ { 00028 typedef ChangeControlTypeRequest_<ContainerAllocator> Type; 00029 00030 ChangeControlTypeRequest_() 00031 : control_type() 00032 { 00033 } 00034 00035 ChangeControlTypeRequest_(const ContainerAllocator& _alloc) 00036 : control_type(_alloc) 00037 { 00038 } 00039 00040 typedef ::sr_robot_msgs::ControlType_<ContainerAllocator> _control_type_type; 00041 ::sr_robot_msgs::ControlType_<ContainerAllocator> control_type; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "sr_robot_msgs/ChangeControlTypeRequest"; } 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 "69fffaeba377b18d307bd4ce65536c13"; } 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 "ac3ec0a68c75634618a1c4f579171ff8"; } 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 "ControlType control_type\n\ 00067 \n\ 00068 ================================================================================\n\ 00069 MSG: sr_robot_msgs/ControlType\n\ 00070 int16 control_type\n\ 00071 \n\ 00072 int16 PWM=0\n\ 00073 int16 FORCE=1\n\ 00074 "; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00081 { 00082 ros::serialization::OStream stream(write_ptr, 1000000000); 00083 ros::serialization::serialize(stream, control_type); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00088 { 00089 ros::serialization::IStream stream(read_ptr, 1000000000); 00090 ros::serialization::deserialize(stream, control_type); 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(control_type); 00098 return size; 00099 } 00100 00101 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > Ptr; 00102 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> const> ConstPtr; 00103 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00104 }; // struct ChangeControlTypeRequest 00105 typedef ::sr_robot_msgs::ChangeControlTypeRequest_<std::allocator<void> > ChangeControlTypeRequest; 00106 00107 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeRequest> ChangeControlTypeRequestPtr; 00108 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeRequest const> ChangeControlTypeRequestConstPtr; 00109 00110 00111 template <class ContainerAllocator> 00112 struct ChangeControlTypeResponse_ { 00113 typedef ChangeControlTypeResponse_<ContainerAllocator> Type; 00114 00115 ChangeControlTypeResponse_() 00116 : result() 00117 { 00118 } 00119 00120 ChangeControlTypeResponse_(const ContainerAllocator& _alloc) 00121 : result(_alloc) 00122 { 00123 } 00124 00125 typedef ::sr_robot_msgs::ControlType_<ContainerAllocator> _result_type; 00126 ::sr_robot_msgs::ControlType_<ContainerAllocator> result; 00127 00128 00129 private: 00130 static const char* __s_getDataType_() { return "sr_robot_msgs/ChangeControlTypeResponse"; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00133 00134 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00135 00136 private: 00137 static const char* __s_getMD5Sum_() { return "149802f62d62361cd3f9f9faa0c637bc"; } 00138 public: 00139 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00140 00141 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00142 00143 private: 00144 static const char* __s_getServerMD5Sum_() { return "ac3ec0a68c75634618a1c4f579171ff8"; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00147 00148 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00149 00150 private: 00151 static const char* __s_getMessageDefinition_() { return "ControlType result\n\ 00152 \n\ 00153 ================================================================================\n\ 00154 MSG: sr_robot_msgs/ControlType\n\ 00155 int16 control_type\n\ 00156 \n\ 00157 int16 PWM=0\n\ 00158 int16 FORCE=1\n\ 00159 "; } 00160 public: 00161 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00162 00163 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00164 00165 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00166 { 00167 ros::serialization::OStream stream(write_ptr, 1000000000); 00168 ros::serialization::serialize(stream, result); 00169 return stream.getData(); 00170 } 00171 00172 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00173 { 00174 ros::serialization::IStream stream(read_ptr, 1000000000); 00175 ros::serialization::deserialize(stream, result); 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(result); 00183 return size; 00184 } 00185 00186 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > Ptr; 00187 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> const> ConstPtr; 00188 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00189 }; // struct ChangeControlTypeResponse 00190 typedef ::sr_robot_msgs::ChangeControlTypeResponse_<std::allocator<void> > ChangeControlTypeResponse; 00191 00192 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeResponse> ChangeControlTypeResponsePtr; 00193 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeControlTypeResponse const> ChangeControlTypeResponseConstPtr; 00194 00195 struct ChangeControlType 00196 { 00197 00198 typedef ChangeControlTypeRequest Request; 00199 typedef ChangeControlTypeResponse Response; 00200 Request request; 00201 Response response; 00202 00203 typedef Request RequestType; 00204 typedef Response ResponseType; 00205 }; // struct ChangeControlType 00206 } // namespace sr_robot_msgs 00207 00208 namespace ros 00209 { 00210 namespace message_traits 00211 { 00212 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > : public TrueType {}; 00213 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> const> : public TrueType {}; 00214 template<class ContainerAllocator> 00215 struct MD5Sum< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > { 00216 static const char* value() 00217 { 00218 return "69fffaeba377b18d307bd4ce65536c13"; 00219 } 00220 00221 static const char* value(const ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> &) { return value(); } 00222 static const uint64_t static_value1 = 0x69fffaeba377b18dULL; 00223 static const uint64_t static_value2 = 0x307bd4ce65536c13ULL; 00224 }; 00225 00226 template<class ContainerAllocator> 00227 struct DataType< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > { 00228 static const char* value() 00229 { 00230 return "sr_robot_msgs/ChangeControlTypeRequest"; 00231 } 00232 00233 static const char* value(const ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> &) { return value(); } 00234 }; 00235 00236 template<class ContainerAllocator> 00237 struct Definition< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > { 00238 static const char* value() 00239 { 00240 return "ControlType control_type\n\ 00241 \n\ 00242 ================================================================================\n\ 00243 MSG: sr_robot_msgs/ControlType\n\ 00244 int16 control_type\n\ 00245 \n\ 00246 int16 PWM=0\n\ 00247 int16 FORCE=1\n\ 00248 "; 00249 } 00250 00251 static const char* value(const ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> &) { return value(); } 00252 }; 00253 00254 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > : public TrueType {}; 00255 } // namespace message_traits 00256 } // namespace ros 00257 00258 00259 namespace ros 00260 { 00261 namespace message_traits 00262 { 00263 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > : public TrueType {}; 00264 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> const> : public TrueType {}; 00265 template<class ContainerAllocator> 00266 struct MD5Sum< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > { 00267 static const char* value() 00268 { 00269 return "149802f62d62361cd3f9f9faa0c637bc"; 00270 } 00271 00272 static const char* value(const ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> &) { return value(); } 00273 static const uint64_t static_value1 = 0x149802f62d62361cULL; 00274 static const uint64_t static_value2 = 0xd3f9f9faa0c637bcULL; 00275 }; 00276 00277 template<class ContainerAllocator> 00278 struct DataType< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > { 00279 static const char* value() 00280 { 00281 return "sr_robot_msgs/ChangeControlTypeResponse"; 00282 } 00283 00284 static const char* value(const ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> &) { return value(); } 00285 }; 00286 00287 template<class ContainerAllocator> 00288 struct Definition< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > { 00289 static const char* value() 00290 { 00291 return "ControlType result\n\ 00292 \n\ 00293 ================================================================================\n\ 00294 MSG: sr_robot_msgs/ControlType\n\ 00295 int16 control_type\n\ 00296 \n\ 00297 int16 PWM=0\n\ 00298 int16 FORCE=1\n\ 00299 "; 00300 } 00301 00302 static const char* value(const ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> &) { return value(); } 00303 }; 00304 00305 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > : public TrueType {}; 00306 } // namespace message_traits 00307 } // namespace ros 00308 00309 namespace ros 00310 { 00311 namespace serialization 00312 { 00313 00314 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > 00315 { 00316 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00317 { 00318 stream.next(m.control_type); 00319 } 00320 00321 ROS_DECLARE_ALLINONE_SERIALIZER; 00322 }; // struct ChangeControlTypeRequest_ 00323 } // namespace serialization 00324 } // namespace ros 00325 00326 00327 namespace ros 00328 { 00329 namespace serialization 00330 { 00331 00332 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > 00333 { 00334 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00335 { 00336 stream.next(m.result); 00337 } 00338 00339 ROS_DECLARE_ALLINONE_SERIALIZER; 00340 }; // struct ChangeControlTypeResponse_ 00341 } // namespace serialization 00342 } // namespace ros 00343 00344 namespace ros 00345 { 00346 namespace service_traits 00347 { 00348 template<> 00349 struct MD5Sum<sr_robot_msgs::ChangeControlType> { 00350 static const char* value() 00351 { 00352 return "ac3ec0a68c75634618a1c4f579171ff8"; 00353 } 00354 00355 static const char* value(const sr_robot_msgs::ChangeControlType&) { return value(); } 00356 }; 00357 00358 template<> 00359 struct DataType<sr_robot_msgs::ChangeControlType> { 00360 static const char* value() 00361 { 00362 return "sr_robot_msgs/ChangeControlType"; 00363 } 00364 00365 static const char* value(const sr_robot_msgs::ChangeControlType&) { return value(); } 00366 }; 00367 00368 template<class ContainerAllocator> 00369 struct MD5Sum<sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > { 00370 static const char* value() 00371 { 00372 return "ac3ec0a68c75634618a1c4f579171ff8"; 00373 } 00374 00375 static const char* value(const sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> &) { return value(); } 00376 }; 00377 00378 template<class ContainerAllocator> 00379 struct DataType<sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> > { 00380 static const char* value() 00381 { 00382 return "sr_robot_msgs/ChangeControlType"; 00383 } 00384 00385 static const char* value(const sr_robot_msgs::ChangeControlTypeRequest_<ContainerAllocator> &) { return value(); } 00386 }; 00387 00388 template<class ContainerAllocator> 00389 struct MD5Sum<sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > { 00390 static const char* value() 00391 { 00392 return "ac3ec0a68c75634618a1c4f579171ff8"; 00393 } 00394 00395 static const char* value(const sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> &) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> 00399 struct DataType<sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> > { 00400 static const char* value() 00401 { 00402 return "sr_robot_msgs/ChangeControlType"; 00403 } 00404 00405 static const char* value(const sr_robot_msgs::ChangeControlTypeResponse_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 } // namespace service_traits 00409 } // namespace ros 00410 00411 #endif // SR_ROBOT_MSGS_SERVICE_CHANGECONTROLTYPE_H 00412