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