Shape.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/Shape.msg */
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_SHAPE_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_SHAPE_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 "geometry_msgs/Point.h"
00018 
00019 namespace arm_navigation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Shape_ {
00023   typedef Shape_<ContainerAllocator> Type;
00024 
00025   Shape_()
00026   : type(0)
00027   , dimensions()
00028   , triangles()
00029   , vertices()
00030   {
00031   }
00032 
00033   Shape_(const ContainerAllocator& _alloc)
00034   : type(0)
00035   , dimensions(_alloc)
00036   , triangles(_alloc)
00037   , vertices(_alloc)
00038   {
00039   }
00040 
00041   typedef int8_t _type_type;
00042   int8_t type;
00043 
00044   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _dimensions_type;
00045   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  dimensions;
00046 
00047   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _triangles_type;
00048   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  triangles;
00049 
00050   typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other >  _vertices_type;
00051   std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other >  vertices;
00052 
00053   enum { SPHERE = 0 };
00054   enum { BOX = 1 };
00055   enum { CYLINDER = 2 };
00056   enum { MESH = 3 };
00057 
00058   typedef boost::shared_ptr< ::arm_navigation_msgs::Shape_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::arm_navigation_msgs::Shape_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct Shape
00062 typedef  ::arm_navigation_msgs::Shape_<std::allocator<void> > Shape;
00063 
00064 typedef boost::shared_ptr< ::arm_navigation_msgs::Shape> ShapePtr;
00065 typedef boost::shared_ptr< ::arm_navigation_msgs::Shape const> ShapeConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::arm_navigation_msgs::Shape_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::arm_navigation_msgs::Shape_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace arm_navigation_msgs
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::Shape_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::Shape_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::arm_navigation_msgs::Shape_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "59935940044147de75e7523b5d37c4d7";
00087   }
00088 
00089   static const char* value(const  ::arm_navigation_msgs::Shape_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0x59935940044147deULL;
00091   static const uint64_t static_value2 = 0x75e7523b5d37c4d7ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::arm_navigation_msgs::Shape_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "arm_navigation_msgs/Shape";
00099   }
00100 
00101   static const char* value(const  ::arm_navigation_msgs::Shape_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::arm_navigation_msgs::Shape_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "byte SPHERE=0\n\
00109 byte BOX=1\n\
00110 byte CYLINDER=2\n\
00111 byte MESH=3\n\
00112 \n\
00113 byte type\n\
00114 \n\
00115 \n\
00116 #### define sphere, box, cylinder ####\n\
00117 # the origin of each shape is considered at the shape's center\n\
00118 \n\
00119 # for sphere\n\
00120 # radius := dimensions[0]\n\
00121 \n\
00122 # for cylinder\n\
00123 # radius := dimensions[0]\n\
00124 # length := dimensions[1]\n\
00125 # the length is along the Z axis\n\
00126 \n\
00127 # for box\n\
00128 # size_x := dimensions[0]\n\
00129 # size_y := dimensions[1]\n\
00130 # size_z := dimensions[2]\n\
00131 float64[] dimensions\n\
00132 \n\
00133 \n\
00134 #### define mesh ####\n\
00135 \n\
00136 # list of triangles; triangle k is defined by tre vertices located\n\
00137 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00138 int32[] triangles\n\
00139 geometry_msgs/Point[] vertices\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: geometry_msgs/Point\n\
00143 # This contains the position of a point in free space\n\
00144 float64 x\n\
00145 float64 y\n\
00146 float64 z\n\
00147 \n\
00148 ";
00149   }
00150 
00151   static const char* value(const  ::arm_navigation_msgs::Shape_<ContainerAllocator> &) { return value(); } 
00152 };
00153 
00154 } // namespace message_traits
00155 } // namespace ros
00156 
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161 
00162 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::Shape_<ContainerAllocator> >
00163 {
00164   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165   {
00166     stream.next(m.type);
00167     stream.next(m.dimensions);
00168     stream.next(m.triangles);
00169     stream.next(m.vertices);
00170   }
00171 
00172   ROS_DECLARE_ALLINONE_SERIALIZER;
00173 }; // struct Shape_
00174 } // namespace serialization
00175 } // namespace ros
00176 
00177 namespace ros
00178 {
00179 namespace message_operations
00180 {
00181 
00182 template<class ContainerAllocator>
00183 struct Printer< ::arm_navigation_msgs::Shape_<ContainerAllocator> >
00184 {
00185   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::arm_navigation_msgs::Shape_<ContainerAllocator> & v) 
00186   {
00187     s << indent << "type: ";
00188     Printer<int8_t>::stream(s, indent + "  ", v.type);
00189     s << indent << "dimensions[]" << std::endl;
00190     for (size_t i = 0; i < v.dimensions.size(); ++i)
00191     {
00192       s << indent << "  dimensions[" << i << "]: ";
00193       Printer<double>::stream(s, indent + "  ", v.dimensions[i]);
00194     }
00195     s << indent << "triangles[]" << std::endl;
00196     for (size_t i = 0; i < v.triangles.size(); ++i)
00197     {
00198       s << indent << "  triangles[" << i << "]: ";
00199       Printer<int32_t>::stream(s, indent + "  ", v.triangles[i]);
00200     }
00201     s << indent << "vertices[]" << std::endl;
00202     for (size_t i = 0; i < v.vertices.size(); ++i)
00203     {
00204       s << indent << "  vertices[" << i << "]: ";
00205       s << std::endl;
00206       s << indent;
00207       Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + "    ", v.vertices[i]);
00208     }
00209   }
00210 };
00211 
00212 
00213 } // namespace message_operations
00214 } // namespace ros
00215 
00216 #endif // ARM_NAVIGATION_MSGS_MESSAGE_SHAPE_H
00217 


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