$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/ForceController.srv */ 00002 #ifndef SR_ROBOT_MSGS_SERVICE_FORCECONTROLLER_H 00003 #define SR_ROBOT_MSGS_SERVICE_FORCECONTROLLER_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 ForceControllerRequest_ { 00026 typedef ForceControllerRequest_<ContainerAllocator> Type; 00027 00028 ForceControllerRequest_() 00029 : maxpwm(0) 00030 , sgleftref(0) 00031 , sgrightref(0) 00032 , f(0) 00033 , p(0) 00034 , i(0) 00035 , d(0) 00036 , imax(0) 00037 , deadband(0) 00038 , sign(0) 00039 { 00040 } 00041 00042 ForceControllerRequest_(const ContainerAllocator& _alloc) 00043 : maxpwm(0) 00044 , sgleftref(0) 00045 , sgrightref(0) 00046 , f(0) 00047 , p(0) 00048 , i(0) 00049 , d(0) 00050 , imax(0) 00051 , deadband(0) 00052 , sign(0) 00053 { 00054 } 00055 00056 typedef int16_t _maxpwm_type; 00057 int16_t maxpwm; 00058 00059 typedef int16_t _sgleftref_type; 00060 int16_t sgleftref; 00061 00062 typedef int16_t _sgrightref_type; 00063 int16_t sgrightref; 00064 00065 typedef int16_t _f_type; 00066 int16_t f; 00067 00068 typedef int16_t _p_type; 00069 int16_t p; 00070 00071 typedef int16_t _i_type; 00072 int16_t i; 00073 00074 typedef int16_t _d_type; 00075 int16_t d; 00076 00077 typedef int16_t _imax_type; 00078 int16_t imax; 00079 00080 typedef int16_t _deadband_type; 00081 int16_t deadband; 00082 00083 typedef int16_t _sign_type; 00084 int16_t sign; 00085 00086 00087 private: 00088 static const char* __s_getDataType_() { return "sr_robot_msgs/ForceControllerRequest"; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00091 00092 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00093 00094 private: 00095 static const char* __s_getMD5Sum_() { return "8bb059ffa85c4df492f2694e40ee3541"; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00098 00099 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00100 00101 private: 00102 static const char* __s_getServerMD5Sum_() { return "708b72feb937eddb740362ef24ec3beb"; } 00103 public: 00104 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00105 00106 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00107 00108 private: 00109 static const char* __s_getMessageDefinition_() { return "int16 maxpwm\n\ 00110 int16 sgleftref\n\ 00111 int16 sgrightref\n\ 00112 int16 f\n\ 00113 int16 p\n\ 00114 int16 i\n\ 00115 int16 d\n\ 00116 int16 imax\n\ 00117 int16 deadband\n\ 00118 int16 sign\n\ 00119 \n\ 00120 "; } 00121 public: 00122 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00123 00124 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00127 { 00128 ros::serialization::OStream stream(write_ptr, 1000000000); 00129 ros::serialization::serialize(stream, maxpwm); 00130 ros::serialization::serialize(stream, sgleftref); 00131 ros::serialization::serialize(stream, sgrightref); 00132 ros::serialization::serialize(stream, f); 00133 ros::serialization::serialize(stream, p); 00134 ros::serialization::serialize(stream, i); 00135 ros::serialization::serialize(stream, d); 00136 ros::serialization::serialize(stream, imax); 00137 ros::serialization::serialize(stream, deadband); 00138 ros::serialization::serialize(stream, sign); 00139 return stream.getData(); 00140 } 00141 00142 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00143 { 00144 ros::serialization::IStream stream(read_ptr, 1000000000); 00145 ros::serialization::deserialize(stream, maxpwm); 00146 ros::serialization::deserialize(stream, sgleftref); 00147 ros::serialization::deserialize(stream, sgrightref); 00148 ros::serialization::deserialize(stream, f); 00149 ros::serialization::deserialize(stream, p); 00150 ros::serialization::deserialize(stream, i); 00151 ros::serialization::deserialize(stream, d); 00152 ros::serialization::deserialize(stream, imax); 00153 ros::serialization::deserialize(stream, deadband); 00154 ros::serialization::deserialize(stream, sign); 00155 return stream.getData(); 00156 } 00157 00158 ROS_DEPRECATED virtual uint32_t serializationLength() const 00159 { 00160 uint32_t size = 0; 00161 size += ros::serialization::serializationLength(maxpwm); 00162 size += ros::serialization::serializationLength(sgleftref); 00163 size += ros::serialization::serializationLength(sgrightref); 00164 size += ros::serialization::serializationLength(f); 00165 size += ros::serialization::serializationLength(p); 00166 size += ros::serialization::serializationLength(i); 00167 size += ros::serialization::serializationLength(d); 00168 size += ros::serialization::serializationLength(imax); 00169 size += ros::serialization::serializationLength(deadband); 00170 size += ros::serialization::serializationLength(sign); 00171 return size; 00172 } 00173 00174 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > Ptr; 00175 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> const> ConstPtr; 00176 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00177 }; // struct ForceControllerRequest 00178 typedef ::sr_robot_msgs::ForceControllerRequest_<std::allocator<void> > ForceControllerRequest; 00179 00180 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerRequest> ForceControllerRequestPtr; 00181 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerRequest const> ForceControllerRequestConstPtr; 00182 00183 00184 template <class ContainerAllocator> 00185 struct ForceControllerResponse_ { 00186 typedef ForceControllerResponse_<ContainerAllocator> Type; 00187 00188 ForceControllerResponse_() 00189 : configured(false) 00190 { 00191 } 00192 00193 ForceControllerResponse_(const ContainerAllocator& _alloc) 00194 : configured(false) 00195 { 00196 } 00197 00198 typedef uint8_t _configured_type; 00199 uint8_t configured; 00200 00201 00202 private: 00203 static const char* __s_getDataType_() { return "sr_robot_msgs/ForceControllerResponse"; } 00204 public: 00205 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00206 00207 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00208 00209 private: 00210 static const char* __s_getMD5Sum_() { return "d3b1a74026985b10664594fe60a8c3eb"; } 00211 public: 00212 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00213 00214 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00215 00216 private: 00217 static const char* __s_getServerMD5Sum_() { return "708b72feb937eddb740362ef24ec3beb"; } 00218 public: 00219 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00220 00221 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00222 00223 private: 00224 static const char* __s_getMessageDefinition_() { return "bool configured\n\ 00225 \n\ 00226 "; } 00227 public: 00228 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00229 00230 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00231 00232 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00233 { 00234 ros::serialization::OStream stream(write_ptr, 1000000000); 00235 ros::serialization::serialize(stream, configured); 00236 return stream.getData(); 00237 } 00238 00239 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00240 { 00241 ros::serialization::IStream stream(read_ptr, 1000000000); 00242 ros::serialization::deserialize(stream, configured); 00243 return stream.getData(); 00244 } 00245 00246 ROS_DEPRECATED virtual uint32_t serializationLength() const 00247 { 00248 uint32_t size = 0; 00249 size += ros::serialization::serializationLength(configured); 00250 return size; 00251 } 00252 00253 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > Ptr; 00254 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> const> ConstPtr; 00255 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00256 }; // struct ForceControllerResponse 00257 typedef ::sr_robot_msgs::ForceControllerResponse_<std::allocator<void> > ForceControllerResponse; 00258 00259 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerResponse> ForceControllerResponsePtr; 00260 typedef boost::shared_ptr< ::sr_robot_msgs::ForceControllerResponse const> ForceControllerResponseConstPtr; 00261 00262 struct ForceController 00263 { 00264 00265 typedef ForceControllerRequest Request; 00266 typedef ForceControllerResponse Response; 00267 Request request; 00268 Response response; 00269 00270 typedef Request RequestType; 00271 typedef Response ResponseType; 00272 }; // struct ForceController 00273 } // namespace sr_robot_msgs 00274 00275 namespace ros 00276 { 00277 namespace message_traits 00278 { 00279 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > : public TrueType {}; 00280 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> const> : public TrueType {}; 00281 template<class ContainerAllocator> 00282 struct MD5Sum< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "8bb059ffa85c4df492f2694e40ee3541"; 00286 } 00287 00288 static const char* value(const ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> &) { return value(); } 00289 static const uint64_t static_value1 = 0x8bb059ffa85c4df4ULL; 00290 static const uint64_t static_value2 = 0x92f2694e40ee3541ULL; 00291 }; 00292 00293 template<class ContainerAllocator> 00294 struct DataType< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > { 00295 static const char* value() 00296 { 00297 return "sr_robot_msgs/ForceControllerRequest"; 00298 } 00299 00300 static const char* value(const ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> &) { return value(); } 00301 }; 00302 00303 template<class ContainerAllocator> 00304 struct Definition< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "int16 maxpwm\n\ 00308 int16 sgleftref\n\ 00309 int16 sgrightref\n\ 00310 int16 f\n\ 00311 int16 p\n\ 00312 int16 i\n\ 00313 int16 d\n\ 00314 int16 imax\n\ 00315 int16 deadband\n\ 00316 int16 sign\n\ 00317 \n\ 00318 "; 00319 } 00320 00321 static const char* value(const ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> &) { return value(); } 00322 }; 00323 00324 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > : public TrueType {}; 00325 } // namespace message_traits 00326 } // namespace ros 00327 00328 00329 namespace ros 00330 { 00331 namespace message_traits 00332 { 00333 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > : public TrueType {}; 00334 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> const> : public TrueType {}; 00335 template<class ContainerAllocator> 00336 struct MD5Sum< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > { 00337 static const char* value() 00338 { 00339 return "d3b1a74026985b10664594fe60a8c3eb"; 00340 } 00341 00342 static const char* value(const ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> &) { return value(); } 00343 static const uint64_t static_value1 = 0xd3b1a74026985b10ULL; 00344 static const uint64_t static_value2 = 0x664594fe60a8c3ebULL; 00345 }; 00346 00347 template<class ContainerAllocator> 00348 struct DataType< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > { 00349 static const char* value() 00350 { 00351 return "sr_robot_msgs/ForceControllerResponse"; 00352 } 00353 00354 static const char* value(const ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> &) { return value(); } 00355 }; 00356 00357 template<class ContainerAllocator> 00358 struct Definition< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > { 00359 static const char* value() 00360 { 00361 return "bool configured\n\ 00362 \n\ 00363 "; 00364 } 00365 00366 static const char* value(const ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> &) { return value(); } 00367 }; 00368 00369 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > : public TrueType {}; 00370 } // namespace message_traits 00371 } // namespace ros 00372 00373 namespace ros 00374 { 00375 namespace serialization 00376 { 00377 00378 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > 00379 { 00380 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00381 { 00382 stream.next(m.maxpwm); 00383 stream.next(m.sgleftref); 00384 stream.next(m.sgrightref); 00385 stream.next(m.f); 00386 stream.next(m.p); 00387 stream.next(m.i); 00388 stream.next(m.d); 00389 stream.next(m.imax); 00390 stream.next(m.deadband); 00391 stream.next(m.sign); 00392 } 00393 00394 ROS_DECLARE_ALLINONE_SERIALIZER; 00395 }; // struct ForceControllerRequest_ 00396 } // namespace serialization 00397 } // namespace ros 00398 00399 00400 namespace ros 00401 { 00402 namespace serialization 00403 { 00404 00405 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > 00406 { 00407 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00408 { 00409 stream.next(m.configured); 00410 } 00411 00412 ROS_DECLARE_ALLINONE_SERIALIZER; 00413 }; // struct ForceControllerResponse_ 00414 } // namespace serialization 00415 } // namespace ros 00416 00417 namespace ros 00418 { 00419 namespace service_traits 00420 { 00421 template<> 00422 struct MD5Sum<sr_robot_msgs::ForceController> { 00423 static const char* value() 00424 { 00425 return "708b72feb937eddb740362ef24ec3beb"; 00426 } 00427 00428 static const char* value(const sr_robot_msgs::ForceController&) { return value(); } 00429 }; 00430 00431 template<> 00432 struct DataType<sr_robot_msgs::ForceController> { 00433 static const char* value() 00434 { 00435 return "sr_robot_msgs/ForceController"; 00436 } 00437 00438 static const char* value(const sr_robot_msgs::ForceController&) { return value(); } 00439 }; 00440 00441 template<class ContainerAllocator> 00442 struct MD5Sum<sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > { 00443 static const char* value() 00444 { 00445 return "708b72feb937eddb740362ef24ec3beb"; 00446 } 00447 00448 static const char* value(const sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> &) { return value(); } 00449 }; 00450 00451 template<class ContainerAllocator> 00452 struct DataType<sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> > { 00453 static const char* value() 00454 { 00455 return "sr_robot_msgs/ForceController"; 00456 } 00457 00458 static const char* value(const sr_robot_msgs::ForceControllerRequest_<ContainerAllocator> &) { return value(); } 00459 }; 00460 00461 template<class ContainerAllocator> 00462 struct MD5Sum<sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > { 00463 static const char* value() 00464 { 00465 return "708b72feb937eddb740362ef24ec3beb"; 00466 } 00467 00468 static const char* value(const sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> &) { return value(); } 00469 }; 00470 00471 template<class ContainerAllocator> 00472 struct DataType<sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> > { 00473 static const char* value() 00474 { 00475 return "sr_robot_msgs/ForceController"; 00476 } 00477 00478 static const char* value(const sr_robot_msgs::ForceControllerResponse_<ContainerAllocator> &) { return value(); } 00479 }; 00480 00481 } // namespace service_traits 00482 } // namespace ros 00483 00484 #endif // SR_ROBOT_MSGS_SERVICE_FORCECONTROLLER_H 00485