$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_interaction_primitives/srv/AddBoundingBox.srv */ 00002 #ifndef SRS_INTERACTION_PRIMITIVES_SERVICE_ADDBOUNDINGBOX_H 00003 #define SRS_INTERACTION_PRIMITIVES_SERVICE_ADDBOUNDINGBOX_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/Pose.h" 00020 #include "geometry_msgs/Vector3.h" 00021 #include "std_msgs/ColorRGBA.h" 00022 00023 00024 00025 namespace srs_interaction_primitives 00026 { 00027 template <class ContainerAllocator> 00028 struct AddBoundingBoxRequest_ { 00029 typedef AddBoundingBoxRequest_<ContainerAllocator> Type; 00030 00031 AddBoundingBoxRequest_() 00032 : frame_id() 00033 , name() 00034 , object_name() 00035 , description() 00036 , pose() 00037 , pose_type(0) 00038 , scale() 00039 , color() 00040 { 00041 } 00042 00043 AddBoundingBoxRequest_(const ContainerAllocator& _alloc) 00044 : frame_id(_alloc) 00045 , name(_alloc) 00046 , object_name(_alloc) 00047 , description(_alloc) 00048 , pose(_alloc) 00049 , pose_type(0) 00050 , scale(_alloc) 00051 , color(_alloc) 00052 { 00053 } 00054 00055 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type; 00056 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id; 00057 00058 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00059 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00060 00061 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_name_type; 00062 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_name; 00063 00064 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type; 00065 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description; 00066 00067 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00068 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00069 00070 typedef uint8_t _pose_type_type; 00071 uint8_t pose_type; 00072 00073 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _scale_type; 00074 ::geometry_msgs::Vector3_<ContainerAllocator> scale; 00075 00076 typedef ::std_msgs::ColorRGBA_<ContainerAllocator> _color_type; 00077 ::std_msgs::ColorRGBA_<ContainerAllocator> color; 00078 00079 00080 private: 00081 static const char* __s_getDataType_() { return "srs_interaction_primitives/AddBoundingBoxRequest"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00084 00085 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00086 00087 private: 00088 static const char* __s_getMD5Sum_() { return "6248559b195674f45f109f2440a61758"; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00091 00092 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00093 00094 private: 00095 static const char* __s_getServerMD5Sum_() { return "6248559b195674f45f109f2440a61758"; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00098 00099 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00100 00101 private: 00102 static const char* __s_getMessageDefinition_() { return "string frame_id\n\ 00103 string name\n\ 00104 string object_name\n\ 00105 string description\n\ 00106 geometry_msgs/Pose pose\n\ 00107 uint8 pose_type\n\ 00108 geometry_msgs/Vector3 scale\n\ 00109 std_msgs/ColorRGBA color\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: geometry_msgs/Pose\n\ 00113 # A representation of pose in free space, composed of postion and orientation. \n\ 00114 Point position\n\ 00115 Quaternion orientation\n\ 00116 \n\ 00117 ================================================================================\n\ 00118 MSG: geometry_msgs/Point\n\ 00119 # This contains the position of a point in free space\n\ 00120 float64 x\n\ 00121 float64 y\n\ 00122 float64 z\n\ 00123 \n\ 00124 ================================================================================\n\ 00125 MSG: geometry_msgs/Quaternion\n\ 00126 # This represents an orientation in free space in quaternion form.\n\ 00127 \n\ 00128 float64 x\n\ 00129 float64 y\n\ 00130 float64 z\n\ 00131 float64 w\n\ 00132 \n\ 00133 ================================================================================\n\ 00134 MSG: geometry_msgs/Vector3\n\ 00135 # This represents a vector in free space. \n\ 00136 \n\ 00137 float64 x\n\ 00138 float64 y\n\ 00139 float64 z\n\ 00140 ================================================================================\n\ 00141 MSG: std_msgs/ColorRGBA\n\ 00142 float32 r\n\ 00143 float32 g\n\ 00144 float32 b\n\ 00145 float32 a\n\ 00146 \n\ 00147 "; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00150 00151 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00152 00153 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00154 { 00155 ros::serialization::OStream stream(write_ptr, 1000000000); 00156 ros::serialization::serialize(stream, frame_id); 00157 ros::serialization::serialize(stream, name); 00158 ros::serialization::serialize(stream, object_name); 00159 ros::serialization::serialize(stream, description); 00160 ros::serialization::serialize(stream, pose); 00161 ros::serialization::serialize(stream, pose_type); 00162 ros::serialization::serialize(stream, scale); 00163 ros::serialization::serialize(stream, color); 00164 return stream.getData(); 00165 } 00166 00167 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00168 { 00169 ros::serialization::IStream stream(read_ptr, 1000000000); 00170 ros::serialization::deserialize(stream, frame_id); 00171 ros::serialization::deserialize(stream, name); 00172 ros::serialization::deserialize(stream, object_name); 00173 ros::serialization::deserialize(stream, description); 00174 ros::serialization::deserialize(stream, pose); 00175 ros::serialization::deserialize(stream, pose_type); 00176 ros::serialization::deserialize(stream, scale); 00177 ros::serialization::deserialize(stream, color); 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(frame_id); 00185 size += ros::serialization::serializationLength(name); 00186 size += ros::serialization::serializationLength(object_name); 00187 size += ros::serialization::serializationLength(description); 00188 size += ros::serialization::serializationLength(pose); 00189 size += ros::serialization::serializationLength(pose_type); 00190 size += ros::serialization::serializationLength(scale); 00191 size += ros::serialization::serializationLength(color); 00192 return size; 00193 } 00194 00195 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > Ptr; 00196 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> const> ConstPtr; 00197 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00198 }; // struct AddBoundingBoxRequest 00199 typedef ::srs_interaction_primitives::AddBoundingBoxRequest_<std::allocator<void> > AddBoundingBoxRequest; 00200 00201 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxRequest> AddBoundingBoxRequestPtr; 00202 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxRequest const> AddBoundingBoxRequestConstPtr; 00203 00204 00205 template <class ContainerAllocator> 00206 struct AddBoundingBoxResponse_ { 00207 typedef AddBoundingBoxResponse_<ContainerAllocator> Type; 00208 00209 AddBoundingBoxResponse_() 00210 { 00211 } 00212 00213 AddBoundingBoxResponse_(const ContainerAllocator& _alloc) 00214 { 00215 } 00216 00217 00218 private: 00219 static const char* __s_getDataType_() { return "srs_interaction_primitives/AddBoundingBoxResponse"; } 00220 public: 00221 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00222 00223 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00224 00225 private: 00226 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00227 public: 00228 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00229 00230 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00231 00232 private: 00233 static const char* __s_getServerMD5Sum_() { return "6248559b195674f45f109f2440a61758"; } 00234 public: 00235 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00236 00237 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00238 00239 private: 00240 static const char* __s_getMessageDefinition_() { return "\n\ 00241 \n\ 00242 "; } 00243 public: 00244 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00245 00246 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00247 00248 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00249 { 00250 ros::serialization::OStream stream(write_ptr, 1000000000); 00251 return stream.getData(); 00252 } 00253 00254 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00255 { 00256 ros::serialization::IStream stream(read_ptr, 1000000000); 00257 return stream.getData(); 00258 } 00259 00260 ROS_DEPRECATED virtual uint32_t serializationLength() const 00261 { 00262 uint32_t size = 0; 00263 return size; 00264 } 00265 00266 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > Ptr; 00267 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> const> ConstPtr; 00268 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00269 }; // struct AddBoundingBoxResponse 00270 typedef ::srs_interaction_primitives::AddBoundingBoxResponse_<std::allocator<void> > AddBoundingBoxResponse; 00271 00272 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxResponse> AddBoundingBoxResponsePtr; 00273 typedef boost::shared_ptr< ::srs_interaction_primitives::AddBoundingBoxResponse const> AddBoundingBoxResponseConstPtr; 00274 00275 struct AddBoundingBox 00276 { 00277 00278 typedef AddBoundingBoxRequest Request; 00279 typedef AddBoundingBoxResponse Response; 00280 Request request; 00281 Response response; 00282 00283 typedef Request RequestType; 00284 typedef Response ResponseType; 00285 }; // struct AddBoundingBox 00286 } // namespace srs_interaction_primitives 00287 00288 namespace ros 00289 { 00290 namespace message_traits 00291 { 00292 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > : public TrueType {}; 00293 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> const> : public TrueType {}; 00294 template<class ContainerAllocator> 00295 struct MD5Sum< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > { 00296 static const char* value() 00297 { 00298 return "6248559b195674f45f109f2440a61758"; 00299 } 00300 00301 static const char* value(const ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> &) { return value(); } 00302 static const uint64_t static_value1 = 0x6248559b195674f4ULL; 00303 static const uint64_t static_value2 = 0x5f109f2440a61758ULL; 00304 }; 00305 00306 template<class ContainerAllocator> 00307 struct DataType< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > { 00308 static const char* value() 00309 { 00310 return "srs_interaction_primitives/AddBoundingBoxRequest"; 00311 } 00312 00313 static const char* value(const ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> &) { return value(); } 00314 }; 00315 00316 template<class ContainerAllocator> 00317 struct Definition< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > { 00318 static const char* value() 00319 { 00320 return "string frame_id\n\ 00321 string name\n\ 00322 string object_name\n\ 00323 string description\n\ 00324 geometry_msgs/Pose pose\n\ 00325 uint8 pose_type\n\ 00326 geometry_msgs/Vector3 scale\n\ 00327 std_msgs/ColorRGBA color\n\ 00328 \n\ 00329 ================================================================================\n\ 00330 MSG: geometry_msgs/Pose\n\ 00331 # A representation of pose in free space, composed of postion and orientation. \n\ 00332 Point position\n\ 00333 Quaternion orientation\n\ 00334 \n\ 00335 ================================================================================\n\ 00336 MSG: geometry_msgs/Point\n\ 00337 # This contains the position of a point in free space\n\ 00338 float64 x\n\ 00339 float64 y\n\ 00340 float64 z\n\ 00341 \n\ 00342 ================================================================================\n\ 00343 MSG: geometry_msgs/Quaternion\n\ 00344 # This represents an orientation in free space in quaternion form.\n\ 00345 \n\ 00346 float64 x\n\ 00347 float64 y\n\ 00348 float64 z\n\ 00349 float64 w\n\ 00350 \n\ 00351 ================================================================================\n\ 00352 MSG: geometry_msgs/Vector3\n\ 00353 # This represents a vector in free space. \n\ 00354 \n\ 00355 float64 x\n\ 00356 float64 y\n\ 00357 float64 z\n\ 00358 ================================================================================\n\ 00359 MSG: std_msgs/ColorRGBA\n\ 00360 float32 r\n\ 00361 float32 g\n\ 00362 float32 b\n\ 00363 float32 a\n\ 00364 \n\ 00365 "; 00366 } 00367 00368 static const char* value(const ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> &) { return value(); } 00369 }; 00370 00371 } // namespace message_traits 00372 } // namespace ros 00373 00374 00375 namespace ros 00376 { 00377 namespace message_traits 00378 { 00379 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > : public TrueType {}; 00380 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> const> : public TrueType {}; 00381 template<class ContainerAllocator> 00382 struct MD5Sum< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > { 00383 static const char* value() 00384 { 00385 return "d41d8cd98f00b204e9800998ecf8427e"; 00386 } 00387 00388 static const char* value(const ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> &) { return value(); } 00389 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00390 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00391 }; 00392 00393 template<class ContainerAllocator> 00394 struct DataType< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > { 00395 static const char* value() 00396 { 00397 return "srs_interaction_primitives/AddBoundingBoxResponse"; 00398 } 00399 00400 static const char* value(const ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> &) { return value(); } 00401 }; 00402 00403 template<class ContainerAllocator> 00404 struct Definition< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > { 00405 static const char* value() 00406 { 00407 return "\n\ 00408 \n\ 00409 "; 00410 } 00411 00412 static const char* value(const ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> &) { return value(); } 00413 }; 00414 00415 template<class ContainerAllocator> struct IsFixedSize< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > : public TrueType {}; 00416 } // namespace message_traits 00417 } // namespace ros 00418 00419 namespace ros 00420 { 00421 namespace serialization 00422 { 00423 00424 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > 00425 { 00426 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00427 { 00428 stream.next(m.frame_id); 00429 stream.next(m.name); 00430 stream.next(m.object_name); 00431 stream.next(m.description); 00432 stream.next(m.pose); 00433 stream.next(m.pose_type); 00434 stream.next(m.scale); 00435 stream.next(m.color); 00436 } 00437 00438 ROS_DECLARE_ALLINONE_SERIALIZER; 00439 }; // struct AddBoundingBoxRequest_ 00440 } // namespace serialization 00441 } // namespace ros 00442 00443 00444 namespace ros 00445 { 00446 namespace serialization 00447 { 00448 00449 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > 00450 { 00451 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00452 { 00453 } 00454 00455 ROS_DECLARE_ALLINONE_SERIALIZER; 00456 }; // struct AddBoundingBoxResponse_ 00457 } // namespace serialization 00458 } // namespace ros 00459 00460 namespace ros 00461 { 00462 namespace service_traits 00463 { 00464 template<> 00465 struct MD5Sum<srs_interaction_primitives::AddBoundingBox> { 00466 static const char* value() 00467 { 00468 return "6248559b195674f45f109f2440a61758"; 00469 } 00470 00471 static const char* value(const srs_interaction_primitives::AddBoundingBox&) { return value(); } 00472 }; 00473 00474 template<> 00475 struct DataType<srs_interaction_primitives::AddBoundingBox> { 00476 static const char* value() 00477 { 00478 return "srs_interaction_primitives/AddBoundingBox"; 00479 } 00480 00481 static const char* value(const srs_interaction_primitives::AddBoundingBox&) { return value(); } 00482 }; 00483 00484 template<class ContainerAllocator> 00485 struct MD5Sum<srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > { 00486 static const char* value() 00487 { 00488 return "6248559b195674f45f109f2440a61758"; 00489 } 00490 00491 static const char* value(const srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> &) { return value(); } 00492 }; 00493 00494 template<class ContainerAllocator> 00495 struct DataType<srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> > { 00496 static const char* value() 00497 { 00498 return "srs_interaction_primitives/AddBoundingBox"; 00499 } 00500 00501 static const char* value(const srs_interaction_primitives::AddBoundingBoxRequest_<ContainerAllocator> &) { return value(); } 00502 }; 00503 00504 template<class ContainerAllocator> 00505 struct MD5Sum<srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > { 00506 static const char* value() 00507 { 00508 return "6248559b195674f45f109f2440a61758"; 00509 } 00510 00511 static const char* value(const srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> &) { return value(); } 00512 }; 00513 00514 template<class ContainerAllocator> 00515 struct DataType<srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> > { 00516 static const char* value() 00517 { 00518 return "srs_interaction_primitives/AddBoundingBox"; 00519 } 00520 00521 static const char* value(const srs_interaction_primitives::AddBoundingBoxResponse_<ContainerAllocator> &) { return value(); } 00522 }; 00523 00524 } // namespace service_traits 00525 } // namespace ros 00526 00527 #endif // SRS_INTERACTION_PRIMITIVES_SERVICE_ADDBOUNDINGBOX_H 00528