$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_common/doc_stacks/2013-03-01_14-38-37.978792/cob_common/cob_srvs/srv/SetJointStiffness.srv */ 00002 #ifndef COB_SRVS_SERVICE_SETJOINTSTIFFNESS_H 00003 #define COB_SRVS_SERVICE_SETJOINTSTIFFNESS_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 #include "std_msgs/Bool.h" 00022 #include "std_msgs/String.h" 00023 00024 namespace cob_srvs 00025 { 00026 template <class ContainerAllocator> 00027 struct SetJointStiffnessRequest_ { 00028 typedef SetJointStiffnessRequest_<ContainerAllocator> Type; 00029 00030 SetJointStiffnessRequest_() 00031 : joint_stiffness() 00032 { 00033 } 00034 00035 SetJointStiffnessRequest_(const ContainerAllocator& _alloc) 00036 : joint_stiffness(_alloc) 00037 { 00038 } 00039 00040 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _joint_stiffness_type; 00041 std::vector<float, typename ContainerAllocator::template rebind<float>::other > joint_stiffness; 00042 00043 00044 ROS_DEPRECATED uint32_t get_joint_stiffness_size() const { return (uint32_t)joint_stiffness.size(); } 00045 ROS_DEPRECATED void set_joint_stiffness_size(uint32_t size) { joint_stiffness.resize((size_t)size); } 00046 ROS_DEPRECATED void get_joint_stiffness_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->joint_stiffness; } 00047 ROS_DEPRECATED void set_joint_stiffness_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->joint_stiffness = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "cob_srvs/SetJointStiffnessRequest"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "3f30c4d99702f028fe1bef65668a3d21"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getServerMD5Sum_() { return "2ae9ddd5d3294ccf3c876d966e4e11a3"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00066 00067 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00068 00069 private: 00070 static const char* __s_getMessageDefinition_() { return "float32[] joint_stiffness\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, joint_stiffness); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, joint_stiffness); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(joint_stiffness); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct SetJointStiffnessRequest 00103 typedef ::cob_srvs::SetJointStiffnessRequest_<std::allocator<void> > SetJointStiffnessRequest; 00104 00105 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessRequest> SetJointStiffnessRequestPtr; 00106 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessRequest const> SetJointStiffnessRequestConstPtr; 00107 00108 00109 template <class ContainerAllocator> 00110 struct SetJointStiffnessResponse_ { 00111 typedef SetJointStiffnessResponse_<ContainerAllocator> Type; 00112 00113 SetJointStiffnessResponse_() 00114 : success() 00115 , error_message() 00116 { 00117 } 00118 00119 SetJointStiffnessResponse_(const ContainerAllocator& _alloc) 00120 : success(_alloc) 00121 , error_message(_alloc) 00122 { 00123 } 00124 00125 typedef ::std_msgs::Bool_<ContainerAllocator> _success_type; 00126 ::std_msgs::Bool_<ContainerAllocator> success; 00127 00128 typedef ::std_msgs::String_<ContainerAllocator> _error_message_type; 00129 ::std_msgs::String_<ContainerAllocator> error_message; 00130 00131 00132 private: 00133 static const char* __s_getDataType_() { return "cob_srvs/SetJointStiffnessResponse"; } 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 "bdad515e8f4c013bd650d3407753d2b8"; } 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 "2ae9ddd5d3294ccf3c876d966e4e11a3"; } 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 "std_msgs/Bool success\n\ 00155 std_msgs/String error_message\n\ 00156 \n\ 00157 \n\ 00158 ================================================================================\n\ 00159 MSG: std_msgs/Bool\n\ 00160 bool data\n\ 00161 ================================================================================\n\ 00162 MSG: std_msgs/String\n\ 00163 string data\n\ 00164 \n\ 00165 "; } 00166 public: 00167 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00168 00169 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00170 00171 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00172 { 00173 ros::serialization::OStream stream(write_ptr, 1000000000); 00174 ros::serialization::serialize(stream, success); 00175 ros::serialization::serialize(stream, error_message); 00176 return stream.getData(); 00177 } 00178 00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00180 { 00181 ros::serialization::IStream stream(read_ptr, 1000000000); 00182 ros::serialization::deserialize(stream, success); 00183 ros::serialization::deserialize(stream, error_message); 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 size += ros::serialization::serializationLength(error_message); 00192 return size; 00193 } 00194 00195 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > Ptr; 00196 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> const> ConstPtr; 00197 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00198 }; // struct SetJointStiffnessResponse 00199 typedef ::cob_srvs::SetJointStiffnessResponse_<std::allocator<void> > SetJointStiffnessResponse; 00200 00201 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessResponse> SetJointStiffnessResponsePtr; 00202 typedef boost::shared_ptr< ::cob_srvs::SetJointStiffnessResponse const> SetJointStiffnessResponseConstPtr; 00203 00204 struct SetJointStiffness 00205 { 00206 00207 typedef SetJointStiffnessRequest Request; 00208 typedef SetJointStiffnessResponse Response; 00209 Request request; 00210 Response response; 00211 00212 typedef Request RequestType; 00213 typedef Response ResponseType; 00214 }; // struct SetJointStiffness 00215 } // namespace cob_srvs 00216 00217 namespace ros 00218 { 00219 namespace message_traits 00220 { 00221 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > : public TrueType {}; 00222 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> const> : public TrueType {}; 00223 template<class ContainerAllocator> 00224 struct MD5Sum< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > { 00225 static const char* value() 00226 { 00227 return "3f30c4d99702f028fe1bef65668a3d21"; 00228 } 00229 00230 static const char* value(const ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> &) { return value(); } 00231 static const uint64_t static_value1 = 0x3f30c4d99702f028ULL; 00232 static const uint64_t static_value2 = 0xfe1bef65668a3d21ULL; 00233 }; 00234 00235 template<class ContainerAllocator> 00236 struct DataType< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > { 00237 static const char* value() 00238 { 00239 return "cob_srvs/SetJointStiffnessRequest"; 00240 } 00241 00242 static const char* value(const ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> &) { return value(); } 00243 }; 00244 00245 template<class ContainerAllocator> 00246 struct Definition< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "float32[] joint_stiffness\n\ 00250 \n\ 00251 "; 00252 } 00253 00254 static const char* value(const ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> &) { return value(); } 00255 }; 00256 00257 } // namespace message_traits 00258 } // namespace ros 00259 00260 00261 namespace ros 00262 { 00263 namespace message_traits 00264 { 00265 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > : public TrueType {}; 00266 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> const> : public TrueType {}; 00267 template<class ContainerAllocator> 00268 struct MD5Sum< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > { 00269 static const char* value() 00270 { 00271 return "bdad515e8f4c013bd650d3407753d2b8"; 00272 } 00273 00274 static const char* value(const ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> &) { return value(); } 00275 static const uint64_t static_value1 = 0xbdad515e8f4c013bULL; 00276 static const uint64_t static_value2 = 0xd650d3407753d2b8ULL; 00277 }; 00278 00279 template<class ContainerAllocator> 00280 struct DataType< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > { 00281 static const char* value() 00282 { 00283 return "cob_srvs/SetJointStiffnessResponse"; 00284 } 00285 00286 static const char* value(const ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> &) { return value(); } 00287 }; 00288 00289 template<class ContainerAllocator> 00290 struct Definition< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > { 00291 static const char* value() 00292 { 00293 return "std_msgs/Bool success\n\ 00294 std_msgs/String error_message\n\ 00295 \n\ 00296 \n\ 00297 ================================================================================\n\ 00298 MSG: std_msgs/Bool\n\ 00299 bool data\n\ 00300 ================================================================================\n\ 00301 MSG: std_msgs/String\n\ 00302 string data\n\ 00303 \n\ 00304 "; 00305 } 00306 00307 static const char* value(const ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> &) { return value(); } 00308 }; 00309 00310 } // namespace message_traits 00311 } // namespace ros 00312 00313 namespace ros 00314 { 00315 namespace serialization 00316 { 00317 00318 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > 00319 { 00320 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00321 { 00322 stream.next(m.joint_stiffness); 00323 } 00324 00325 ROS_DECLARE_ALLINONE_SERIALIZER; 00326 }; // struct SetJointStiffnessRequest_ 00327 } // namespace serialization 00328 } // namespace ros 00329 00330 00331 namespace ros 00332 { 00333 namespace serialization 00334 { 00335 00336 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > 00337 { 00338 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00339 { 00340 stream.next(m.success); 00341 stream.next(m.error_message); 00342 } 00343 00344 ROS_DECLARE_ALLINONE_SERIALIZER; 00345 }; // struct SetJointStiffnessResponse_ 00346 } // namespace serialization 00347 } // namespace ros 00348 00349 namespace ros 00350 { 00351 namespace service_traits 00352 { 00353 template<> 00354 struct MD5Sum<cob_srvs::SetJointStiffness> { 00355 static const char* value() 00356 { 00357 return "2ae9ddd5d3294ccf3c876d966e4e11a3"; 00358 } 00359 00360 static const char* value(const cob_srvs::SetJointStiffness&) { return value(); } 00361 }; 00362 00363 template<> 00364 struct DataType<cob_srvs::SetJointStiffness> { 00365 static const char* value() 00366 { 00367 return "cob_srvs/SetJointStiffness"; 00368 } 00369 00370 static const char* value(const cob_srvs::SetJointStiffness&) { return value(); } 00371 }; 00372 00373 template<class ContainerAllocator> 00374 struct MD5Sum<cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > { 00375 static const char* value() 00376 { 00377 return "2ae9ddd5d3294ccf3c876d966e4e11a3"; 00378 } 00379 00380 static const char* value(const cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> &) { return value(); } 00381 }; 00382 00383 template<class ContainerAllocator> 00384 struct DataType<cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> > { 00385 static const char* value() 00386 { 00387 return "cob_srvs/SetJointStiffness"; 00388 } 00389 00390 static const char* value(const cob_srvs::SetJointStiffnessRequest_<ContainerAllocator> &) { return value(); } 00391 }; 00392 00393 template<class ContainerAllocator> 00394 struct MD5Sum<cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > { 00395 static const char* value() 00396 { 00397 return "2ae9ddd5d3294ccf3c876d966e4e11a3"; 00398 } 00399 00400 static const char* value(const cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> &) { return value(); } 00401 }; 00402 00403 template<class ContainerAllocator> 00404 struct DataType<cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> > { 00405 static const char* value() 00406 { 00407 return "cob_srvs/SetJointStiffness"; 00408 } 00409 00410 static const char* value(const cob_srvs::SetJointStiffnessResponse_<ContainerAllocator> &) { return value(); } 00411 }; 00412 00413 } // namespace service_traits 00414 } // namespace ros 00415 00416 #endif // COB_SRVS_SERVICE_SETJOINTSTIFFNESS_H 00417