$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-schunk_modular_robotics/doc_stacks/2013-03-02_13-30-01.759389/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 ROS_DEPRECATED uint32_t get_tactile_array_size() const { return (uint32_t)tactile_array.size(); } 00054 ROS_DEPRECATED void set_tactile_array_size(uint32_t size) { tactile_array.resize((size_t)size); } 00055 ROS_DEPRECATED void get_tactile_array_vec(std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) const { vec = this->tactile_array; } 00056 ROS_DEPRECATED void set_tactile_array_vec(const std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) { this->tactile_array = vec; } 00057 private: 00058 static const char* __s_getDataType_() { return "schunk_sdh/TactileMatrix"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "ab718b6c1d4d719110707994d2e325e4"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getMessageDefinition_() { return "uint32 matrix_id\n\ 00073 int16 cells_x\n\ 00074 int16 cells_y\n\ 00075 int16[] tactile_array\n\ 00076 \n\ 00077 "; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00084 { 00085 ros::serialization::OStream stream(write_ptr, 1000000000); 00086 ros::serialization::serialize(stream, matrix_id); 00087 ros::serialization::serialize(stream, cells_x); 00088 ros::serialization::serialize(stream, cells_y); 00089 ros::serialization::serialize(stream, tactile_array); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00094 { 00095 ros::serialization::IStream stream(read_ptr, 1000000000); 00096 ros::serialization::deserialize(stream, matrix_id); 00097 ros::serialization::deserialize(stream, cells_x); 00098 ros::serialization::deserialize(stream, cells_y); 00099 ros::serialization::deserialize(stream, tactile_array); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(matrix_id); 00107 size += ros::serialization::serializationLength(cells_x); 00108 size += ros::serialization::serializationLength(cells_y); 00109 size += ros::serialization::serializationLength(tactile_array); 00110 return size; 00111 } 00112 00113 typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > Ptr; 00114 typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix_<ContainerAllocator> const> ConstPtr; 00115 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00116 }; // struct TactileMatrix 00117 typedef ::schunk_sdh::TactileMatrix_<std::allocator<void> > TactileMatrix; 00118 00119 typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix> TactileMatrixPtr; 00120 typedef boost::shared_ptr< ::schunk_sdh::TactileMatrix const> TactileMatrixConstPtr; 00121 00122 00123 template<typename ContainerAllocator> 00124 std::ostream& operator<<(std::ostream& s, const ::schunk_sdh::TactileMatrix_<ContainerAllocator> & v) 00125 { 00126 ros::message_operations::Printer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::stream(s, "", v); 00127 return s;} 00128 00129 } // namespace schunk_sdh 00130 00131 namespace ros 00132 { 00133 namespace message_traits 00134 { 00135 template<class ContainerAllocator> struct IsMessage< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > : public TrueType {}; 00136 template<class ContainerAllocator> struct IsMessage< ::schunk_sdh::TactileMatrix_<ContainerAllocator> const> : public TrueType {}; 00137 template<class ContainerAllocator> 00138 struct MD5Sum< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "ab718b6c1d4d719110707994d2e325e4"; 00142 } 00143 00144 static const char* value(const ::schunk_sdh::TactileMatrix_<ContainerAllocator> &) { return value(); } 00145 static const uint64_t static_value1 = 0xab718b6c1d4d7191ULL; 00146 static const uint64_t static_value2 = 0x10707994d2e325e4ULL; 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct DataType< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "schunk_sdh/TactileMatrix"; 00154 } 00155 00156 static const char* value(const ::schunk_sdh::TactileMatrix_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct Definition< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "uint32 matrix_id\n\ 00164 int16 cells_x\n\ 00165 int16 cells_y\n\ 00166 int16[] tactile_array\n\ 00167 \n\ 00168 "; 00169 } 00170 00171 static const char* value(const ::schunk_sdh::TactileMatrix_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 } // namespace message_traits 00175 } // namespace ros 00176 00177 namespace ros 00178 { 00179 namespace serialization 00180 { 00181 00182 template<class ContainerAllocator> struct Serializer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > 00183 { 00184 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00185 { 00186 stream.next(m.matrix_id); 00187 stream.next(m.cells_x); 00188 stream.next(m.cells_y); 00189 stream.next(m.tactile_array); 00190 } 00191 00192 ROS_DECLARE_ALLINONE_SERIALIZER; 00193 }; // struct TactileMatrix_ 00194 } // namespace serialization 00195 } // namespace ros 00196 00197 namespace ros 00198 { 00199 namespace message_operations 00200 { 00201 00202 template<class ContainerAllocator> 00203 struct Printer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> > 00204 { 00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::schunk_sdh::TactileMatrix_<ContainerAllocator> & v) 00206 { 00207 s << indent << "matrix_id: "; 00208 Printer<uint32_t>::stream(s, indent + " ", v.matrix_id); 00209 s << indent << "cells_x: "; 00210 Printer<int16_t>::stream(s, indent + " ", v.cells_x); 00211 s << indent << "cells_y: "; 00212 Printer<int16_t>::stream(s, indent + " ", v.cells_y); 00213 s << indent << "tactile_array[]" << std::endl; 00214 for (size_t i = 0; i < v.tactile_array.size(); ++i) 00215 { 00216 s << indent << " tactile_array[" << i << "]: "; 00217 Printer<int16_t>::stream(s, indent + " ", v.tactile_array[i]); 00218 } 00219 } 00220 }; 00221 00222 00223 } // namespace message_operations 00224 } // namespace ros 00225 00226 #endif // SCHUNK_SDH_MESSAGE_TACTILEMATRIX_H 00227