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


srs_object_database_msgs
Author(s): Georg Arbeiter
autogenerated on Sun Jan 5 2014 11:36:26