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