$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/hector_worldmodel/worldmodel_msgs/srv/SetObjectState.srv */ 00002 #ifndef WORLDMODEL_MSGS_SERVICE_SETOBJECTSTATE_H 00003 #define WORLDMODEL_MSGS_SERVICE_SETOBJECTSTATE_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 "worldmodel_msgs/ObjectState.h" 00020 00021 00022 00023 namespace worldmodel_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct SetObjectStateRequest_ { 00027 typedef SetObjectStateRequest_<ContainerAllocator> Type; 00028 00029 SetObjectStateRequest_() 00030 : object_id() 00031 , new_state() 00032 { 00033 } 00034 00035 SetObjectStateRequest_(const ContainerAllocator& _alloc) 00036 : object_id(_alloc) 00037 , new_state(_alloc) 00038 { 00039 } 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_id_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_id; 00043 00044 typedef ::worldmodel_msgs::ObjectState_<ContainerAllocator> _new_state_type; 00045 ::worldmodel_msgs::ObjectState_<ContainerAllocator> new_state; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "worldmodel_msgs/SetObjectStateRequest"; } 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 "5312cbd067c80bb142724205a55735f6"; } 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 "5312cbd067c80bb142724205a55735f6"; } 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 "\n\ 00071 \n\ 00072 string object_id\n\ 00073 ObjectState new_state\n\ 00074 \n\ 00075 ================================================================================\n\ 00076 MSG: worldmodel_msgs/ObjectState\n\ 00077 # The state of an object estimate used to track\n\ 00078 # states smaller than 0 disable all updates\n\ 00079 \n\ 00080 int8 UNKNOWN = 0\n\ 00081 int8 PENDING = 1\n\ 00082 int8 ACTIVE = 2\n\ 00083 int8 CONFIRMED = -1\n\ 00084 int8 DISCARDED = -2\n\ 00085 int8 APPROACHING = -3\n\ 00086 \n\ 00087 int8 state\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, object_id); 00099 ros::serialization::serialize(stream, new_state); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, object_id); 00107 ros::serialization::deserialize(stream, new_state); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint32_t serializationLength() const 00112 { 00113 uint32_t size = 0; 00114 size += ros::serialization::serializationLength(object_id); 00115 size += ros::serialization::serializationLength(new_state); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct SetObjectStateRequest 00123 typedef ::worldmodel_msgs::SetObjectStateRequest_<std::allocator<void> > SetObjectStateRequest; 00124 00125 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest> SetObjectStateRequestPtr; 00126 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest const> SetObjectStateRequestConstPtr; 00127 00128 00129 template <class ContainerAllocator> 00130 struct SetObjectStateResponse_ { 00131 typedef SetObjectStateResponse_<ContainerAllocator> Type; 00132 00133 SetObjectStateResponse_() 00134 { 00135 } 00136 00137 SetObjectStateResponse_(const ContainerAllocator& _alloc) 00138 { 00139 } 00140 00141 00142 private: 00143 static const char* __s_getDataType_() { return "worldmodel_msgs/SetObjectStateResponse"; } 00144 public: 00145 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00146 00147 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00148 00149 private: 00150 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00151 public: 00152 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00153 00154 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00155 00156 private: 00157 static const char* __s_getServerMD5Sum_() { return "5312cbd067c80bb142724205a55735f6"; } 00158 public: 00159 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00160 00161 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00162 00163 private: 00164 static const char* __s_getMessageDefinition_() { return "\n\ 00165 \n\ 00166 "; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00169 00170 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00171 00172 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00173 { 00174 ros::serialization::OStream stream(write_ptr, 1000000000); 00175 return stream.getData(); 00176 } 00177 00178 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00179 { 00180 ros::serialization::IStream stream(read_ptr, 1000000000); 00181 return stream.getData(); 00182 } 00183 00184 ROS_DEPRECATED virtual uint32_t serializationLength() const 00185 { 00186 uint32_t size = 0; 00187 return size; 00188 } 00189 00190 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > Ptr; 00191 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> const> ConstPtr; 00192 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00193 }; // struct SetObjectStateResponse 00194 typedef ::worldmodel_msgs::SetObjectStateResponse_<std::allocator<void> > SetObjectStateResponse; 00195 00196 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse> SetObjectStateResponsePtr; 00197 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse const> SetObjectStateResponseConstPtr; 00198 00199 struct SetObjectState 00200 { 00201 00202 typedef SetObjectStateRequest Request; 00203 typedef SetObjectStateResponse Response; 00204 Request request; 00205 Response response; 00206 00207 typedef Request RequestType; 00208 typedef Response ResponseType; 00209 }; // struct SetObjectState 00210 } // namespace worldmodel_msgs 00211 00212 namespace ros 00213 { 00214 namespace message_traits 00215 { 00216 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > : public TrueType {}; 00217 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> const> : public TrueType {}; 00218 template<class ContainerAllocator> 00219 struct MD5Sum< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > { 00220 static const char* value() 00221 { 00222 return "5312cbd067c80bb142724205a55735f6"; 00223 } 00224 00225 static const char* value(const ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); } 00226 static const uint64_t static_value1 = 0x5312cbd067c80bb1ULL; 00227 static const uint64_t static_value2 = 0x42724205a55735f6ULL; 00228 }; 00229 00230 template<class ContainerAllocator> 00231 struct DataType< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > { 00232 static const char* value() 00233 { 00234 return "worldmodel_msgs/SetObjectStateRequest"; 00235 } 00236 00237 static const char* value(const ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); } 00238 }; 00239 00240 template<class ContainerAllocator> 00241 struct Definition< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "\n\ 00245 \n\ 00246 string object_id\n\ 00247 ObjectState new_state\n\ 00248 \n\ 00249 ================================================================================\n\ 00250 MSG: worldmodel_msgs/ObjectState\n\ 00251 # The state of an object estimate used to track\n\ 00252 # states smaller than 0 disable all updates\n\ 00253 \n\ 00254 int8 UNKNOWN = 0\n\ 00255 int8 PENDING = 1\n\ 00256 int8 ACTIVE = 2\n\ 00257 int8 CONFIRMED = -1\n\ 00258 int8 DISCARDED = -2\n\ 00259 int8 APPROACHING = -3\n\ 00260 \n\ 00261 int8 state\n\ 00262 \n\ 00263 "; 00264 } 00265 00266 static const char* value(const ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 } // namespace message_traits 00270 } // namespace ros 00271 00272 00273 namespace ros 00274 { 00275 namespace message_traits 00276 { 00277 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > : public TrueType {}; 00278 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> const> : public TrueType {}; 00279 template<class ContainerAllocator> 00280 struct MD5Sum< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > { 00281 static const char* value() 00282 { 00283 return "d41d8cd98f00b204e9800998ecf8427e"; 00284 } 00285 00286 static const char* value(const ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); } 00287 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00288 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00289 }; 00290 00291 template<class ContainerAllocator> 00292 struct DataType< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "worldmodel_msgs/SetObjectStateResponse"; 00296 } 00297 00298 static const char* value(const ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); } 00299 }; 00300 00301 template<class ContainerAllocator> 00302 struct Definition< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > { 00303 static const char* value() 00304 { 00305 return "\n\ 00306 \n\ 00307 "; 00308 } 00309 00310 static const char* value(const ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); } 00311 }; 00312 00313 template<class ContainerAllocator> struct IsFixedSize< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > : public TrueType {}; 00314 } // namespace message_traits 00315 } // namespace ros 00316 00317 namespace ros 00318 { 00319 namespace serialization 00320 { 00321 00322 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > 00323 { 00324 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00325 { 00326 stream.next(m.object_id); 00327 stream.next(m.new_state); 00328 } 00329 00330 ROS_DECLARE_ALLINONE_SERIALIZER; 00331 }; // struct SetObjectStateRequest_ 00332 } // namespace serialization 00333 } // namespace ros 00334 00335 00336 namespace ros 00337 { 00338 namespace serialization 00339 { 00340 00341 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > 00342 { 00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00344 { 00345 } 00346 00347 ROS_DECLARE_ALLINONE_SERIALIZER; 00348 }; // struct SetObjectStateResponse_ 00349 } // namespace serialization 00350 } // namespace ros 00351 00352 namespace ros 00353 { 00354 namespace service_traits 00355 { 00356 template<> 00357 struct MD5Sum<worldmodel_msgs::SetObjectState> { 00358 static const char* value() 00359 { 00360 return "5312cbd067c80bb142724205a55735f6"; 00361 } 00362 00363 static const char* value(const worldmodel_msgs::SetObjectState&) { return value(); } 00364 }; 00365 00366 template<> 00367 struct DataType<worldmodel_msgs::SetObjectState> { 00368 static const char* value() 00369 { 00370 return "worldmodel_msgs/SetObjectState"; 00371 } 00372 00373 static const char* value(const worldmodel_msgs::SetObjectState&) { return value(); } 00374 }; 00375 00376 template<class ContainerAllocator> 00377 struct MD5Sum<worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > { 00378 static const char* value() 00379 { 00380 return "5312cbd067c80bb142724205a55735f6"; 00381 } 00382 00383 static const char* value(const worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); } 00384 }; 00385 00386 template<class ContainerAllocator> 00387 struct DataType<worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > { 00388 static const char* value() 00389 { 00390 return "worldmodel_msgs/SetObjectState"; 00391 } 00392 00393 static const char* value(const worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); } 00394 }; 00395 00396 template<class ContainerAllocator> 00397 struct MD5Sum<worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > { 00398 static const char* value() 00399 { 00400 return "5312cbd067c80bb142724205a55735f6"; 00401 } 00402 00403 static const char* value(const worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); } 00404 }; 00405 00406 template<class ContainerAllocator> 00407 struct DataType<worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > { 00408 static const char* value() 00409 { 00410 return "worldmodel_msgs/SetObjectState"; 00411 } 00412 00413 static const char* value(const worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); } 00414 }; 00415 00416 } // namespace service_traits 00417 } // namespace ros 00418 00419 #endif // WORLDMODEL_MSGS_SERVICE_SETOBJECTSTATE_H 00420