$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/SimpleMotorFlasher.srv */ 00002 #ifndef SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H 00003 #define SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_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 sr_robot_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct SimpleMotorFlasherRequest_ { 00026 typedef SimpleMotorFlasherRequest_<ContainerAllocator> Type; 00027 00028 SimpleMotorFlasherRequest_() 00029 : firmware() 00030 , motor_id(0) 00031 { 00032 } 00033 00034 SimpleMotorFlasherRequest_(const ContainerAllocator& _alloc) 00035 : firmware(_alloc) 00036 , motor_id(0) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _firmware_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > firmware; 00042 00043 typedef int8_t _motor_id_type; 00044 int8_t motor_id; 00045 00046 00047 private: 00048 static const char* __s_getDataType_() { return "sr_robot_msgs/SimpleMotorFlasherRequest"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "95979d9c30a49ed16e3ab17fe0edb157"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getServerMD5Sum_() { return "b5e4cd4b44ed54dd8f018caf24a9e0c1"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "string firmware\n\ 00070 int8 motor_id\n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, firmware); 00082 ros::serialization::serialize(stream, motor_id); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00087 { 00088 ros::serialization::IStream stream(read_ptr, 1000000000); 00089 ros::serialization::deserialize(stream, firmware); 00090 ros::serialization::deserialize(stream, motor_id); 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(firmware); 00098 size += ros::serialization::serializationLength(motor_id); 00099 return size; 00100 } 00101 00102 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > Ptr; 00103 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> const> ConstPtr; 00104 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00105 }; // struct SimpleMotorFlasherRequest 00106 typedef ::sr_robot_msgs::SimpleMotorFlasherRequest_<std::allocator<void> > SimpleMotorFlasherRequest; 00107 00108 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest> SimpleMotorFlasherRequestPtr; 00109 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest const> SimpleMotorFlasherRequestConstPtr; 00110 00111 00112 template <class ContainerAllocator> 00113 struct SimpleMotorFlasherResponse_ { 00114 typedef SimpleMotorFlasherResponse_<ContainerAllocator> Type; 00115 00116 SimpleMotorFlasherResponse_() 00117 : value(0) 00118 { 00119 } 00120 00121 SimpleMotorFlasherResponse_(const ContainerAllocator& _alloc) 00122 : value(0) 00123 { 00124 } 00125 00126 typedef int32_t _value_type; 00127 int32_t value; 00128 00129 enum { SUCCESS = 0 }; 00130 enum { FAIL = 1 }; 00131 00132 private: 00133 static const char* __s_getDataType_() { return "sr_robot_msgs/SimpleMotorFlasherResponse"; } 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 "57a3be4812415ba24758cca00aebf53f"; } 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 "b5e4cd4b44ed54dd8f018caf24a9e0c1"; } 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 "int32 value\n\ 00155 \n\ 00156 int32 SUCCESS = 0\n\ 00157 int32 FAIL = 1\n\ 00158 \n\ 00159 \n\ 00160 "; } 00161 public: 00162 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00163 00164 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00165 00166 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00167 { 00168 ros::serialization::OStream stream(write_ptr, 1000000000); 00169 ros::serialization::serialize(stream, value); 00170 return stream.getData(); 00171 } 00172 00173 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00174 { 00175 ros::serialization::IStream stream(read_ptr, 1000000000); 00176 ros::serialization::deserialize(stream, value); 00177 return stream.getData(); 00178 } 00179 00180 ROS_DEPRECATED virtual uint32_t serializationLength() const 00181 { 00182 uint32_t size = 0; 00183 size += ros::serialization::serializationLength(value); 00184 return size; 00185 } 00186 00187 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > Ptr; 00188 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> const> ConstPtr; 00189 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00190 }; // struct SimpleMotorFlasherResponse 00191 typedef ::sr_robot_msgs::SimpleMotorFlasherResponse_<std::allocator<void> > SimpleMotorFlasherResponse; 00192 00193 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse> SimpleMotorFlasherResponsePtr; 00194 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse const> SimpleMotorFlasherResponseConstPtr; 00195 00196 struct SimpleMotorFlasher 00197 { 00198 00199 typedef SimpleMotorFlasherRequest Request; 00200 typedef SimpleMotorFlasherResponse Response; 00201 Request request; 00202 Response response; 00203 00204 typedef Request RequestType; 00205 typedef Response ResponseType; 00206 }; // struct SimpleMotorFlasher 00207 } // namespace sr_robot_msgs 00208 00209 namespace ros 00210 { 00211 namespace message_traits 00212 { 00213 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > : public TrueType {}; 00214 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> const> : public TrueType {}; 00215 template<class ContainerAllocator> 00216 struct MD5Sum< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > { 00217 static const char* value() 00218 { 00219 return "95979d9c30a49ed16e3ab17fe0edb157"; 00220 } 00221 00222 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 00223 static const uint64_t static_value1 = 0x95979d9c30a49ed1ULL; 00224 static const uint64_t static_value2 = 0x6e3ab17fe0edb157ULL; 00225 }; 00226 00227 template<class ContainerAllocator> 00228 struct DataType< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > { 00229 static const char* value() 00230 { 00231 return "sr_robot_msgs/SimpleMotorFlasherRequest"; 00232 } 00233 00234 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 00235 }; 00236 00237 template<class ContainerAllocator> 00238 struct Definition< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "string firmware\n\ 00242 int8 motor_id\n\ 00243 \n\ 00244 "; 00245 } 00246 00247 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 } // namespace message_traits 00251 } // namespace ros 00252 00253 00254 namespace ros 00255 { 00256 namespace message_traits 00257 { 00258 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > : public TrueType {}; 00259 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> const> : public TrueType {}; 00260 template<class ContainerAllocator> 00261 struct MD5Sum< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "57a3be4812415ba24758cca00aebf53f"; 00265 } 00266 00267 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 00268 static const uint64_t static_value1 = 0x57a3be4812415ba2ULL; 00269 static const uint64_t static_value2 = 0x4758cca00aebf53fULL; 00270 }; 00271 00272 template<class ContainerAllocator> 00273 struct DataType< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "sr_robot_msgs/SimpleMotorFlasherResponse"; 00277 } 00278 00279 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct Definition< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "int32 value\n\ 00287 \n\ 00288 int32 SUCCESS = 0\n\ 00289 int32 FAIL = 1\n\ 00290 \n\ 00291 \n\ 00292 "; 00293 } 00294 00295 static const char* value(const ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 00296 }; 00297 00298 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > : public TrueType {}; 00299 } // namespace message_traits 00300 } // namespace ros 00301 00302 namespace ros 00303 { 00304 namespace serialization 00305 { 00306 00307 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > 00308 { 00309 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00310 { 00311 stream.next(m.firmware); 00312 stream.next(m.motor_id); 00313 } 00314 00315 ROS_DECLARE_ALLINONE_SERIALIZER; 00316 }; // struct SimpleMotorFlasherRequest_ 00317 } // namespace serialization 00318 } // namespace ros 00319 00320 00321 namespace ros 00322 { 00323 namespace serialization 00324 { 00325 00326 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > 00327 { 00328 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00329 { 00330 stream.next(m.value); 00331 } 00332 00333 ROS_DECLARE_ALLINONE_SERIALIZER; 00334 }; // struct SimpleMotorFlasherResponse_ 00335 } // namespace serialization 00336 } // namespace ros 00337 00338 namespace ros 00339 { 00340 namespace service_traits 00341 { 00342 template<> 00343 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasher> { 00344 static const char* value() 00345 { 00346 return "b5e4cd4b44ed54dd8f018caf24a9e0c1"; 00347 } 00348 00349 static const char* value(const sr_robot_msgs::SimpleMotorFlasher&) { return value(); } 00350 }; 00351 00352 template<> 00353 struct DataType<sr_robot_msgs::SimpleMotorFlasher> { 00354 static const char* value() 00355 { 00356 return "sr_robot_msgs/SimpleMotorFlasher"; 00357 } 00358 00359 static const char* value(const sr_robot_msgs::SimpleMotorFlasher&) { return value(); } 00360 }; 00361 00362 template<class ContainerAllocator> 00363 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > { 00364 static const char* value() 00365 { 00366 return "b5e4cd4b44ed54dd8f018caf24a9e0c1"; 00367 } 00368 00369 static const char* value(const sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 00370 }; 00371 00372 template<class ContainerAllocator> 00373 struct DataType<sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > { 00374 static const char* value() 00375 { 00376 return "sr_robot_msgs/SimpleMotorFlasher"; 00377 } 00378 00379 static const char* value(const sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 00380 }; 00381 00382 template<class ContainerAllocator> 00383 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > { 00384 static const char* value() 00385 { 00386 return "b5e4cd4b44ed54dd8f018caf24a9e0c1"; 00387 } 00388 00389 static const char* value(const sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 00390 }; 00391 00392 template<class ContainerAllocator> 00393 struct DataType<sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > { 00394 static const char* value() 00395 { 00396 return "sr_robot_msgs/SimpleMotorFlasher"; 00397 } 00398 00399 static const char* value(const sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 00400 }; 00401 00402 } // namespace service_traits 00403 } // namespace ros 00404 00405 #endif // SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H 00406