AttachedCollisionObject.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-arm_navigation/doc_stacks/2013-12-12_11-02-12.519893/arm_navigation/arm_navigation_msgs/msg/AttachedCollisionObject.msg */
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_ATTACHEDCOLLISIONOBJECT_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_ATTACHEDCOLLISIONOBJECT_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 "arm_navigation_msgs/CollisionObject.h"
00018 
00019 namespace arm_navigation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct AttachedCollisionObject_ {
00023   typedef AttachedCollisionObject_<ContainerAllocator> Type;
00024 
00025   AttachedCollisionObject_()
00026   : link_name()
00027   , object()
00028   , touch_links()
00029   {
00030   }
00031 
00032   AttachedCollisionObject_(const ContainerAllocator& _alloc)
00033   : link_name(_alloc)
00034   , object(_alloc)
00035   , touch_links(_alloc)
00036   {
00037   }
00038 
00039   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _link_name_type;
00040   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  link_name;
00041 
00042   typedef  ::arm_navigation_msgs::CollisionObject_<ContainerAllocator>  _object_type;
00043    ::arm_navigation_msgs::CollisionObject_<ContainerAllocator>  object;
00044 
00045   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _touch_links_type;
00046   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  touch_links;
00047 
00048   static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  REMOVE_ALL_ATTACHED_OBJECTS;
00049 
00050   typedef boost::shared_ptr< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> > Ptr;
00051   typedef boost::shared_ptr< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator>  const> ConstPtr;
00052   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 }; // struct AttachedCollisionObject
00054 typedef  ::arm_navigation_msgs::AttachedCollisionObject_<std::allocator<void> > AttachedCollisionObject;
00055 
00056 typedef boost::shared_ptr< ::arm_navigation_msgs::AttachedCollisionObject> AttachedCollisionObjectPtr;
00057 typedef boost::shared_ptr< ::arm_navigation_msgs::AttachedCollisionObject const> AttachedCollisionObjectConstPtr;
00058 
00059 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  AttachedCollisionObject_<ContainerAllocator>::REMOVE_ALL_ATTACHED_OBJECTS = "\"all\"";
00060 
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const  ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> & v)
00063 {
00064   ros::message_operations::Printer< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> >::stream(s, "", v);
00065   return s;}
00066 
00067 } // namespace arm_navigation_msgs
00068 
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator>  const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> > {
00077   static const char* value() 
00078   {
00079     return "3fd8ca730863e3d97d109c317d106cf9";
00080   }
00081 
00082   static const char* value(const  ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> &) { return value(); } 
00083   static const uint64_t static_value1 = 0x3fd8ca730863e3d9ULL;
00084   static const uint64_t static_value2 = 0x7d109c317d106cf9ULL;
00085 };
00086 
00087 template<class ContainerAllocator>
00088 struct DataType< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> > {
00089   static const char* value() 
00090   {
00091     return "arm_navigation_msgs/AttachedCollisionObject";
00092   }
00093 
00094   static const char* value(const  ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> &) { return value(); } 
00095 };
00096 
00097 template<class ContainerAllocator>
00098 struct Definition< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "# The CollisionObject will be attached with a fixed joint to this link\n\
00102 # If link name is set to REMOVE_ALL_ATTACHED_OBJECTS and object.operation \n\
00103 # is set to REMOVE will remove all attached bodies attached to any object\n\
00104 string link_name\n\
00105 \n\
00106 #Reserved for indicating that all attached objects should be removed\n\
00107 string REMOVE_ALL_ATTACHED_OBJECTS = \"all\"\n\
00108 \n\
00109 #This contains the actual shapes and poses for the CollisionObject\n\
00110 #to be attached to the link\n\
00111 #If action is remove and no object.id is set, all objects\n\
00112 #attached to the link indicated by link_name will be removed\n\
00113 CollisionObject object\n\
00114 \n\
00115 # The set of links that the attached objects are allowed to touch\n\
00116 # by default - the link_name is included by default\n\
00117 string[] touch_links\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: arm_navigation_msgs/CollisionObject\n\
00121 # a header, used for interpreting the poses\n\
00122 Header header\n\
00123 \n\
00124 # the id of the object\n\
00125 string id\n\
00126 \n\
00127 # The padding used for filtering points near the object.\n\
00128 # This does not affect collision checking for the object.  \n\
00129 # Set to negative to get zero padding.\n\
00130 float32 padding\n\
00131 \n\
00132 #This contains what is to be done with the object\n\
00133 CollisionObjectOperation operation\n\
00134 \n\
00135 #the shapes associated with the object\n\
00136 arm_navigation_msgs/Shape[] shapes\n\
00137 \n\
00138 #the poses associated with the shapes - will be transformed using the header\n\
00139 geometry_msgs/Pose[] poses\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: std_msgs/Header\n\
00143 # Standard metadata for higher-level stamped data types.\n\
00144 # This is generally used to communicate timestamped data \n\
00145 # in a particular coordinate frame.\n\
00146 # \n\
00147 # sequence ID: consecutively increasing ID \n\
00148 uint32 seq\n\
00149 #Two-integer timestamp that is expressed as:\n\
00150 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00151 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00152 # time-handling sugar is provided by the client library\n\
00153 time stamp\n\
00154 #Frame this data is associated with\n\
00155 # 0: no frame\n\
00156 # 1: global frame\n\
00157 string frame_id\n\
00158 \n\
00159 ================================================================================\n\
00160 MSG: arm_navigation_msgs/CollisionObjectOperation\n\
00161 #Puts the object into the environment\n\
00162 #or updates the object if already added\n\
00163 byte ADD=0\n\
00164 \n\
00165 #Removes the object from the environment entirely\n\
00166 byte REMOVE=1\n\
00167 \n\
00168 #Only valid within the context of a CollisionAttachedObject message\n\
00169 #Will be ignored if sent with an CollisionObject message\n\
00170 #Takes an attached object, detaches from the attached link\n\
00171 #But adds back in as regular object\n\
00172 byte DETACH_AND_ADD_AS_OBJECT=2\n\
00173 \n\
00174 #Only valid within the context of a CollisionAttachedObject message\n\
00175 #Will be ignored if sent with an CollisionObject message\n\
00176 #Takes current object in the environment and removes it as\n\
00177 #a regular object\n\
00178 byte ATTACH_AND_REMOVE_AS_OBJECT=3\n\
00179 \n\
00180 # Byte code for operation\n\
00181 byte operation\n\
00182 \n\
00183 ================================================================================\n\
00184 MSG: arm_navigation_msgs/Shape\n\
00185 byte SPHERE=0\n\
00186 byte BOX=1\n\
00187 byte CYLINDER=2\n\
00188 byte MESH=3\n\
00189 \n\
00190 byte type\n\
00191 \n\
00192 \n\
00193 #### define sphere, box, cylinder ####\n\
00194 # the origin of each shape is considered at the shape's center\n\
00195 \n\
00196 # for sphere\n\
00197 # radius := dimensions[0]\n\
00198 \n\
00199 # for cylinder\n\
00200 # radius := dimensions[0]\n\
00201 # length := dimensions[1]\n\
00202 # the length is along the Z axis\n\
00203 \n\
00204 # for box\n\
00205 # size_x := dimensions[0]\n\
00206 # size_y := dimensions[1]\n\
00207 # size_z := dimensions[2]\n\
00208 float64[] dimensions\n\
00209 \n\
00210 \n\
00211 #### define mesh ####\n\
00212 \n\
00213 # list of triangles; triangle k is defined by tre vertices located\n\
00214 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00215 int32[] triangles\n\
00216 geometry_msgs/Point[] vertices\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: geometry_msgs/Point\n\
00220 # This contains the position of a point in free space\n\
00221 float64 x\n\
00222 float64 y\n\
00223 float64 z\n\
00224 \n\
00225 ================================================================================\n\
00226 MSG: geometry_msgs/Pose\n\
00227 # A representation of pose in free space, composed of postion and orientation. \n\
00228 Point position\n\
00229 Quaternion orientation\n\
00230 \n\
00231 ================================================================================\n\
00232 MSG: geometry_msgs/Quaternion\n\
00233 # This represents an orientation in free space in quaternion form.\n\
00234 \n\
00235 float64 x\n\
00236 float64 y\n\
00237 float64 z\n\
00238 float64 w\n\
00239 \n\
00240 ";
00241   }
00242 
00243   static const char* value(const  ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> &) { return value(); } 
00244 };
00245 
00246 } // namespace message_traits
00247 } // namespace ros
00248 
00249 namespace ros
00250 {
00251 namespace serialization
00252 {
00253 
00254 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> >
00255 {
00256   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00257   {
00258     stream.next(m.link_name);
00259     stream.next(m.object);
00260     stream.next(m.touch_links);
00261   }
00262 
00263   ROS_DECLARE_ALLINONE_SERIALIZER;
00264 }; // struct AttachedCollisionObject_
00265 } // namespace serialization
00266 } // namespace ros
00267 
00268 namespace ros
00269 {
00270 namespace message_operations
00271 {
00272 
00273 template<class ContainerAllocator>
00274 struct Printer< ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> >
00275 {
00276   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::arm_navigation_msgs::AttachedCollisionObject_<ContainerAllocator> & v) 
00277   {
00278     s << indent << "link_name: ";
00279     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.link_name);
00280     s << indent << "object: ";
00281 s << std::endl;
00282     Printer< ::arm_navigation_msgs::CollisionObject_<ContainerAllocator> >::stream(s, indent + "  ", v.object);
00283     s << indent << "touch_links[]" << std::endl;
00284     for (size_t i = 0; i < v.touch_links.size(); ++i)
00285     {
00286       s << indent << "  touch_links[" << i << "]: ";
00287       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.touch_links[i]);
00288     }
00289   }
00290 };
00291 
00292 
00293 } // namespace message_operations
00294 } // namespace ros
00295 
00296 #endif // ARM_NAVIGATION_MSGS_MESSAGE_ATTACHEDCOLLISIONOBJECT_H
00297 


arm_navigation_msgs
Author(s): Gil Jones
autogenerated on Thu Dec 12 2013 11:08:10