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