$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/TactileSensor.msg */ 00002 #ifndef SCHUNK_SDH_MESSAGE_TACTILESENSOR_H 00003 #define SCHUNK_SDH_MESSAGE_TACTILESENSOR_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 "std_msgs/Header.h" 00018 #include "schunk_sdh/TactileMatrix.h" 00019 00020 namespace schunk_sdh 00021 { 00022 template <class ContainerAllocator> 00023 struct TactileSensor_ { 00024 typedef TactileSensor_<ContainerAllocator> Type; 00025 00026 TactileSensor_() 00027 : header() 00028 , tactile_matrix() 00029 { 00030 } 00031 00032 TactileSensor_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , tactile_matrix(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::schunk_sdh::TactileMatrix_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::other > _tactile_matrix_type; 00042 std::vector< ::schunk_sdh::TactileMatrix_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::other > tactile_matrix; 00043 00044 00045 ROS_DEPRECATED uint32_t get_tactile_matrix_size() const { return (uint32_t)tactile_matrix.size(); } 00046 ROS_DEPRECATED void set_tactile_matrix_size(uint32_t size) { tactile_matrix.resize((size_t)size); } 00047 ROS_DEPRECATED void get_tactile_matrix_vec(std::vector< ::schunk_sdh::TactileMatrix_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::other > & vec) const { vec = this->tactile_matrix; } 00048 ROS_DEPRECATED void set_tactile_matrix_vec(const std::vector< ::schunk_sdh::TactileMatrix_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::other > & vec) { this->tactile_matrix = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "schunk_sdh/TactileSensor"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "c6176a03c00cccf1b8efd3037de0d45d"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "#tactile sensor data in 2D grid\n\ 00065 Header header\n\ 00066 schunk_sdh/TactileMatrix[] tactile_matrix\n\ 00067 \n\ 00068 ================================================================================\n\ 00069 MSG: std_msgs/Header\n\ 00070 # Standard metadata for higher-level stamped data types.\n\ 00071 # This is generally used to communicate timestamped data \n\ 00072 # in a particular coordinate frame.\n\ 00073 # \n\ 00074 # sequence ID: consecutively increasing ID \n\ 00075 uint32 seq\n\ 00076 #Two-integer timestamp that is expressed as:\n\ 00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00079 # time-handling sugar is provided by the client library\n\ 00080 time stamp\n\ 00081 #Frame this data is associated with\n\ 00082 # 0: no frame\n\ 00083 # 1: global frame\n\ 00084 string frame_id\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: schunk_sdh/TactileMatrix\n\ 00088 uint32 matrix_id\n\ 00089 int16 cells_x\n\ 00090 int16 cells_y\n\ 00091 int16[] tactile_array\n\ 00092 \n\ 00093 "; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00100 { 00101 ros::serialization::OStream stream(write_ptr, 1000000000); 00102 ros::serialization::serialize(stream, header); 00103 ros::serialization::serialize(stream, tactile_matrix); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, header); 00111 ros::serialization::deserialize(stream, tactile_matrix); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint32_t serializationLength() const 00116 { 00117 uint32_t size = 0; 00118 size += ros::serialization::serializationLength(header); 00119 size += ros::serialization::serializationLength(tactile_matrix); 00120 return size; 00121 } 00122 00123 typedef boost::shared_ptr< ::schunk_sdh::TactileSensor_<ContainerAllocator> > Ptr; 00124 typedef boost::shared_ptr< ::schunk_sdh::TactileSensor_<ContainerAllocator> const> ConstPtr; 00125 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00126 }; // struct TactileSensor 00127 typedef ::schunk_sdh::TactileSensor_<std::allocator<void> > TactileSensor; 00128 00129 typedef boost::shared_ptr< ::schunk_sdh::TactileSensor> TactileSensorPtr; 00130 typedef boost::shared_ptr< ::schunk_sdh::TactileSensor const> TactileSensorConstPtr; 00131 00132 00133 template<typename ContainerAllocator> 00134 std::ostream& operator<<(std::ostream& s, const ::schunk_sdh::TactileSensor_<ContainerAllocator> & v) 00135 { 00136 ros::message_operations::Printer< ::schunk_sdh::TactileSensor_<ContainerAllocator> >::stream(s, "", v); 00137 return s;} 00138 00139 } // namespace schunk_sdh 00140 00141 namespace ros 00142 { 00143 namespace message_traits 00144 { 00145 template<class ContainerAllocator> struct IsMessage< ::schunk_sdh::TactileSensor_<ContainerAllocator> > : public TrueType {}; 00146 template<class ContainerAllocator> struct IsMessage< ::schunk_sdh::TactileSensor_<ContainerAllocator> const> : public TrueType {}; 00147 template<class ContainerAllocator> 00148 struct MD5Sum< ::schunk_sdh::TactileSensor_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "c6176a03c00cccf1b8efd3037de0d45d"; 00152 } 00153 00154 static const char* value(const ::schunk_sdh::TactileSensor_<ContainerAllocator> &) { return value(); } 00155 static const uint64_t static_value1 = 0xc6176a03c00cccf1ULL; 00156 static const uint64_t static_value2 = 0xb8efd3037de0d45dULL; 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct DataType< ::schunk_sdh::TactileSensor_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "schunk_sdh/TactileSensor"; 00164 } 00165 00166 static const char* value(const ::schunk_sdh::TactileSensor_<ContainerAllocator> &) { return value(); } 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct Definition< ::schunk_sdh::TactileSensor_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "#tactile sensor data in 2D grid\n\ 00174 Header header\n\ 00175 schunk_sdh/TactileMatrix[] tactile_matrix\n\ 00176 \n\ 00177 ================================================================================\n\ 00178 MSG: std_msgs/Header\n\ 00179 # Standard metadata for higher-level stamped data types.\n\ 00180 # This is generally used to communicate timestamped data \n\ 00181 # in a particular coordinate frame.\n\ 00182 # \n\ 00183 # sequence ID: consecutively increasing ID \n\ 00184 uint32 seq\n\ 00185 #Two-integer timestamp that is expressed as:\n\ 00186 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00187 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00188 # time-handling sugar is provided by the client library\n\ 00189 time stamp\n\ 00190 #Frame this data is associated with\n\ 00191 # 0: no frame\n\ 00192 # 1: global frame\n\ 00193 string frame_id\n\ 00194 \n\ 00195 ================================================================================\n\ 00196 MSG: schunk_sdh/TactileMatrix\n\ 00197 uint32 matrix_id\n\ 00198 int16 cells_x\n\ 00199 int16 cells_y\n\ 00200 int16[] tactile_array\n\ 00201 \n\ 00202 "; 00203 } 00204 00205 static const char* value(const ::schunk_sdh::TactileSensor_<ContainerAllocator> &) { return value(); } 00206 }; 00207 00208 template<class ContainerAllocator> struct HasHeader< ::schunk_sdh::TactileSensor_<ContainerAllocator> > : public TrueType {}; 00209 template<class ContainerAllocator> struct HasHeader< const ::schunk_sdh::TactileSensor_<ContainerAllocator> > : public TrueType {}; 00210 } // namespace message_traits 00211 } // namespace ros 00212 00213 namespace ros 00214 { 00215 namespace serialization 00216 { 00217 00218 template<class ContainerAllocator> struct Serializer< ::schunk_sdh::TactileSensor_<ContainerAllocator> > 00219 { 00220 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00221 { 00222 stream.next(m.header); 00223 stream.next(m.tactile_matrix); 00224 } 00225 00226 ROS_DECLARE_ALLINONE_SERIALIZER; 00227 }; // struct TactileSensor_ 00228 } // namespace serialization 00229 } // namespace ros 00230 00231 namespace ros 00232 { 00233 namespace message_operations 00234 { 00235 00236 template<class ContainerAllocator> 00237 struct Printer< ::schunk_sdh::TactileSensor_<ContainerAllocator> > 00238 { 00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::schunk_sdh::TactileSensor_<ContainerAllocator> & v) 00240 { 00241 s << indent << "header: "; 00242 s << std::endl; 00243 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00244 s << indent << "tactile_matrix[]" << std::endl; 00245 for (size_t i = 0; i < v.tactile_matrix.size(); ++i) 00246 { 00247 s << indent << " tactile_matrix[" << i << "]: "; 00248 s << std::endl; 00249 s << indent; 00250 Printer< ::schunk_sdh::TactileMatrix_<ContainerAllocator> >::stream(s, indent + " ", v.tactile_matrix[i]); 00251 } 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // SCHUNK_SDH_MESSAGE_TACTILESENSOR_H 00260