$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/BiotacAll.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_BIOTACALL_H 00003 #define SR_ROBOT_MSGS_MESSAGE_BIOTACALL_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/Biotac.h" 00019 00020 namespace sr_robot_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct BiotacAll_ { 00024 typedef BiotacAll_<ContainerAllocator> Type; 00025 00026 BiotacAll_() 00027 : header() 00028 , tactiles() 00029 { 00030 } 00031 00032 BiotacAll_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , tactiles() 00035 { 00036 tactiles.assign( ::sr_robot_msgs::Biotac_<ContainerAllocator> (_alloc)); 00037 } 00038 00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00040 ::std_msgs::Header_<ContainerAllocator> header; 00041 00042 typedef boost::array< ::sr_robot_msgs::Biotac_<ContainerAllocator> , 5> _tactiles_type; 00043 boost::array< ::sr_robot_msgs::Biotac_<ContainerAllocator> , 5> tactiles; 00044 00045 00046 ROS_DEPRECATED uint32_t get_tactiles_size() const { return (uint32_t)tactiles.size(); } 00047 private: 00048 static const char* __s_getDataType_() { return "sr_robot_msgs/BiotacAll"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "47a346cfb98ba8199f53056f3ea612f1"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00063 Biotac[5] tactiles\n\ 00064 ================================================================================\n\ 00065 MSG: std_msgs/Header\n\ 00066 # Standard metadata for higher-level stamped data types.\n\ 00067 # This is generally used to communicate timestamped data \n\ 00068 # in a particular coordinate frame.\n\ 00069 # \n\ 00070 # sequence ID: consecutively increasing ID \n\ 00071 uint32 seq\n\ 00072 #Two-integer timestamp that is expressed as:\n\ 00073 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00074 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00075 # time-handling sugar is provided by the client library\n\ 00076 time stamp\n\ 00077 #Frame this data is associated with\n\ 00078 # 0: no frame\n\ 00079 # 1: global frame\n\ 00080 string frame_id\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: sr_robot_msgs/Biotac\n\ 00084 int16 pac0\n\ 00085 int16 pac1\n\ 00086 int16 pdc\n\ 00087 \n\ 00088 int16 tac\n\ 00089 int16 tdc\n\ 00090 \n\ 00091 int16[19] electrodes\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, tactiles); 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, tactiles); 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(tactiles); 00120 return size; 00121 } 00122 00123 typedef boost::shared_ptr< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > Ptr; 00124 typedef boost::shared_ptr< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> const> ConstPtr; 00125 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00126 }; // struct BiotacAll 00127 typedef ::sr_robot_msgs::BiotacAll_<std::allocator<void> > BiotacAll; 00128 00129 typedef boost::shared_ptr< ::sr_robot_msgs::BiotacAll> BiotacAllPtr; 00130 typedef boost::shared_ptr< ::sr_robot_msgs::BiotacAll const> BiotacAllConstPtr; 00131 00132 00133 template<typename ContainerAllocator> 00134 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::BiotacAll_<ContainerAllocator> & v) 00135 { 00136 ros::message_operations::Printer< ::sr_robot_msgs::BiotacAll_<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::BiotacAll_<ContainerAllocator> > : public TrueType {}; 00146 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> const> : public TrueType {}; 00147 template<class ContainerAllocator> 00148 struct MD5Sum< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "47a346cfb98ba8199f53056f3ea612f1"; 00152 } 00153 00154 static const char* value(const ::sr_robot_msgs::BiotacAll_<ContainerAllocator> &) { return value(); } 00155 static const uint64_t static_value1 = 0x47a346cfb98ba819ULL; 00156 static const uint64_t static_value2 = 0x9f53056f3ea612f1ULL; 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct DataType< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "sr_robot_msgs/BiotacAll"; 00164 } 00165 00166 static const char* value(const ::sr_robot_msgs::BiotacAll_<ContainerAllocator> &) { return value(); } 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct Definition< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "Header header\n\ 00174 Biotac[5] tactiles\n\ 00175 ================================================================================\n\ 00176 MSG: std_msgs/Header\n\ 00177 # Standard metadata for higher-level stamped data types.\n\ 00178 # This is generally used to communicate timestamped data \n\ 00179 # in a particular coordinate frame.\n\ 00180 # \n\ 00181 # sequence ID: consecutively increasing ID \n\ 00182 uint32 seq\n\ 00183 #Two-integer timestamp that is expressed as:\n\ 00184 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00185 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00186 # time-handling sugar is provided by the client library\n\ 00187 time stamp\n\ 00188 #Frame this data is associated with\n\ 00189 # 0: no frame\n\ 00190 # 1: global frame\n\ 00191 string frame_id\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: sr_robot_msgs/Biotac\n\ 00195 int16 pac0\n\ 00196 int16 pac1\n\ 00197 int16 pdc\n\ 00198 \n\ 00199 int16 tac\n\ 00200 int16 tdc\n\ 00201 \n\ 00202 int16[19] electrodes\n\ 00203 \n\ 00204 "; 00205 } 00206 00207 static const char* value(const ::sr_robot_msgs::BiotacAll_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 template<class ContainerAllocator> struct HasHeader< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > : public TrueType {}; 00211 template<class ContainerAllocator> struct HasHeader< const ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > : public TrueType {}; 00212 } // namespace message_traits 00213 } // namespace ros 00214 00215 namespace ros 00216 { 00217 namespace serialization 00218 { 00219 00220 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > 00221 { 00222 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00223 { 00224 stream.next(m.header); 00225 stream.next(m.tactiles); 00226 } 00227 00228 ROS_DECLARE_ALLINONE_SERIALIZER; 00229 }; // struct BiotacAll_ 00230 } // namespace serialization 00231 } // namespace ros 00232 00233 namespace ros 00234 { 00235 namespace message_operations 00236 { 00237 00238 template<class ContainerAllocator> 00239 struct Printer< ::sr_robot_msgs::BiotacAll_<ContainerAllocator> > 00240 { 00241 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::BiotacAll_<ContainerAllocator> & v) 00242 { 00243 s << indent << "header: "; 00244 s << std::endl; 00245 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00246 s << indent << "tactiles[]" << std::endl; 00247 for (size_t i = 0; i < v.tactiles.size(); ++i) 00248 { 00249 s << indent << " tactiles[" << i << "]: "; 00250 s << std::endl; 00251 s << indent; 00252 Printer< ::sr_robot_msgs::Biotac_<ContainerAllocator> >::stream(s, indent + " ", v.tactiles[i]); 00253 } 00254 } 00255 }; 00256 00257 00258 } // namespace message_operations 00259 } // namespace ros 00260 00261 #endif // SR_ROBOT_MSGS_MESSAGE_BIOTACALL_H 00262