TactileMatrix.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-schunk_modular_robotics/doc_stacks/2013-03-05_14-40-51.438610/schunk_modular_robotics/schunk_sdh/msg/TactileMatrix.msg */
00002 #ifndef SCHUNK_SDH_MESSAGE_TACTILEMATRIX_H
00003 #define SCHUNK_SDH_MESSAGE_TACTILEMATRIX_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 
00018 namespace schunk_sdh
00019 {
00020 template <class ContainerAllocator>
00021 struct TactileMatrix_ {
00022   typedef TactileMatrix_<ContainerAllocator> Type;
00023 
00024   TactileMatrix_()
00025   : matrix_id(0)
00026   , cells_x(0)
00027   , cells_y(0)
00028   , tactile_array()
00029   {
00030   }
00031 
00032   TactileMatrix_(const ContainerAllocator& _alloc)
00033   : matrix_id(0)
00034   , cells_x(0)
00035   , cells_y(0)
00036   , tactile_array(_alloc)
00037   {
00038   }
00039 
00040   typedef uint32_t _matrix_id_type;
00041   uint32_t matrix_id;
00042 
00043   typedef int16_t _cells_x_type;
00044   int16_t cells_x;
00045 
00046   typedef int16_t _cells_y_type;
00047   int16_t cells_y;
00048 
00049   typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other >  _tactile_array_type;
00050   std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other >  tactile_array;
00051 
00052 
00053   typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct TactileMatrix
00057 typedef  ::schunk_sdh::TactileMatrix_<std::allocator<void> > TactileMatrix;
00058 
00059 typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix> TactileMatrixPtr;
00060 typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix const> TactileMatrixConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::schunk_sdh::TactileMatrix_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace schunk_sdh
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::schunk_sdh::TactileMatrix_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "ab718b6c1d4d719110707994d2e325e4";
00082   }
00083 
00084   static const char* value(const  ::schunk_sdh::TactileMatrix_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0xab718b6c1d4d7191ULL;
00086   static const uint64_t static_value2 = 0x10707994d2e325e4ULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "schunk_sdh/TactileMatrix";
00094   }
00095 
00096   static const char* value(const  ::schunk_sdh::TactileMatrix_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "uint32 matrix_id\n\
00104 int16 cells_x\n\
00105 int16 cells_y\n\
00106 int16[] tactile_array\n\
00107 \n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::schunk_sdh::TactileMatrix_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 } // namespace message_traits
00115 } // namespace ros
00116 
00117 namespace ros
00118 {
00119 namespace serialization
00120 {
00121 
00122 template<class ContainerAllocator> struct Serializer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >
00123 {
00124   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00125   {
00126     stream.next(m.matrix_id);
00127     stream.next(m.cells_x);
00128     stream.next(m.cells_y);
00129     stream.next(m.tactile_array);
00130   }
00131 
00132   ROS_DECLARE_ALLINONE_SERIALIZER;
00133 }; // struct TactileMatrix_
00134 } // namespace serialization
00135 } // namespace ros
00136 
00137 namespace ros
00138 {
00139 namespace message_operations
00140 {
00141 
00142 template<class ContainerAllocator>
00143 struct Printer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >
00144 {
00145   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::schunk_sdh::TactileMatrix_<ContainerAllocator> & v) 
00146   {
00147     s << indent << "matrix_id: ";
00148     Printer<uint32_t>::stream(s, indent + "  ", v.matrix_id);
00149     s << indent << "cells_x: ";
00150     Printer<int16_t>::stream(s, indent + "  ", v.cells_x);
00151     s << indent << "cells_y: ";
00152     Printer<int16_t>::stream(s, indent + "  ", v.cells_y);
00153     s << indent << "tactile_array[]" << std::endl;
00154     for (size_t i = 0; i < v.tactile_array.size(); ++i)
00155     {
00156       s << indent << "  tactile_array[" << i << "]: ";
00157       Printer<int16_t>::stream(s, indent + "  ", v.tactile_array[i]);
00158     }
00159   }
00160 };
00161 
00162 
00163 } // namespace message_operations
00164 } // namespace ros
00165 
00166 #endif // SCHUNK_SDH_MESSAGE_TACTILEMATRIX_H
00167 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


schunk_sdh
Author(s): Florian Weisshardt
autogenerated on Tue Mar 5 2013 14:44:11