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