Go to the documentation of this file.00001
00002 #ifndef ARM_NAVIGATION_MSGS_SERVICE_GETCOLLISIONOBJECTS_H
00003 #define ARM_NAVIGATION_MSGS_SERVICE_GETCOLLISIONOBJECTS_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 #include "arm_navigation_msgs/CollisionMap.h"
00022 #include "arm_navigation_msgs/CollisionObject.h"
00023 #include "arm_navigation_msgs/AttachedCollisionObject.h"
00024
00025 namespace arm_navigation_msgs
00026 {
00027 template <class ContainerAllocator>
00028 struct GetCollisionObjectsRequest_ {
00029 typedef GetCollisionObjectsRequest_<ContainerAllocator> Type;
00030
00031 GetCollisionObjectsRequest_()
00032 : include_points(false)
00033 {
00034 }
00035
00036 GetCollisionObjectsRequest_(const ContainerAllocator& _alloc)
00037 : include_points(false)
00038 {
00039 }
00040
00041 typedef uint8_t _include_points_type;
00042 uint8_t include_points;
00043
00044
00045 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::arm_navigation_msgs::GetCollisionObjectsRequest_<std::allocator<void> > GetCollisionObjectsRequest;
00050
00051 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsRequest> GetCollisionObjectsRequestPtr;
00052 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsRequest const> GetCollisionObjectsRequestConstPtr;
00053
00054
00055
00056 template <class ContainerAllocator>
00057 struct GetCollisionObjectsResponse_ {
00058 typedef GetCollisionObjectsResponse_<ContainerAllocator> Type;
00059
00060 GetCollisionObjectsResponse_()
00061 : points()
00062 , collision_objects()
00063 , attached_collision_objects()
00064 {
00065 }
00066
00067 GetCollisionObjectsResponse_(const ContainerAllocator& _alloc)
00068 : points(_alloc)
00069 , collision_objects(_alloc)
00070 , attached_collision_objects(_alloc)
00071 {
00072 }
00073
00074 typedef ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> _points_type;
00075 ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> points;
00076
00077 typedef std::vector< ::arm_navigation_msgs::CollisionObject_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::CollisionObject_<ContainerAllocator> >::other > _collision_objects_type;
00078 std::vector< ::arm_navigation_msgs::CollisionObject_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::CollisionObject_<ContainerAllocator> >::other > collision_objects;
00079
00080 typedef std::vector< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> >::other > _attached_collision_objects_type;
00081 std::vector< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> >::other > attached_collision_objects;
00082
00083
00084 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > Ptr;
00085 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> const> ConstPtr;
00086 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00087 };
00088 typedef ::arm_navigation_msgs::GetCollisionObjectsResponse_<std::allocator<void> > GetCollisionObjectsResponse;
00089
00090 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsResponse> GetCollisionObjectsResponsePtr;
00091 typedef boost::shared_ptr< ::arm_navigation_msgs::GetCollisionObjectsResponse const> GetCollisionObjectsResponseConstPtr;
00092
00093
00094 struct GetCollisionObjects
00095 {
00096
00097 typedef GetCollisionObjectsRequest Request;
00098 typedef GetCollisionObjectsResponse Response;
00099 Request request;
00100 Response response;
00101
00102 typedef Request RequestType;
00103 typedef Response ResponseType;
00104 };
00105 }
00106
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > : public TrueType {};
00112 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> const> : public TrueType {};
00113 template<class ContainerAllocator>
00114 struct MD5Sum< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "3ae7288b23c84452d229e442c1673708";
00118 }
00119
00120 static const char* value(const ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> &) { return value(); }
00121 static const uint64_t static_value1 = 0x3ae7288b23c84452ULL;
00122 static const uint64_t static_value2 = 0xd229e442c1673708ULL;
00123 };
00124
00125 template<class ContainerAllocator>
00126 struct DataType< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "arm_navigation_msgs/GetCollisionObjectsRequest";
00130 }
00131
00132 static const char* value(const ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> &) { return value(); }
00133 };
00134
00135 template<class ContainerAllocator>
00136 struct Definition< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "\n\
00140 \n\
00141 \n\
00142 bool include_points\n\
00143 \n\
00144 ";
00145 }
00146
00147 static const char* value(const ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator> struct IsFixedSize< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > : public TrueType {};
00151 }
00152 }
00153
00154
00155 namespace ros
00156 {
00157 namespace message_traits
00158 {
00159 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > : public TrueType {};
00160 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> const> : public TrueType {};
00161 template<class ContainerAllocator>
00162 struct MD5Sum< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "c361b849f4eb74ea667a930b0b9dc801";
00166 }
00167
00168 static const char* value(const ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> &) { return value(); }
00169 static const uint64_t static_value1 = 0xc361b849f4eb74eaULL;
00170 static const uint64_t static_value2 = 0x667a930b0b9dc801ULL;
00171 };
00172
00173 template<class ContainerAllocator>
00174 struct DataType< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "arm_navigation_msgs/GetCollisionObjectsResponse";
00178 }
00179
00180 static const char* value(const ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> &) { return value(); }
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct Definition< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "\n\
00188 arm_navigation_msgs/CollisionMap points\n\
00189 \n\
00190 arm_navigation_msgs/CollisionObject[] collision_objects\n\
00191 \n\
00192 arm_navigation_msgs/AttachedCollisionObject[] attached_collision_objects\n\
00193 \n\
00194 \n\
00195 ================================================================================\n\
00196 MSG: arm_navigation_msgs/CollisionMap\n\
00197 #header for interpreting box positions\n\
00198 Header header\n\
00199 \n\
00200 #boxes for use in collision testing\n\
00201 OrientedBoundingBox[] boxes\n\
00202 \n\
00203 ================================================================================\n\
00204 MSG: std_msgs/Header\n\
00205 # Standard metadata for higher-level stamped data types.\n\
00206 # This is generally used to communicate timestamped data \n\
00207 # in a particular coordinate frame.\n\
00208 # \n\
00209 # sequence ID: consecutively increasing ID \n\
00210 uint32 seq\n\
00211 #Two-integer timestamp that is expressed as:\n\
00212 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00213 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00214 # time-handling sugar is provided by the client library\n\
00215 time stamp\n\
00216 #Frame this data is associated with\n\
00217 # 0: no frame\n\
00218 # 1: global frame\n\
00219 string frame_id\n\
00220 \n\
00221 ================================================================================\n\
00222 MSG: arm_navigation_msgs/OrientedBoundingBox\n\
00223 #the center of the box\n\
00224 geometry_msgs/Point32 center\n\
00225 \n\
00226 #the extents of the box, assuming the center is at the point\n\
00227 geometry_msgs/Point32 extents\n\
00228 \n\
00229 #the axis of the box\n\
00230 geometry_msgs/Point32 axis\n\
00231 \n\
00232 #the angle of rotation around the axis\n\
00233 float32 angle\n\
00234 \n\
00235 ================================================================================\n\
00236 MSG: geometry_msgs/Point32\n\
00237 # This contains the position of a point in free space(with 32 bits of precision).\n\
00238 # It is recommeded to use Point wherever possible instead of Point32. \n\
00239 # \n\
00240 # This recommendation is to promote interoperability. \n\
00241 #\n\
00242 # This message is designed to take up less space when sending\n\
00243 # lots of points at once, as in the case of a PointCloud. \n\
00244 \n\
00245 float32 x\n\
00246 float32 y\n\
00247 float32 z\n\
00248 ================================================================================\n\
00249 MSG: arm_navigation_msgs/CollisionObject\n\
00250 # a header, used for interpreting the poses\n\
00251 Header header\n\
00252 \n\
00253 # the id of the object\n\
00254 string id\n\
00255 \n\
00256 # The padding used for filtering points near the object.\n\
00257 # This does not affect collision checking for the object. \n\
00258 # Set to negative to get zero padding.\n\
00259 float32 padding\n\
00260 \n\
00261 #This contains what is to be done with the object\n\
00262 CollisionObjectOperation operation\n\
00263 \n\
00264 #the shapes associated with the object\n\
00265 arm_navigation_msgs/Shape[] shapes\n\
00266 \n\
00267 #the poses associated with the shapes - will be transformed using the header\n\
00268 geometry_msgs/Pose[] poses\n\
00269 \n\
00270 ================================================================================\n\
00271 MSG: arm_navigation_msgs/CollisionObjectOperation\n\
00272 #Puts the object into the environment\n\
00273 #or updates the object if already added\n\
00274 byte ADD=0\n\
00275 \n\
00276 #Removes the object from the environment entirely\n\
00277 byte REMOVE=1\n\
00278 \n\
00279 #Only valid within the context of a CollisionAttachedObject message\n\
00280 #Will be ignored if sent with an CollisionObject message\n\
00281 #Takes an attached object, detaches from the attached link\n\
00282 #But adds back in as regular object\n\
00283 byte DETACH_AND_ADD_AS_OBJECT=2\n\
00284 \n\
00285 #Only valid within the context of a CollisionAttachedObject message\n\
00286 #Will be ignored if sent with an CollisionObject message\n\
00287 #Takes current object in the environment and removes it as\n\
00288 #a regular object\n\
00289 byte ATTACH_AND_REMOVE_AS_OBJECT=3\n\
00290 \n\
00291 # Byte code for operation\n\
00292 byte operation\n\
00293 \n\
00294 ================================================================================\n\
00295 MSG: arm_navigation_msgs/Shape\n\
00296 byte SPHERE=0\n\
00297 byte BOX=1\n\
00298 byte CYLINDER=2\n\
00299 byte MESH=3\n\
00300 \n\
00301 byte type\n\
00302 \n\
00303 \n\
00304 #### define sphere, box, cylinder ####\n\
00305 # the origin of each shape is considered at the shape's center\n\
00306 \n\
00307 # for sphere\n\
00308 # radius := dimensions[0]\n\
00309 \n\
00310 # for cylinder\n\
00311 # radius := dimensions[0]\n\
00312 # length := dimensions[1]\n\
00313 # the length is along the Z axis\n\
00314 \n\
00315 # for box\n\
00316 # size_x := dimensions[0]\n\
00317 # size_y := dimensions[1]\n\
00318 # size_z := dimensions[2]\n\
00319 float64[] dimensions\n\
00320 \n\
00321 \n\
00322 #### define mesh ####\n\
00323 \n\
00324 # list of triangles; triangle k is defined by tre vertices located\n\
00325 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00326 int32[] triangles\n\
00327 geometry_msgs/Point[] vertices\n\
00328 \n\
00329 ================================================================================\n\
00330 MSG: geometry_msgs/Point\n\
00331 # This contains the position of a point in free space\n\
00332 float64 x\n\
00333 float64 y\n\
00334 float64 z\n\
00335 \n\
00336 ================================================================================\n\
00337 MSG: geometry_msgs/Pose\n\
00338 # A representation of pose in free space, composed of postion and orientation. \n\
00339 Point position\n\
00340 Quaternion orientation\n\
00341 \n\
00342 ================================================================================\n\
00343 MSG: geometry_msgs/Quaternion\n\
00344 # This represents an orientation in free space in quaternion form.\n\
00345 \n\
00346 float64 x\n\
00347 float64 y\n\
00348 float64 z\n\
00349 float64 w\n\
00350 \n\
00351 ================================================================================\n\
00352 MSG: arm_navigation_msgs/AttachedCollisionObject\n\
00353 # The CollisionObject will be attached with a fixed joint to this link\n\
00354 # If link name is set to REMOVE_ALL_ATTACHED_OBJECTS and object.operation \n\
00355 # is set to REMOVE will remove all attached bodies attached to any object\n\
00356 string link_name\n\
00357 \n\
00358 #Reserved for indicating that all attached objects should be removed\n\
00359 string REMOVE_ALL_ATTACHED_OBJECTS = \"all\"\n\
00360 \n\
00361 #This contains the actual shapes and poses for the CollisionObject\n\
00362 #to be attached to the link\n\
00363 #If action is remove and no object.id is set, all objects\n\
00364 #attached to the link indicated by link_name will be removed\n\
00365 CollisionObject object\n\
00366 \n\
00367 # The set of links that the attached objects are allowed to touch\n\
00368 # by default - the link_name is included by default\n\
00369 string[] touch_links\n\
00370 \n\
00371 ";
00372 }
00373
00374 static const char* value(const ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> &) { return value(); }
00375 };
00376
00377 }
00378 }
00379
00380 namespace ros
00381 {
00382 namespace serialization
00383 {
00384
00385 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> >
00386 {
00387 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00388 {
00389 stream.next(m.include_points);
00390 }
00391
00392 ROS_DECLARE_ALLINONE_SERIALIZER;
00393 };
00394 }
00395 }
00396
00397
00398 namespace ros
00399 {
00400 namespace serialization
00401 {
00402
00403 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> >
00404 {
00405 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00406 {
00407 stream.next(m.points);
00408 stream.next(m.collision_objects);
00409 stream.next(m.attached_collision_objects);
00410 }
00411
00412 ROS_DECLARE_ALLINONE_SERIALIZER;
00413 };
00414 }
00415 }
00416
00417 namespace ros
00418 {
00419 namespace service_traits
00420 {
00421 template<>
00422 struct MD5Sum<arm_navigation_msgs::GetCollisionObjects> {
00423 static const char* value()
00424 {
00425 return "8a4f57995c7be09c22ca01de6eb557ac";
00426 }
00427
00428 static const char* value(const arm_navigation_msgs::GetCollisionObjects&) { return value(); }
00429 };
00430
00431 template<>
00432 struct DataType<arm_navigation_msgs::GetCollisionObjects> {
00433 static const char* value()
00434 {
00435 return "arm_navigation_msgs/GetCollisionObjects";
00436 }
00437
00438 static const char* value(const arm_navigation_msgs::GetCollisionObjects&) { return value(); }
00439 };
00440
00441 template<class ContainerAllocator>
00442 struct MD5Sum<arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > {
00443 static const char* value()
00444 {
00445 return "8a4f57995c7be09c22ca01de6eb557ac";
00446 }
00447
00448 static const char* value(const arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> &) { return value(); }
00449 };
00450
00451 template<class ContainerAllocator>
00452 struct DataType<arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> > {
00453 static const char* value()
00454 {
00455 return "arm_navigation_msgs/GetCollisionObjects";
00456 }
00457
00458 static const char* value(const arm_navigation_msgs::GetCollisionObjectsRequest_<ContainerAllocator> &) { return value(); }
00459 };
00460
00461 template<class ContainerAllocator>
00462 struct MD5Sum<arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > {
00463 static const char* value()
00464 {
00465 return "8a4f57995c7be09c22ca01de6eb557ac";
00466 }
00467
00468 static const char* value(const arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> &) { return value(); }
00469 };
00470
00471 template<class ContainerAllocator>
00472 struct DataType<arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> > {
00473 static const char* value()
00474 {
00475 return "arm_navigation_msgs/GetCollisionObjects";
00476 }
00477
00478 static const char* value(const arm_navigation_msgs::GetCollisionObjectsResponse_<ContainerAllocator> &) { return value(); }
00479 };
00480
00481 }
00482 }
00483
00484 #endif // ARM_NAVIGATION_MSGS_SERVICE_GETCOLLISIONOBJECTS_H
00485