$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_env_model/srv/GetObjectsInHalfspace.srv */ 00002 #ifndef SRS_ENV_MODEL_SERVICE_GETOBJECTSINHALFSPACE_H 00003 #define SRS_ENV_MODEL_SERVICE_GETOBJECTSINHALFSPACE_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 #include "geometry_msgs/Point.h" 00020 #include "geometry_msgs/Vector3.h" 00021 00022 00023 00024 namespace srs_env_model 00025 { 00026 template <class ContainerAllocator> 00027 struct GetObjectsInHalfspaceRequest_ { 00028 typedef GetObjectsInHalfspaceRequest_<ContainerAllocator> Type; 00029 00030 GetObjectsInHalfspaceRequest_() 00031 : position() 00032 , normal() 00033 { 00034 } 00035 00036 GetObjectsInHalfspaceRequest_(const ContainerAllocator& _alloc) 00037 : position(_alloc) 00038 , normal(_alloc) 00039 { 00040 } 00041 00042 typedef ::geometry_msgs::Point_<ContainerAllocator> _position_type; 00043 ::geometry_msgs::Point_<ContainerAllocator> position; 00044 00045 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _normal_type; 00046 ::geometry_msgs::Vector3_<ContainerAllocator> normal; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "srs_env_model/GetObjectsInHalfspaceRequest"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "3ab4331391a9fde18f4258b9158bc53b"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getServerMD5Sum_() { return "ae3a7cc366c3684a6ca9d2101815a119"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00067 00068 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00069 00070 private: 00071 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Point position\n\ 00072 geometry_msgs/Vector3 normal\n\ 00073 \n\ 00074 ================================================================================\n\ 00075 MSG: geometry_msgs/Point\n\ 00076 # This contains the position of a point in free space\n\ 00077 float64 x\n\ 00078 float64 y\n\ 00079 float64 z\n\ 00080 \n\ 00081 ================================================================================\n\ 00082 MSG: geometry_msgs/Vector3\n\ 00083 # This represents a vector in free space. \n\ 00084 \n\ 00085 float64 x\n\ 00086 float64 y\n\ 00087 float64 z\n\ 00088 "; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00095 { 00096 ros::serialization::OStream stream(write_ptr, 1000000000); 00097 ros::serialization::serialize(stream, position); 00098 ros::serialization::serialize(stream, normal); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00103 { 00104 ros::serialization::IStream stream(read_ptr, 1000000000); 00105 ros::serialization::deserialize(stream, position); 00106 ros::serialization::deserialize(stream, normal); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(position); 00114 size += ros::serialization::serializationLength(normal); 00115 return size; 00116 } 00117 00118 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > Ptr; 00119 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> const> ConstPtr; 00120 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00121 }; // struct GetObjectsInHalfspaceRequest 00122 typedef ::srs_env_model::GetObjectsInHalfspaceRequest_<std::allocator<void> > GetObjectsInHalfspaceRequest; 00123 00124 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceRequest> GetObjectsInHalfspaceRequestPtr; 00125 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceRequest const> GetObjectsInHalfspaceRequestConstPtr; 00126 00127 00128 template <class ContainerAllocator> 00129 struct GetObjectsInHalfspaceResponse_ { 00130 typedef GetObjectsInHalfspaceResponse_<ContainerAllocator> Type; 00131 00132 GetObjectsInHalfspaceResponse_() 00133 : object_ids() 00134 { 00135 } 00136 00137 GetObjectsInHalfspaceResponse_(const ContainerAllocator& _alloc) 00138 : object_ids(_alloc) 00139 { 00140 } 00141 00142 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _object_ids_type; 00143 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > object_ids; 00144 00145 00146 ROS_DEPRECATED uint32_t get_object_ids_size() const { return (uint32_t)object_ids.size(); } 00147 ROS_DEPRECATED void set_object_ids_size(uint32_t size) { object_ids.resize((size_t)size); } 00148 ROS_DEPRECATED void get_object_ids_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->object_ids; } 00149 ROS_DEPRECATED void set_object_ids_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->object_ids = vec; } 00150 private: 00151 static const char* __s_getDataType_() { return "srs_env_model/GetObjectsInHalfspaceResponse"; } 00152 public: 00153 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00154 00155 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00156 00157 private: 00158 static const char* __s_getMD5Sum_() { return "51b8c1ab69cd630e4f6eaee2d22fc8d0"; } 00159 public: 00160 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00161 00162 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00163 00164 private: 00165 static const char* __s_getServerMD5Sum_() { return "ae3a7cc366c3684a6ca9d2101815a119"; } 00166 public: 00167 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00168 00169 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00170 00171 private: 00172 static const char* __s_getMessageDefinition_() { return "uint32[] object_ids\n\ 00173 \n\ 00174 "; } 00175 public: 00176 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00177 00178 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00179 00180 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00181 { 00182 ros::serialization::OStream stream(write_ptr, 1000000000); 00183 ros::serialization::serialize(stream, object_ids); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00188 { 00189 ros::serialization::IStream stream(read_ptr, 1000000000); 00190 ros::serialization::deserialize(stream, object_ids); 00191 return stream.getData(); 00192 } 00193 00194 ROS_DEPRECATED virtual uint32_t serializationLength() const 00195 { 00196 uint32_t size = 0; 00197 size += ros::serialization::serializationLength(object_ids); 00198 return size; 00199 } 00200 00201 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > Ptr; 00202 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> const> ConstPtr; 00203 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00204 }; // struct GetObjectsInHalfspaceResponse 00205 typedef ::srs_env_model::GetObjectsInHalfspaceResponse_<std::allocator<void> > GetObjectsInHalfspaceResponse; 00206 00207 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceResponse> GetObjectsInHalfspaceResponsePtr; 00208 typedef boost::shared_ptr< ::srs_env_model::GetObjectsInHalfspaceResponse const> GetObjectsInHalfspaceResponseConstPtr; 00209 00210 struct GetObjectsInHalfspace 00211 { 00212 00213 typedef GetObjectsInHalfspaceRequest Request; 00214 typedef GetObjectsInHalfspaceResponse Response; 00215 Request request; 00216 Response response; 00217 00218 typedef Request RequestType; 00219 typedef Response ResponseType; 00220 }; // struct GetObjectsInHalfspace 00221 } // namespace srs_env_model 00222 00223 namespace ros 00224 { 00225 namespace message_traits 00226 { 00227 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > : public TrueType {}; 00228 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> const> : public TrueType {}; 00229 template<class ContainerAllocator> 00230 struct MD5Sum< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > { 00231 static const char* value() 00232 { 00233 return "3ab4331391a9fde18f4258b9158bc53b"; 00234 } 00235 00236 static const char* value(const ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> &) { return value(); } 00237 static const uint64_t static_value1 = 0x3ab4331391a9fde1ULL; 00238 static const uint64_t static_value2 = 0x8f4258b9158bc53bULL; 00239 }; 00240 00241 template<class ContainerAllocator> 00242 struct DataType< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "srs_env_model/GetObjectsInHalfspaceRequest"; 00246 } 00247 00248 static const char* value(const ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> &) { return value(); } 00249 }; 00250 00251 template<class ContainerAllocator> 00252 struct Definition< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "geometry_msgs/Point position\n\ 00256 geometry_msgs/Vector3 normal\n\ 00257 \n\ 00258 ================================================================================\n\ 00259 MSG: geometry_msgs/Point\n\ 00260 # This contains the position of a point in free space\n\ 00261 float64 x\n\ 00262 float64 y\n\ 00263 float64 z\n\ 00264 \n\ 00265 ================================================================================\n\ 00266 MSG: geometry_msgs/Vector3\n\ 00267 # This represents a vector in free space. \n\ 00268 \n\ 00269 float64 x\n\ 00270 float64 y\n\ 00271 float64 z\n\ 00272 "; 00273 } 00274 00275 static const char* value(const ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> &) { return value(); } 00276 }; 00277 00278 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > : public TrueType {}; 00279 } // namespace message_traits 00280 } // namespace ros 00281 00282 00283 namespace ros 00284 { 00285 namespace message_traits 00286 { 00287 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > : public TrueType {}; 00288 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> const> : public TrueType {}; 00289 template<class ContainerAllocator> 00290 struct MD5Sum< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > { 00291 static const char* value() 00292 { 00293 return "51b8c1ab69cd630e4f6eaee2d22fc8d0"; 00294 } 00295 00296 static const char* value(const ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> &) { return value(); } 00297 static const uint64_t static_value1 = 0x51b8c1ab69cd630eULL; 00298 static const uint64_t static_value2 = 0x4f6eaee2d22fc8d0ULL; 00299 }; 00300 00301 template<class ContainerAllocator> 00302 struct DataType< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > { 00303 static const char* value() 00304 { 00305 return "srs_env_model/GetObjectsInHalfspaceResponse"; 00306 } 00307 00308 static const char* value(const ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> &) { return value(); } 00309 }; 00310 00311 template<class ContainerAllocator> 00312 struct Definition< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > { 00313 static const char* value() 00314 { 00315 return "uint32[] object_ids\n\ 00316 \n\ 00317 "; 00318 } 00319 00320 static const char* value(const ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> &) { return value(); } 00321 }; 00322 00323 } // namespace message_traits 00324 } // namespace ros 00325 00326 namespace ros 00327 { 00328 namespace serialization 00329 { 00330 00331 template<class ContainerAllocator> struct Serializer< ::srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > 00332 { 00333 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00334 { 00335 stream.next(m.position); 00336 stream.next(m.normal); 00337 } 00338 00339 ROS_DECLARE_ALLINONE_SERIALIZER; 00340 }; // struct GetObjectsInHalfspaceRequest_ 00341 } // namespace serialization 00342 } // namespace ros 00343 00344 00345 namespace ros 00346 { 00347 namespace serialization 00348 { 00349 00350 template<class ContainerAllocator> struct Serializer< ::srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > 00351 { 00352 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00353 { 00354 stream.next(m.object_ids); 00355 } 00356 00357 ROS_DECLARE_ALLINONE_SERIALIZER; 00358 }; // struct GetObjectsInHalfspaceResponse_ 00359 } // namespace serialization 00360 } // namespace ros 00361 00362 namespace ros 00363 { 00364 namespace service_traits 00365 { 00366 template<> 00367 struct MD5Sum<srs_env_model::GetObjectsInHalfspace> { 00368 static const char* value() 00369 { 00370 return "ae3a7cc366c3684a6ca9d2101815a119"; 00371 } 00372 00373 static const char* value(const srs_env_model::GetObjectsInHalfspace&) { return value(); } 00374 }; 00375 00376 template<> 00377 struct DataType<srs_env_model::GetObjectsInHalfspace> { 00378 static const char* value() 00379 { 00380 return "srs_env_model/GetObjectsInHalfspace"; 00381 } 00382 00383 static const char* value(const srs_env_model::GetObjectsInHalfspace&) { return value(); } 00384 }; 00385 00386 template<class ContainerAllocator> 00387 struct MD5Sum<srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > { 00388 static const char* value() 00389 { 00390 return "ae3a7cc366c3684a6ca9d2101815a119"; 00391 } 00392 00393 static const char* value(const srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> &) { return value(); } 00394 }; 00395 00396 template<class ContainerAllocator> 00397 struct DataType<srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> > { 00398 static const char* value() 00399 { 00400 return "srs_env_model/GetObjectsInHalfspace"; 00401 } 00402 00403 static const char* value(const srs_env_model::GetObjectsInHalfspaceRequest_<ContainerAllocator> &) { return value(); } 00404 }; 00405 00406 template<class ContainerAllocator> 00407 struct MD5Sum<srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > { 00408 static const char* value() 00409 { 00410 return "ae3a7cc366c3684a6ca9d2101815a119"; 00411 } 00412 00413 static const char* value(const srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> &) { return value(); } 00414 }; 00415 00416 template<class ContainerAllocator> 00417 struct DataType<srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> > { 00418 static const char* value() 00419 { 00420 return "srs_env_model/GetObjectsInHalfspace"; 00421 } 00422 00423 static const char* value(const srs_env_model::GetObjectsInHalfspaceResponse_<ContainerAllocator> &) { return value(); } 00424 }; 00425 00426 } // namespace service_traits 00427 } // namespace ros 00428 00429 #endif // SRS_ENV_MODEL_SERVICE_GETOBJECTSINHALFSPACE_H 00430