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