$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/msg/TactileArray.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_TACTILEARRAY_H 00003 #define SR_ROBOT_MSGS_MESSAGE_TACTILEARRAY_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 "sr_robot_msgs/Tactile.h" 00019 00020 namespace sr_robot_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct TactileArray_ { 00024 typedef TactileArray_<ContainerAllocator> Type; 00025 00026 TactileArray_() 00027 : header() 00028 , data() 00029 { 00030 } 00031 00032 TactileArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , data(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::sr_robot_msgs::Tactile_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::Tactile_<ContainerAllocator> >::other > _data_type; 00042 std::vector< ::sr_robot_msgs::Tactile_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::Tactile_<ContainerAllocator> >::other > data; 00043 00044 00045 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00046 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00047 ROS_DEPRECATED void get_data_vec(std::vector< ::sr_robot_msgs::Tactile_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::Tactile_<ContainerAllocator> >::other > & vec) const { vec = this->data; } 00048 ROS_DEPRECATED void set_data_vec(const std::vector< ::sr_robot_msgs::Tactile_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::Tactile_<ContainerAllocator> >::other > & vec) { this->data = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "sr_robot_msgs/TactileArray"; } 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 "294a763b90cb1a333d263f2097d3254e"; } 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 "Header header\n\ 00065 Tactile[] data\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: sr_robot_msgs/Tactile\n\ 00087 std_msgs/Int16[] data\n\ 00088 \n\ 00089 ================================================================================\n\ 00090 MSG: std_msgs/Int16\n\ 00091 int16 data\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, data); 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, data); 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(data); 00120 return size; 00121 } 00122 00123 typedef boost::shared_ptr< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > Ptr; 00124 typedef boost::shared_ptr< ::sr_robot_msgs::TactileArray_<ContainerAllocator> const> ConstPtr; 00125 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00126 }; // struct TactileArray 00127 typedef ::sr_robot_msgs::TactileArray_<std::allocator<void> > TactileArray; 00128 00129 typedef boost::shared_ptr< ::sr_robot_msgs::TactileArray> TactileArrayPtr; 00130 typedef boost::shared_ptr< ::sr_robot_msgs::TactileArray const> TactileArrayConstPtr; 00131 00132 00133 template<typename ContainerAllocator> 00134 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::TactileArray_<ContainerAllocator> & v) 00135 { 00136 ros::message_operations::Printer< ::sr_robot_msgs::TactileArray_<ContainerAllocator> >::stream(s, "", v); 00137 return s;} 00138 00139 } // namespace sr_robot_msgs 00140 00141 namespace ros 00142 { 00143 namespace message_traits 00144 { 00145 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > : public TrueType {}; 00146 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::TactileArray_<ContainerAllocator> const> : public TrueType {}; 00147 template<class ContainerAllocator> 00148 struct MD5Sum< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "294a763b90cb1a333d263f2097d3254e"; 00152 } 00153 00154 static const char* value(const ::sr_robot_msgs::TactileArray_<ContainerAllocator> &) { return value(); } 00155 static const uint64_t static_value1 = 0x294a763b90cb1a33ULL; 00156 static const uint64_t static_value2 = 0x3d263f2097d3254eULL; 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct DataType< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "sr_robot_msgs/TactileArray"; 00164 } 00165 00166 static const char* value(const ::sr_robot_msgs::TactileArray_<ContainerAllocator> &) { return value(); } 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct Definition< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "Header header\n\ 00174 Tactile[] data\n\ 00175 \n\ 00176 ================================================================================\n\ 00177 MSG: std_msgs/Header\n\ 00178 # Standard metadata for higher-level stamped data types.\n\ 00179 # This is generally used to communicate timestamped data \n\ 00180 # in a particular coordinate frame.\n\ 00181 # \n\ 00182 # sequence ID: consecutively increasing ID \n\ 00183 uint32 seq\n\ 00184 #Two-integer timestamp that is expressed as:\n\ 00185 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00186 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00187 # time-handling sugar is provided by the client library\n\ 00188 time stamp\n\ 00189 #Frame this data is associated with\n\ 00190 # 0: no frame\n\ 00191 # 1: global frame\n\ 00192 string frame_id\n\ 00193 \n\ 00194 ================================================================================\n\ 00195 MSG: sr_robot_msgs/Tactile\n\ 00196 std_msgs/Int16[] data\n\ 00197 \n\ 00198 ================================================================================\n\ 00199 MSG: std_msgs/Int16\n\ 00200 int16 data\n\ 00201 \n\ 00202 "; 00203 } 00204 00205 static const char* value(const ::sr_robot_msgs::TactileArray_<ContainerAllocator> &) { return value(); } 00206 }; 00207 00208 template<class ContainerAllocator> struct HasHeader< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > : public TrueType {}; 00209 template<class ContainerAllocator> struct HasHeader< const ::sr_robot_msgs::TactileArray_<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< ::sr_robot_msgs::TactileArray_<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.data); 00224 } 00225 00226 ROS_DECLARE_ALLINONE_SERIALIZER; 00227 }; // struct TactileArray_ 00228 } // namespace serialization 00229 } // namespace ros 00230 00231 namespace ros 00232 { 00233 namespace message_operations 00234 { 00235 00236 template<class ContainerAllocator> 00237 struct Printer< ::sr_robot_msgs::TactileArray_<ContainerAllocator> > 00238 { 00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::TactileArray_<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 << "data[]" << std::endl; 00245 for (size_t i = 0; i < v.data.size(); ++i) 00246 { 00247 s << indent << " data[" << i << "]: "; 00248 s << std::endl; 00249 s << indent; 00250 Printer< ::sr_robot_msgs::Tactile_<ContainerAllocator> >::stream(s, indent + " ", v.data[i]); 00251 } 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // SR_ROBOT_MSGS_MESSAGE_TACTILEARRAY_H 00260