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