00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-gt-ros-pkg/doc_stacks/2013-11-27_11-23-35.692702/hrl/hrl_behaviors/pr2_collision_monitor/srv/GetFingerState.srv */ 00002 #ifndef PR2_COLLISION_MONITOR_SERVICE_GETFINGERSTATE_H 00003 #define PR2_COLLISION_MONITOR_SERVICE_GETFINGERSTATE_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 "pr2_collision_monitor/FingerState.h" 00022 00023 namespace pr2_collision_monitor 00024 { 00025 template <class ContainerAllocator> 00026 struct GetFingerStateRequest_ { 00027 typedef GetFingerStateRequest_<ContainerAllocator> Type; 00028 00029 GetFingerStateRequest_() 00030 { 00031 } 00032 00033 GetFingerStateRequest_(const ContainerAllocator& _alloc) 00034 { 00035 } 00036 00037 00038 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > Ptr; 00039 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> const> ConstPtr; 00040 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00041 }; // struct GetFingerStateRequest 00042 typedef ::pr2_collision_monitor::GetFingerStateRequest_<std::allocator<void> > GetFingerStateRequest; 00043 00044 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateRequest> GetFingerStateRequestPtr; 00045 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateRequest const> GetFingerStateRequestConstPtr; 00046 00047 00048 template <class ContainerAllocator> 00049 struct GetFingerStateResponse_ { 00050 typedef GetFingerStateResponse_<ContainerAllocator> Type; 00051 00052 GetFingerStateResponse_() 00053 : state() 00054 { 00055 } 00056 00057 GetFingerStateResponse_(const ContainerAllocator& _alloc) 00058 : state(_alloc) 00059 { 00060 } 00061 00062 typedef ::pr2_collision_monitor::FingerState_<ContainerAllocator> _state_type; 00063 ::pr2_collision_monitor::FingerState_<ContainerAllocator> state; 00064 00065 00066 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > Ptr; 00067 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> const> ConstPtr; 00068 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00069 }; // struct GetFingerStateResponse 00070 typedef ::pr2_collision_monitor::GetFingerStateResponse_<std::allocator<void> > GetFingerStateResponse; 00071 00072 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateResponse> GetFingerStateResponsePtr; 00073 typedef boost::shared_ptr< ::pr2_collision_monitor::GetFingerStateResponse const> GetFingerStateResponseConstPtr; 00074 00075 struct GetFingerState 00076 { 00077 00078 typedef GetFingerStateRequest Request; 00079 typedef GetFingerStateResponse Response; 00080 Request request; 00081 Response response; 00082 00083 typedef Request RequestType; 00084 typedef Response ResponseType; 00085 }; // struct GetFingerState 00086 } // namespace pr2_collision_monitor 00087 00088 namespace ros 00089 { 00090 namespace message_traits 00091 { 00092 template<class ContainerAllocator> struct IsMessage< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > : public TrueType {}; 00093 template<class ContainerAllocator> struct IsMessage< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> const> : public TrueType {}; 00094 template<class ContainerAllocator> 00095 struct MD5Sum< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > { 00096 static const char* value() 00097 { 00098 return "d41d8cd98f00b204e9800998ecf8427e"; 00099 } 00100 00101 static const char* value(const ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> &) { return value(); } 00102 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00103 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00104 }; 00105 00106 template<class ContainerAllocator> 00107 struct DataType< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > { 00108 static const char* value() 00109 { 00110 return "pr2_collision_monitor/GetFingerStateRequest"; 00111 } 00112 00113 static const char* value(const ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> &) { return value(); } 00114 }; 00115 00116 template<class ContainerAllocator> 00117 struct Definition< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > { 00118 static const char* value() 00119 { 00120 return "\n\ 00121 "; 00122 } 00123 00124 static const char* value(const ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> &) { return value(); } 00125 }; 00126 00127 template<class ContainerAllocator> struct IsFixedSize< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > : public TrueType {}; 00128 } // namespace message_traits 00129 } // namespace ros 00130 00131 00132 namespace ros 00133 { 00134 namespace message_traits 00135 { 00136 template<class ContainerAllocator> struct IsMessage< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > : public TrueType {}; 00137 template<class ContainerAllocator> struct IsMessage< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> const> : public TrueType {}; 00138 template<class ContainerAllocator> 00139 struct MD5Sum< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "160e92edba387163d0b59d83a6afb368"; 00143 } 00144 00145 static const char* value(const ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> &) { return value(); } 00146 static const uint64_t static_value1 = 0x160e92edba387163ULL; 00147 static const uint64_t static_value2 = 0xd0b59d83a6afb368ULL; 00148 }; 00149 00150 template<class ContainerAllocator> 00151 struct DataType< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > { 00152 static const char* value() 00153 { 00154 return "pr2_collision_monitor/GetFingerStateResponse"; 00155 } 00156 00157 static const char* value(const ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 template<class ContainerAllocator> 00161 struct Definition< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "pr2_collision_monitor/FingerState state\n\ 00165 \n\ 00166 \n\ 00167 ================================================================================\n\ 00168 MSG: pr2_collision_monitor/FingerState\n\ 00169 bool any_collision\n\ 00170 bool[] r_finger_tip\n\ 00171 bool[] l_finger_tip\n\ 00172 \n\ 00173 "; 00174 } 00175 00176 static const char* value(const ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 } // namespace message_traits 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace serialization 00185 { 00186 00187 template<class ContainerAllocator> struct Serializer< ::pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > 00188 { 00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00190 { 00191 } 00192 00193 ROS_DECLARE_ALLINONE_SERIALIZER; 00194 }; // struct GetFingerStateRequest_ 00195 } // namespace serialization 00196 } // namespace ros 00197 00198 00199 namespace ros 00200 { 00201 namespace serialization 00202 { 00203 00204 template<class ContainerAllocator> struct Serializer< ::pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > 00205 { 00206 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00207 { 00208 stream.next(m.state); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct GetFingerStateResponse_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace service_traits 00219 { 00220 template<> 00221 struct MD5Sum<pr2_collision_monitor::GetFingerState> { 00222 static const char* value() 00223 { 00224 return "160e92edba387163d0b59d83a6afb368"; 00225 } 00226 00227 static const char* value(const pr2_collision_monitor::GetFingerState&) { return value(); } 00228 }; 00229 00230 template<> 00231 struct DataType<pr2_collision_monitor::GetFingerState> { 00232 static const char* value() 00233 { 00234 return "pr2_collision_monitor/GetFingerState"; 00235 } 00236 00237 static const char* value(const pr2_collision_monitor::GetFingerState&) { return value(); } 00238 }; 00239 00240 template<class ContainerAllocator> 00241 struct MD5Sum<pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "160e92edba387163d0b59d83a6afb368"; 00245 } 00246 00247 static const char* value(const pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 template<class ContainerAllocator> 00251 struct DataType<pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> > { 00252 static const char* value() 00253 { 00254 return "pr2_collision_monitor/GetFingerState"; 00255 } 00256 00257 static const char* value(const pr2_collision_monitor::GetFingerStateRequest_<ContainerAllocator> &) { return value(); } 00258 }; 00259 00260 template<class ContainerAllocator> 00261 struct MD5Sum<pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "160e92edba387163d0b59d83a6afb368"; 00265 } 00266 00267 static const char* value(const pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> &) { return value(); } 00268 }; 00269 00270 template<class ContainerAllocator> 00271 struct DataType<pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> > { 00272 static const char* value() 00273 { 00274 return "pr2_collision_monitor/GetFingerState"; 00275 } 00276 00277 static const char* value(const pr2_collision_monitor::GetFingerStateResponse_<ContainerAllocator> &) { return value(); } 00278 }; 00279 00280 } // namespace service_traits 00281 } // namespace ros 00282 00283 #endif // PR2_COLLISION_MONITOR_SERVICE_GETFINGERSTATE_H 00284