$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_knowledge/srv/GetPredefinedPoses.srv */ 00002 #ifndef SRS_KNOWLEDGE_SERVICE_GETPREDEFINEDPOSES_H 00003 #define SRS_KNOWLEDGE_SERVICE_GETPREDEFINEDPOSES_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 "geometry_msgs/Pose2D.h" 00022 00023 namespace srs_knowledge 00024 { 00025 template <class ContainerAllocator> 00026 struct GetPredefinedPosesRequest_ { 00027 typedef GetPredefinedPosesRequest_<ContainerAllocator> Type; 00028 00029 GetPredefinedPosesRequest_() 00030 : map() 00031 { 00032 } 00033 00034 GetPredefinedPosesRequest_(const ContainerAllocator& _alloc) 00035 : map(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _map_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > map; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "srs_knowledge/GetPredefinedPosesRequest"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "aa8aee7f6c8d5b8306117b46af679744"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getServerMD5Sum_() { return "3191b85c3a25ca96f7c14907417f01f1"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "string map\n\ 00066 \n\ 00067 \n\ 00068 \n\ 00069 "; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00076 { 00077 ros::serialization::OStream stream(write_ptr, 1000000000); 00078 ros::serialization::serialize(stream, map); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, map); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint32_t serializationLength() const 00090 { 00091 uint32_t size = 0; 00092 size += ros::serialization::serializationLength(map); 00093 return size; 00094 } 00095 00096 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > Ptr; 00097 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> const> ConstPtr; 00098 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00099 }; // struct GetPredefinedPosesRequest 00100 typedef ::srs_knowledge::GetPredefinedPosesRequest_<std::allocator<void> > GetPredefinedPosesRequest; 00101 00102 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesRequest> GetPredefinedPosesRequestPtr; 00103 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesRequest const> GetPredefinedPosesRequestConstPtr; 00104 00105 00106 template <class ContainerAllocator> 00107 struct GetPredefinedPosesResponse_ { 00108 typedef GetPredefinedPosesResponse_<ContainerAllocator> Type; 00109 00110 GetPredefinedPosesResponse_() 00111 : locations() 00112 , poses() 00113 , readableNames() 00114 , json_properties() 00115 { 00116 } 00117 00118 GetPredefinedPosesResponse_(const ContainerAllocator& _alloc) 00119 : locations(_alloc) 00120 , poses(_alloc) 00121 , readableNames(_alloc) 00122 , json_properties(_alloc) 00123 { 00124 } 00125 00126 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _locations_type; 00127 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > locations; 00128 00129 typedef std::vector< ::geometry_msgs::Pose2D_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose2D_<ContainerAllocator> >::other > _poses_type; 00130 std::vector< ::geometry_msgs::Pose2D_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose2D_<ContainerAllocator> >::other > poses; 00131 00132 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _readableNames_type; 00133 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > readableNames; 00134 00135 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _json_properties_type; 00136 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > json_properties; 00137 00138 00139 ROS_DEPRECATED uint32_t get_locations_size() const { return (uint32_t)locations.size(); } 00140 ROS_DEPRECATED void set_locations_size(uint32_t size) { locations.resize((size_t)size); } 00141 ROS_DEPRECATED void get_locations_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->locations; } 00142 ROS_DEPRECATED void set_locations_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->locations = vec; } 00143 ROS_DEPRECATED uint32_t get_poses_size() const { return (uint32_t)poses.size(); } 00144 ROS_DEPRECATED void set_poses_size(uint32_t size) { poses.resize((size_t)size); } 00145 ROS_DEPRECATED void get_poses_vec(std::vector< ::geometry_msgs::Pose2D_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose2D_<ContainerAllocator> >::other > & vec) const { vec = this->poses; } 00146 ROS_DEPRECATED void set_poses_vec(const std::vector< ::geometry_msgs::Pose2D_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose2D_<ContainerAllocator> >::other > & vec) { this->poses = vec; } 00147 ROS_DEPRECATED uint32_t get_readableNames_size() const { return (uint32_t)readableNames.size(); } 00148 ROS_DEPRECATED void set_readableNames_size(uint32_t size) { readableNames.resize((size_t)size); } 00149 ROS_DEPRECATED void get_readableNames_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->readableNames; } 00150 ROS_DEPRECATED void set_readableNames_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->readableNames = vec; } 00151 ROS_DEPRECATED uint32_t get_json_properties_size() const { return (uint32_t)json_properties.size(); } 00152 ROS_DEPRECATED void set_json_properties_size(uint32_t size) { json_properties.resize((size_t)size); } 00153 ROS_DEPRECATED void get_json_properties_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->json_properties; } 00154 ROS_DEPRECATED void set_json_properties_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->json_properties = vec; } 00155 private: 00156 static const char* __s_getDataType_() { return "srs_knowledge/GetPredefinedPosesResponse"; } 00157 public: 00158 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00159 00160 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00161 00162 private: 00163 static const char* __s_getMD5Sum_() { return "fe5f3887ad646ed4d1ed0e21834b460b"; } 00164 public: 00165 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00166 00167 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00168 00169 private: 00170 static const char* __s_getServerMD5Sum_() { return "3191b85c3a25ca96f7c14907417f01f1"; } 00171 public: 00172 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00173 00174 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00175 00176 private: 00177 static const char* __s_getMessageDefinition_() { return "\n\ 00178 \n\ 00179 string[] locations\n\ 00180 geometry_msgs/Pose2D[] poses\n\ 00181 string[] readableNames\n\ 00182 \n\ 00183 string[] json_properties\n\ 00184 \n\ 00185 ================================================================================\n\ 00186 MSG: geometry_msgs/Pose2D\n\ 00187 # This expresses a position and orientation on a 2D manifold.\n\ 00188 \n\ 00189 float64 x\n\ 00190 float64 y\n\ 00191 float64 theta\n\ 00192 "; } 00193 public: 00194 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00195 00196 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00197 00198 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00199 { 00200 ros::serialization::OStream stream(write_ptr, 1000000000); 00201 ros::serialization::serialize(stream, locations); 00202 ros::serialization::serialize(stream, poses); 00203 ros::serialization::serialize(stream, readableNames); 00204 ros::serialization::serialize(stream, json_properties); 00205 return stream.getData(); 00206 } 00207 00208 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00209 { 00210 ros::serialization::IStream stream(read_ptr, 1000000000); 00211 ros::serialization::deserialize(stream, locations); 00212 ros::serialization::deserialize(stream, poses); 00213 ros::serialization::deserialize(stream, readableNames); 00214 ros::serialization::deserialize(stream, json_properties); 00215 return stream.getData(); 00216 } 00217 00218 ROS_DEPRECATED virtual uint32_t serializationLength() const 00219 { 00220 uint32_t size = 0; 00221 size += ros::serialization::serializationLength(locations); 00222 size += ros::serialization::serializationLength(poses); 00223 size += ros::serialization::serializationLength(readableNames); 00224 size += ros::serialization::serializationLength(json_properties); 00225 return size; 00226 } 00227 00228 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > Ptr; 00229 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> const> ConstPtr; 00230 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00231 }; // struct GetPredefinedPosesResponse 00232 typedef ::srs_knowledge::GetPredefinedPosesResponse_<std::allocator<void> > GetPredefinedPosesResponse; 00233 00234 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesResponse> GetPredefinedPosesResponsePtr; 00235 typedef boost::shared_ptr< ::srs_knowledge::GetPredefinedPosesResponse const> GetPredefinedPosesResponseConstPtr; 00236 00237 struct GetPredefinedPoses 00238 { 00239 00240 typedef GetPredefinedPosesRequest Request; 00241 typedef GetPredefinedPosesResponse Response; 00242 Request request; 00243 Response response; 00244 00245 typedef Request RequestType; 00246 typedef Response ResponseType; 00247 }; // struct GetPredefinedPoses 00248 } // namespace srs_knowledge 00249 00250 namespace ros 00251 { 00252 namespace message_traits 00253 { 00254 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > : public TrueType {}; 00255 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> const> : public TrueType {}; 00256 template<class ContainerAllocator> 00257 struct MD5Sum< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > { 00258 static const char* value() 00259 { 00260 return "aa8aee7f6c8d5b8306117b46af679744"; 00261 } 00262 00263 static const char* value(const ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> &) { return value(); } 00264 static const uint64_t static_value1 = 0xaa8aee7f6c8d5b83ULL; 00265 static const uint64_t static_value2 = 0x06117b46af679744ULL; 00266 }; 00267 00268 template<class ContainerAllocator> 00269 struct DataType< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > { 00270 static const char* value() 00271 { 00272 return "srs_knowledge/GetPredefinedPosesRequest"; 00273 } 00274 00275 static const char* value(const ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> &) { return value(); } 00276 }; 00277 00278 template<class ContainerAllocator> 00279 struct Definition< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > { 00280 static const char* value() 00281 { 00282 return "string map\n\ 00283 \n\ 00284 \n\ 00285 \n\ 00286 "; 00287 } 00288 00289 static const char* value(const ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> &) { return value(); } 00290 }; 00291 00292 } // namespace message_traits 00293 } // namespace ros 00294 00295 00296 namespace ros 00297 { 00298 namespace message_traits 00299 { 00300 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > : public TrueType {}; 00301 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> const> : public TrueType {}; 00302 template<class ContainerAllocator> 00303 struct MD5Sum< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > { 00304 static const char* value() 00305 { 00306 return "fe5f3887ad646ed4d1ed0e21834b460b"; 00307 } 00308 00309 static const char* value(const ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> &) { return value(); } 00310 static const uint64_t static_value1 = 0xfe5f3887ad646ed4ULL; 00311 static const uint64_t static_value2 = 0xd1ed0e21834b460bULL; 00312 }; 00313 00314 template<class ContainerAllocator> 00315 struct DataType< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > { 00316 static const char* value() 00317 { 00318 return "srs_knowledge/GetPredefinedPosesResponse"; 00319 } 00320 00321 static const char* value(const ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> &) { return value(); } 00322 }; 00323 00324 template<class ContainerAllocator> 00325 struct Definition< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > { 00326 static const char* value() 00327 { 00328 return "\n\ 00329 \n\ 00330 string[] locations\n\ 00331 geometry_msgs/Pose2D[] poses\n\ 00332 string[] readableNames\n\ 00333 \n\ 00334 string[] json_properties\n\ 00335 \n\ 00336 ================================================================================\n\ 00337 MSG: geometry_msgs/Pose2D\n\ 00338 # This expresses a position and orientation on a 2D manifold.\n\ 00339 \n\ 00340 float64 x\n\ 00341 float64 y\n\ 00342 float64 theta\n\ 00343 "; 00344 } 00345 00346 static const char* value(const ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> &) { return value(); } 00347 }; 00348 00349 } // namespace message_traits 00350 } // namespace ros 00351 00352 namespace ros 00353 { 00354 namespace serialization 00355 { 00356 00357 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > 00358 { 00359 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00360 { 00361 stream.next(m.map); 00362 } 00363 00364 ROS_DECLARE_ALLINONE_SERIALIZER; 00365 }; // struct GetPredefinedPosesRequest_ 00366 } // namespace serialization 00367 } // namespace ros 00368 00369 00370 namespace ros 00371 { 00372 namespace serialization 00373 { 00374 00375 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > 00376 { 00377 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00378 { 00379 stream.next(m.locations); 00380 stream.next(m.poses); 00381 stream.next(m.readableNames); 00382 stream.next(m.json_properties); 00383 } 00384 00385 ROS_DECLARE_ALLINONE_SERIALIZER; 00386 }; // struct GetPredefinedPosesResponse_ 00387 } // namespace serialization 00388 } // namespace ros 00389 00390 namespace ros 00391 { 00392 namespace service_traits 00393 { 00394 template<> 00395 struct MD5Sum<srs_knowledge::GetPredefinedPoses> { 00396 static const char* value() 00397 { 00398 return "3191b85c3a25ca96f7c14907417f01f1"; 00399 } 00400 00401 static const char* value(const srs_knowledge::GetPredefinedPoses&) { return value(); } 00402 }; 00403 00404 template<> 00405 struct DataType<srs_knowledge::GetPredefinedPoses> { 00406 static const char* value() 00407 { 00408 return "srs_knowledge/GetPredefinedPoses"; 00409 } 00410 00411 static const char* value(const srs_knowledge::GetPredefinedPoses&) { return value(); } 00412 }; 00413 00414 template<class ContainerAllocator> 00415 struct MD5Sum<srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > { 00416 static const char* value() 00417 { 00418 return "3191b85c3a25ca96f7c14907417f01f1"; 00419 } 00420 00421 static const char* value(const srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> &) { return value(); } 00422 }; 00423 00424 template<class ContainerAllocator> 00425 struct DataType<srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> > { 00426 static const char* value() 00427 { 00428 return "srs_knowledge/GetPredefinedPoses"; 00429 } 00430 00431 static const char* value(const srs_knowledge::GetPredefinedPosesRequest_<ContainerAllocator> &) { return value(); } 00432 }; 00433 00434 template<class ContainerAllocator> 00435 struct MD5Sum<srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > { 00436 static const char* value() 00437 { 00438 return "3191b85c3a25ca96f7c14907417f01f1"; 00439 } 00440 00441 static const char* value(const srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> &) { return value(); } 00442 }; 00443 00444 template<class ContainerAllocator> 00445 struct DataType<srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> > { 00446 static const char* value() 00447 { 00448 return "srs_knowledge/GetPredefinedPoses"; 00449 } 00450 00451 static const char* value(const srs_knowledge::GetPredefinedPosesResponse_<ContainerAllocator> &) { return value(); } 00452 }; 00453 00454 } // namespace service_traits 00455 } // namespace ros 00456 00457 #endif // SRS_KNOWLEDGE_SERVICE_GETPREDEFINEDPOSES_H 00458