cop_add_collision.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-ias_common/doc_stacks/2014-10-06_00-40-46.541507/ias_common/vision_srvs/srv/cop_add_collision.srv */
00002 #ifndef VISION_SRVS_SERVICE_COP_ADD_COLLISION_H
00003 #define VISION_SRVS_SERVICE_COP_ADD_COLLISION_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/CollisionObject.h"
00022 
00023 namespace vision_srvs
00024 {
00025 template <class ContainerAllocator>
00026 struct cop_add_collisionRequest_ {
00027   typedef cop_add_collisionRequest_<ContainerAllocator> Type;
00028 
00029   cop_add_collisionRequest_()
00030   : object_id(0)
00031   {
00032   }
00033 
00034   cop_add_collisionRequest_(const ContainerAllocator& _alloc)
00035   : object_id(0)
00036   {
00037   }
00038 
00039   typedef uint64_t _object_id_type;
00040   uint64_t object_id;
00041 
00042 
00043   typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > Ptr;
00044   typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator>  const> ConstPtr;
00045   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 }; // struct cop_add_collisionRequest
00047 typedef  ::vision_srvs::cop_add_collisionRequest_<std::allocator<void> > cop_add_collisionRequest;
00048 
00049 typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionRequest> cop_add_collisionRequestPtr;
00050 typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionRequest const> cop_add_collisionRequestConstPtr;
00051 
00052 
00053 
00054 template <class ContainerAllocator>
00055 struct cop_add_collisionResponse_ {
00056   typedef cop_add_collisionResponse_<ContainerAllocator> Type;
00057 
00058   cop_add_collisionResponse_()
00059   : collisionname()
00060   , added_object()
00061   {
00062   }
00063 
00064   cop_add_collisionResponse_(const ContainerAllocator& _alloc)
00065   : collisionname(_alloc)
00066   , added_object(_alloc)
00067   {
00068   }
00069 
00070   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _collisionname_type;
00071   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  collisionname;
00072 
00073   typedef  ::arm_navigation_msgs::CollisionObject_<ContainerAllocator>  _added_object_type;
00074    ::arm_navigation_msgs::CollisionObject_<ContainerAllocator>  added_object;
00075 
00076 
00077   typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > Ptr;
00078   typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator>  const> ConstPtr;
00079   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00080 }; // struct cop_add_collisionResponse
00081 typedef  ::vision_srvs::cop_add_collisionResponse_<std::allocator<void> > cop_add_collisionResponse;
00082 
00083 typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionResponse> cop_add_collisionResponsePtr;
00084 typedef boost::shared_ptr< ::vision_srvs::cop_add_collisionResponse const> cop_add_collisionResponseConstPtr;
00085 
00086 
00087 struct cop_add_collision
00088 {
00089 
00090 typedef cop_add_collisionRequest Request;
00091 typedef cop_add_collisionResponse Response;
00092 Request request;
00093 Response response;
00094 
00095 typedef Request RequestType;
00096 typedef Response ResponseType;
00097 }; // struct cop_add_collision
00098 } // namespace vision_srvs
00099 
00100 namespace ros
00101 {
00102 namespace message_traits
00103 {
00104 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > : public TrueType {};
00105 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator>  const> : public TrueType {};
00106 template<class ContainerAllocator>
00107 struct MD5Sum< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > {
00108   static const char* value() 
00109   {
00110     return "039cdc2e4e021929b349f87d86d0ea70";
00111   }
00112 
00113   static const char* value(const  ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> &) { return value(); } 
00114   static const uint64_t static_value1 = 0x039cdc2e4e021929ULL;
00115   static const uint64_t static_value2 = 0xb349f87d86d0ea70ULL;
00116 };
00117 
00118 template<class ContainerAllocator>
00119 struct DataType< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > {
00120   static const char* value() 
00121   {
00122     return "vision_srvs/cop_add_collisionRequest";
00123   }
00124 
00125   static const char* value(const  ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> &) { return value(); } 
00126 };
00127 
00128 template<class ContainerAllocator>
00129 struct Definition< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > {
00130   static const char* value() 
00131   {
00132     return "\n\
00133 \n\
00134 uint64 object_id\n\
00135 \n\
00136 ";
00137   }
00138 
00139   static const char* value(const  ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> &) { return value(); } 
00140 };
00141 
00142 template<class ContainerAllocator> struct IsFixedSize< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > : public TrueType {};
00143 } // namespace message_traits
00144 } // namespace ros
00145 
00146 
00147 namespace ros
00148 {
00149 namespace message_traits
00150 {
00151 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > : public TrueType {};
00152 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator>  const> : public TrueType {};
00153 template<class ContainerAllocator>
00154 struct MD5Sum< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > {
00155   static const char* value() 
00156   {
00157     return "66d3c9bb4e74eca84445fb8e469ca2cb";
00158   }
00159 
00160   static const char* value(const  ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> &) { return value(); } 
00161   static const uint64_t static_value1 = 0x66d3c9bb4e74eca8ULL;
00162   static const uint64_t static_value2 = 0x4445fb8e469ca2cbULL;
00163 };
00164 
00165 template<class ContainerAllocator>
00166 struct DataType< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > {
00167   static const char* value() 
00168   {
00169     return "vision_srvs/cop_add_collisionResponse";
00170   }
00171 
00172   static const char* value(const  ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> &) { return value(); } 
00173 };
00174 
00175 template<class ContainerAllocator>
00176 struct Definition< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > {
00177   static const char* value() 
00178   {
00179     return "string   collisionname\n\
00180 arm_navigation_msgs/CollisionObject added_object\n\
00181 \n\
00182 \n\
00183 ================================================================================\n\
00184 MSG: arm_navigation_msgs/CollisionObject\n\
00185 # a header, used for interpreting the poses\n\
00186 Header header\n\
00187 \n\
00188 # the id of the object\n\
00189 string id\n\
00190 \n\
00191 # The padding used for filtering points near the object.\n\
00192 # This does not affect collision checking for the object.  \n\
00193 # Set to negative to get zero padding.\n\
00194 float32 padding\n\
00195 \n\
00196 #This contains what is to be done with the object\n\
00197 CollisionObjectOperation operation\n\
00198 \n\
00199 #the shapes associated with the object\n\
00200 arm_navigation_msgs/Shape[] shapes\n\
00201 \n\
00202 #the poses associated with the shapes - will be transformed using the header\n\
00203 geometry_msgs/Pose[] poses\n\
00204 \n\
00205 ================================================================================\n\
00206 MSG: std_msgs/Header\n\
00207 # Standard metadata for higher-level stamped data types.\n\
00208 # This is generally used to communicate timestamped data \n\
00209 # in a particular coordinate frame.\n\
00210 # \n\
00211 # sequence ID: consecutively increasing ID \n\
00212 uint32 seq\n\
00213 #Two-integer timestamp that is expressed as:\n\
00214 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00215 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00216 # time-handling sugar is provided by the client library\n\
00217 time stamp\n\
00218 #Frame this data is associated with\n\
00219 # 0: no frame\n\
00220 # 1: global frame\n\
00221 string frame_id\n\
00222 \n\
00223 ================================================================================\n\
00224 MSG: arm_navigation_msgs/CollisionObjectOperation\n\
00225 #Puts the object into the environment\n\
00226 #or updates the object if already added\n\
00227 byte ADD=0\n\
00228 \n\
00229 #Removes the object from the environment entirely\n\
00230 byte REMOVE=1\n\
00231 \n\
00232 #Only valid within the context of a CollisionAttachedObject message\n\
00233 #Will be ignored if sent with an CollisionObject message\n\
00234 #Takes an attached object, detaches from the attached link\n\
00235 #But adds back in as regular object\n\
00236 byte DETACH_AND_ADD_AS_OBJECT=2\n\
00237 \n\
00238 #Only valid within the context of a CollisionAttachedObject message\n\
00239 #Will be ignored if sent with an CollisionObject message\n\
00240 #Takes current object in the environment and removes it as\n\
00241 #a regular object\n\
00242 byte ATTACH_AND_REMOVE_AS_OBJECT=3\n\
00243 \n\
00244 # Byte code for operation\n\
00245 byte operation\n\
00246 \n\
00247 ================================================================================\n\
00248 MSG: arm_navigation_msgs/Shape\n\
00249 byte SPHERE=0\n\
00250 byte BOX=1\n\
00251 byte CYLINDER=2\n\
00252 byte MESH=3\n\
00253 \n\
00254 byte type\n\
00255 \n\
00256 \n\
00257 #### define sphere, box, cylinder ####\n\
00258 # the origin of each shape is considered at the shape's center\n\
00259 \n\
00260 # for sphere\n\
00261 # radius := dimensions[0]\n\
00262 \n\
00263 # for cylinder\n\
00264 # radius := dimensions[0]\n\
00265 # length := dimensions[1]\n\
00266 # the length is along the Z axis\n\
00267 \n\
00268 # for box\n\
00269 # size_x := dimensions[0]\n\
00270 # size_y := dimensions[1]\n\
00271 # size_z := dimensions[2]\n\
00272 float64[] dimensions\n\
00273 \n\
00274 \n\
00275 #### define mesh ####\n\
00276 \n\
00277 # list of triangles; triangle k is defined by tre vertices located\n\
00278 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00279 int32[] triangles\n\
00280 geometry_msgs/Point[] vertices\n\
00281 \n\
00282 ================================================================================\n\
00283 MSG: geometry_msgs/Point\n\
00284 # This contains the position of a point in free space\n\
00285 float64 x\n\
00286 float64 y\n\
00287 float64 z\n\
00288 \n\
00289 ================================================================================\n\
00290 MSG: geometry_msgs/Pose\n\
00291 # A representation of pose in free space, composed of postion and orientation. \n\
00292 Point position\n\
00293 Quaternion orientation\n\
00294 \n\
00295 ================================================================================\n\
00296 MSG: geometry_msgs/Quaternion\n\
00297 # This represents an orientation in free space in quaternion form.\n\
00298 \n\
00299 float64 x\n\
00300 float64 y\n\
00301 float64 z\n\
00302 float64 w\n\
00303 \n\
00304 ";
00305   }
00306 
00307   static const char* value(const  ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> &) { return value(); } 
00308 };
00309 
00310 } // namespace message_traits
00311 } // namespace ros
00312 
00313 namespace ros
00314 {
00315 namespace serialization
00316 {
00317 
00318 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_add_collisionRequest_<ContainerAllocator> >
00319 {
00320   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00321   {
00322     stream.next(m.object_id);
00323   }
00324 
00325   ROS_DECLARE_ALLINONE_SERIALIZER;
00326 }; // struct cop_add_collisionRequest_
00327 } // namespace serialization
00328 } // namespace ros
00329 
00330 
00331 namespace ros
00332 {
00333 namespace serialization
00334 {
00335 
00336 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_add_collisionResponse_<ContainerAllocator> >
00337 {
00338   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00339   {
00340     stream.next(m.collisionname);
00341     stream.next(m.added_object);
00342   }
00343 
00344   ROS_DECLARE_ALLINONE_SERIALIZER;
00345 }; // struct cop_add_collisionResponse_
00346 } // namespace serialization
00347 } // namespace ros
00348 
00349 namespace ros
00350 {
00351 namespace service_traits
00352 {
00353 template<>
00354 struct MD5Sum<vision_srvs::cop_add_collision> {
00355   static const char* value() 
00356   {
00357     return "119055ba7d9102720f55afbcc4f26f14";
00358   }
00359 
00360   static const char* value(const vision_srvs::cop_add_collision&) { return value(); } 
00361 };
00362 
00363 template<>
00364 struct DataType<vision_srvs::cop_add_collision> {
00365   static const char* value() 
00366   {
00367     return "vision_srvs/cop_add_collision";
00368   }
00369 
00370   static const char* value(const vision_srvs::cop_add_collision&) { return value(); } 
00371 };
00372 
00373 template<class ContainerAllocator>
00374 struct MD5Sum<vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > {
00375   static const char* value() 
00376   {
00377     return "119055ba7d9102720f55afbcc4f26f14";
00378   }
00379 
00380   static const char* value(const vision_srvs::cop_add_collisionRequest_<ContainerAllocator> &) { return value(); } 
00381 };
00382 
00383 template<class ContainerAllocator>
00384 struct DataType<vision_srvs::cop_add_collisionRequest_<ContainerAllocator> > {
00385   static const char* value() 
00386   {
00387     return "vision_srvs/cop_add_collision";
00388   }
00389 
00390   static const char* value(const vision_srvs::cop_add_collisionRequest_<ContainerAllocator> &) { return value(); } 
00391 };
00392 
00393 template<class ContainerAllocator>
00394 struct MD5Sum<vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > {
00395   static const char* value() 
00396   {
00397     return "119055ba7d9102720f55afbcc4f26f14";
00398   }
00399 
00400   static const char* value(const vision_srvs::cop_add_collisionResponse_<ContainerAllocator> &) { return value(); } 
00401 };
00402 
00403 template<class ContainerAllocator>
00404 struct DataType<vision_srvs::cop_add_collisionResponse_<ContainerAllocator> > {
00405   static const char* value() 
00406   {
00407     return "vision_srvs/cop_add_collision";
00408   }
00409 
00410   static const char* value(const vision_srvs::cop_add_collisionResponse_<ContainerAllocator> &) { return value(); } 
00411 };
00412 
00413 } // namespace service_traits
00414 } // namespace ros
00415 
00416 #endif // VISION_SRVS_SERVICE_COP_ADD_COLLISION_H
00417 


vision_srvs
Author(s): Ulrich F Klank
autogenerated on Mon Oct 6 2014 00:48:11