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