00001
00002 #ifndef GRASPIT_INTERFACE_MSGS_SERVICE_LOADOBSTACLE_H
00003 #define GRASPIT_INTERFACE_MSGS_SERVICE_LOADOBSTACLE_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 #include "geometry_msgs/Pose.h"
00016
00017
00018
00019 namespace graspit_interface_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct LoadObstacleRequest_ : public ros::Message
00023 {
00024 typedef LoadObstacleRequest_<ContainerAllocator> Type;
00025
00026 LoadObstacleRequest_()
00027 : file_name()
00028 , obstacle_pose()
00029 {
00030 }
00031
00032 LoadObstacleRequest_(const ContainerAllocator& _alloc)
00033 : file_name(_alloc)
00034 , obstacle_pose(_alloc)
00035 {
00036 }
00037
00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _file_name_type;
00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > file_name;
00040
00041 typedef ::geometry_msgs::Pose_<ContainerAllocator> _obstacle_pose_type;
00042 ::geometry_msgs::Pose_<ContainerAllocator> obstacle_pose;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "graspit_interface_msgs/LoadObstacleRequest"; }
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 "b57b981fa236c23216bbd63471c0ad21"; }
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 "849362f1aa1b5a31b05a93a66798c64b"; }
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 \n\
00070 \n\
00071 string file_name\n\
00072 \n\
00073 \n\
00074 geometry_msgs/Pose obstacle_pose\n\
00075 \n\
00076 ================================================================================\n\
00077 MSG: geometry_msgs/Pose\n\
00078 # A representation of pose in free space, composed of postion and orientation. \n\
00079 Point position\n\
00080 Quaternion orientation\n\
00081 \n\
00082 ================================================================================\n\
00083 MSG: geometry_msgs/Point\n\
00084 # This contains the position of a point in free space\n\
00085 float64 x\n\
00086 float64 y\n\
00087 float64 z\n\
00088 \n\
00089 ================================================================================\n\
00090 MSG: geometry_msgs/Quaternion\n\
00091 # This represents an orientation in free space in quaternion form.\n\
00092 \n\
00093 float64 x\n\
00094 float64 y\n\
00095 float64 z\n\
00096 float64 w\n\
00097 \n\
00098 "; }
00099 public:
00100 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00101
00102 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00103
00104 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00105 {
00106 ros::serialization::OStream stream(write_ptr, 1000000000);
00107 ros::serialization::serialize(stream, file_name);
00108 ros::serialization::serialize(stream, obstacle_pose);
00109 return stream.getData();
00110 }
00111
00112 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00113 {
00114 ros::serialization::IStream stream(read_ptr, 1000000000);
00115 ros::serialization::deserialize(stream, file_name);
00116 ros::serialization::deserialize(stream, obstacle_pose);
00117 return stream.getData();
00118 }
00119
00120 ROS_DEPRECATED virtual uint32_t serializationLength() const
00121 {
00122 uint32_t size = 0;
00123 size += ros::serialization::serializationLength(file_name);
00124 size += ros::serialization::serializationLength(obstacle_pose);
00125 return size;
00126 }
00127
00128 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> > Ptr;
00129 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> const> ConstPtr;
00130 };
00131 typedef ::graspit_interface_msgs::LoadObstacleRequest_<std::allocator<void> > LoadObstacleRequest;
00132
00133 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleRequest> LoadObstacleRequestPtr;
00134 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleRequest const> LoadObstacleRequestConstPtr;
00135
00136
00137 template <class ContainerAllocator>
00138 struct LoadObstacleResponse_ : public ros::Message
00139 {
00140 typedef LoadObstacleResponse_<ContainerAllocator> Type;
00141
00142 LoadObstacleResponse_()
00143 : result(0)
00144 {
00145 }
00146
00147 LoadObstacleResponse_(const ContainerAllocator& _alloc)
00148 : result(0)
00149 {
00150 }
00151
00152 typedef int32_t _result_type;
00153 int32_t result;
00154
00155 enum { LOAD_SUCCESS = 0 };
00156 enum { LOAD_FAILURE = 1 };
00157
00158 private:
00159 static const char* __s_getDataType_() { return "graspit_interface_msgs/LoadObstacleResponse"; }
00160 public:
00161 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00162
00163 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00164
00165 private:
00166 static const char* __s_getMD5Sum_() { return "41e017e2964af6197c0f07ec9353afaf"; }
00167 public:
00168 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00169
00170 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00171
00172 private:
00173 static const char* __s_getServerMD5Sum_() { return "849362f1aa1b5a31b05a93a66798c64b"; }
00174 public:
00175 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00176
00177 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00178
00179 private:
00180 static const char* __s_getMessageDefinition_() { return "\n\
00181 int32 LOAD_SUCCESS = 0\n\
00182 int32 LOAD_FAILURE = 1\n\
00183 int32 result\n\
00184 \n\
00185 "; }
00186 public:
00187 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00188
00189 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00190
00191 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00192 {
00193 ros::serialization::OStream stream(write_ptr, 1000000000);
00194 ros::serialization::serialize(stream, result);
00195 return stream.getData();
00196 }
00197
00198 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00199 {
00200 ros::serialization::IStream stream(read_ptr, 1000000000);
00201 ros::serialization::deserialize(stream, result);
00202 return stream.getData();
00203 }
00204
00205 ROS_DEPRECATED virtual uint32_t serializationLength() const
00206 {
00207 uint32_t size = 0;
00208 size += ros::serialization::serializationLength(result);
00209 return size;
00210 }
00211
00212 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > Ptr;
00213 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> const> ConstPtr;
00214 };
00215 typedef ::graspit_interface_msgs::LoadObstacleResponse_<std::allocator<void> > LoadObstacleResponse;
00216
00217 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleResponse> LoadObstacleResponsePtr;
00218 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadObstacleResponse const> LoadObstacleResponseConstPtr;
00219
00220 struct LoadObstacle
00221 {
00222
00223 typedef LoadObstacleRequest Request;
00224 typedef LoadObstacleResponse Response;
00225 Request request;
00226 Response response;
00227
00228 typedef Request RequestType;
00229 typedef Response ResponseType;
00230 };
00231 }
00232
00233 namespace ros
00234 {
00235 namespace message_traits
00236 {
00237 template<class ContainerAllocator>
00238 struct MD5Sum< ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> > {
00239 static const char* value()
00240 {
00241 return "b57b981fa236c23216bbd63471c0ad21";
00242 }
00243
00244 static const char* value(const ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> &) { return value(); }
00245 static const uint64_t static_value1 = 0xb57b981fa236c232ULL;
00246 static const uint64_t static_value2 = 0x16bbd63471c0ad21ULL;
00247 };
00248
00249 template<class ContainerAllocator>
00250 struct DataType< ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> > {
00251 static const char* value()
00252 {
00253 return "graspit_interface_msgs/LoadObstacleRequest";
00254 }
00255
00256 static const char* value(const ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> &) { return value(); }
00257 };
00258
00259 template<class ContainerAllocator>
00260 struct Definition< ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "\n\
00264 \n\
00265 \n\
00266 \n\
00267 string file_name\n\
00268 \n\
00269 \n\
00270 geometry_msgs/Pose obstacle_pose\n\
00271 \n\
00272 ================================================================================\n\
00273 MSG: geometry_msgs/Pose\n\
00274 # A representation of pose in free space, composed of postion and orientation. \n\
00275 Point position\n\
00276 Quaternion orientation\n\
00277 \n\
00278 ================================================================================\n\
00279 MSG: geometry_msgs/Point\n\
00280 # This contains the position of a point in free space\n\
00281 float64 x\n\
00282 float64 y\n\
00283 float64 z\n\
00284 \n\
00285 ================================================================================\n\
00286 MSG: geometry_msgs/Quaternion\n\
00287 # This represents an orientation in free space in quaternion form.\n\
00288 \n\
00289 float64 x\n\
00290 float64 y\n\
00291 float64 z\n\
00292 float64 w\n\
00293 \n\
00294 ";
00295 }
00296
00297 static const char* value(const ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> &) { return value(); }
00298 };
00299
00300 }
00301 }
00302
00303
00304 namespace ros
00305 {
00306 namespace message_traits
00307 {
00308 template<class ContainerAllocator>
00309 struct MD5Sum< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > {
00310 static const char* value()
00311 {
00312 return "41e017e2964af6197c0f07ec9353afaf";
00313 }
00314
00315 static const char* value(const ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> &) { return value(); }
00316 static const uint64_t static_value1 = 0x41e017e2964af619ULL;
00317 static const uint64_t static_value2 = 0x7c0f07ec9353afafULL;
00318 };
00319
00320 template<class ContainerAllocator>
00321 struct DataType< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > {
00322 static const char* value()
00323 {
00324 return "graspit_interface_msgs/LoadObstacleResponse";
00325 }
00326
00327 static const char* value(const ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> &) { return value(); }
00328 };
00329
00330 template<class ContainerAllocator>
00331 struct Definition< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > {
00332 static const char* value()
00333 {
00334 return "\n\
00335 int32 LOAD_SUCCESS = 0\n\
00336 int32 LOAD_FAILURE = 1\n\
00337 int32 result\n\
00338 \n\
00339 ";
00340 }
00341
00342 static const char* value(const ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> &) { return value(); }
00343 };
00344
00345 template<class ContainerAllocator> struct IsFixedSize< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > : public TrueType {};
00346 }
00347 }
00348
00349 namespace ros
00350 {
00351 namespace serialization
00352 {
00353
00354 template<class ContainerAllocator> struct Serializer< ::graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> >
00355 {
00356 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00357 {
00358 stream.next(m.file_name);
00359 stream.next(m.obstacle_pose);
00360 }
00361
00362 ROS_DECLARE_ALLINONE_SERIALIZER;
00363 };
00364 }
00365 }
00366
00367
00368 namespace ros
00369 {
00370 namespace serialization
00371 {
00372
00373 template<class ContainerAllocator> struct Serializer< ::graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> >
00374 {
00375 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00376 {
00377 stream.next(m.result);
00378 }
00379
00380 ROS_DECLARE_ALLINONE_SERIALIZER;
00381 };
00382 }
00383 }
00384
00385 namespace ros
00386 {
00387 namespace service_traits
00388 {
00389 template<>
00390 struct MD5Sum<graspit_interface_msgs::LoadObstacle> {
00391 static const char* value()
00392 {
00393 return "849362f1aa1b5a31b05a93a66798c64b";
00394 }
00395
00396 static const char* value(const graspit_interface_msgs::LoadObstacle&) { return value(); }
00397 };
00398
00399 template<>
00400 struct DataType<graspit_interface_msgs::LoadObstacle> {
00401 static const char* value()
00402 {
00403 return "graspit_interface_msgs/LoadObstacle";
00404 }
00405
00406 static const char* value(const graspit_interface_msgs::LoadObstacle&) { return value(); }
00407 };
00408
00409 template<class ContainerAllocator>
00410 struct MD5Sum<graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> > {
00411 static const char* value()
00412 {
00413 return "849362f1aa1b5a31b05a93a66798c64b";
00414 }
00415
00416 static const char* value(const graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> &) { return value(); }
00417 };
00418
00419 template<class ContainerAllocator>
00420 struct DataType<graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> > {
00421 static const char* value()
00422 {
00423 return "graspit_interface_msgs/LoadObstacle";
00424 }
00425
00426 static const char* value(const graspit_interface_msgs::LoadObstacleRequest_<ContainerAllocator> &) { return value(); }
00427 };
00428
00429 template<class ContainerAllocator>
00430 struct MD5Sum<graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > {
00431 static const char* value()
00432 {
00433 return "849362f1aa1b5a31b05a93a66798c64b";
00434 }
00435
00436 static const char* value(const graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> &) { return value(); }
00437 };
00438
00439 template<class ContainerAllocator>
00440 struct DataType<graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> > {
00441 static const char* value()
00442 {
00443 return "graspit_interface_msgs/LoadObstacle";
00444 }
00445
00446 static const char* value(const graspit_interface_msgs::LoadObstacleResponse_<ContainerAllocator> &) { return value(); }
00447 };
00448
00449 }
00450 }
00451
00452 #endif // GRASPIT_INTERFACE_MSGS_SERVICE_LOADOBSTACLE_H
00453