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