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