$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/Biotac.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_BIOTAC_H 00003 #define SR_ROBOT_MSGS_MESSAGE_BIOTAC_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 sr_robot_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct Biotac_ { 00022 typedef Biotac_<ContainerAllocator> Type; 00023 00024 Biotac_() 00025 : pac0(0) 00026 , pac1(0) 00027 , pdc(0) 00028 , tac(0) 00029 , tdc(0) 00030 , electrodes() 00031 { 00032 electrodes.assign(0); 00033 } 00034 00035 Biotac_(const ContainerAllocator& _alloc) 00036 : pac0(0) 00037 , pac1(0) 00038 , pdc(0) 00039 , tac(0) 00040 , tdc(0) 00041 , electrodes() 00042 { 00043 electrodes.assign(0); 00044 } 00045 00046 typedef int16_t _pac0_type; 00047 int16_t pac0; 00048 00049 typedef int16_t _pac1_type; 00050 int16_t pac1; 00051 00052 typedef int16_t _pdc_type; 00053 int16_t pdc; 00054 00055 typedef int16_t _tac_type; 00056 int16_t tac; 00057 00058 typedef int16_t _tdc_type; 00059 int16_t tdc; 00060 00061 typedef boost::array<int16_t, 19> _electrodes_type; 00062 boost::array<int16_t, 19> electrodes; 00063 00064 00065 ROS_DEPRECATED uint32_t get_electrodes_size() const { return (uint32_t)electrodes.size(); } 00066 private: 00067 static const char* __s_getDataType_() { return "sr_robot_msgs/Biotac"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "45887a982dc5cee83be90c94c9db9f12"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "int16 pac0\n\ 00082 int16 pac1\n\ 00083 int16 pdc\n\ 00084 \n\ 00085 int16 tac\n\ 00086 int16 tdc\n\ 00087 \n\ 00088 int16[19] electrodes\n\ 00089 \n\ 00090 "; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00097 { 00098 ros::serialization::OStream stream(write_ptr, 1000000000); 00099 ros::serialization::serialize(stream, pac0); 00100 ros::serialization::serialize(stream, pac1); 00101 ros::serialization::serialize(stream, pdc); 00102 ros::serialization::serialize(stream, tac); 00103 ros::serialization::serialize(stream, tdc); 00104 ros::serialization::serialize(stream, electrodes); 00105 return stream.getData(); 00106 } 00107 00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00109 { 00110 ros::serialization::IStream stream(read_ptr, 1000000000); 00111 ros::serialization::deserialize(stream, pac0); 00112 ros::serialization::deserialize(stream, pac1); 00113 ros::serialization::deserialize(stream, pdc); 00114 ros::serialization::deserialize(stream, tac); 00115 ros::serialization::deserialize(stream, tdc); 00116 ros::serialization::deserialize(stream, electrodes); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint32_t serializationLength() const 00121 { 00122 uint32_t size = 0; 00123 size += ros::serialization::serializationLength(pac0); 00124 size += ros::serialization::serializationLength(pac1); 00125 size += ros::serialization::serializationLength(pdc); 00126 size += ros::serialization::serializationLength(tac); 00127 size += ros::serialization::serializationLength(tdc); 00128 size += ros::serialization::serializationLength(electrodes); 00129 return size; 00130 } 00131 00132 typedef boost::shared_ptr< ::sr_robot_msgs::Biotac_<ContainerAllocator> > Ptr; 00133 typedef boost::shared_ptr< ::sr_robot_msgs::Biotac_<ContainerAllocator> const> ConstPtr; 00134 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00135 }; // struct Biotac 00136 typedef ::sr_robot_msgs::Biotac_<std::allocator<void> > Biotac; 00137 00138 typedef boost::shared_ptr< ::sr_robot_msgs::Biotac> BiotacPtr; 00139 typedef boost::shared_ptr< ::sr_robot_msgs::Biotac const> BiotacConstPtr; 00140 00141 00142 template<typename ContainerAllocator> 00143 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::Biotac_<ContainerAllocator> & v) 00144 { 00145 ros::message_operations::Printer< ::sr_robot_msgs::Biotac_<ContainerAllocator> >::stream(s, "", v); 00146 return s;} 00147 00148 } // namespace sr_robot_msgs 00149 00150 namespace ros 00151 { 00152 namespace message_traits 00153 { 00154 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::Biotac_<ContainerAllocator> > : public TrueType {}; 00155 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::Biotac_<ContainerAllocator> const> : public TrueType {}; 00156 template<class ContainerAllocator> 00157 struct MD5Sum< ::sr_robot_msgs::Biotac_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "45887a982dc5cee83be90c94c9db9f12"; 00161 } 00162 00163 static const char* value(const ::sr_robot_msgs::Biotac_<ContainerAllocator> &) { return value(); } 00164 static const uint64_t static_value1 = 0x45887a982dc5cee8ULL; 00165 static const uint64_t static_value2 = 0x3be90c94c9db9f12ULL; 00166 }; 00167 00168 template<class ContainerAllocator> 00169 struct DataType< ::sr_robot_msgs::Biotac_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "sr_robot_msgs/Biotac"; 00173 } 00174 00175 static const char* value(const ::sr_robot_msgs::Biotac_<ContainerAllocator> &) { return value(); } 00176 }; 00177 00178 template<class ContainerAllocator> 00179 struct Definition< ::sr_robot_msgs::Biotac_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "int16 pac0\n\ 00183 int16 pac1\n\ 00184 int16 pdc\n\ 00185 \n\ 00186 int16 tac\n\ 00187 int16 tdc\n\ 00188 \n\ 00189 int16[19] electrodes\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::sr_robot_msgs::Biotac_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::Biotac_<ContainerAllocator> > : public TrueType {}; 00198 } // namespace message_traits 00199 } // namespace ros 00200 00201 namespace ros 00202 { 00203 namespace serialization 00204 { 00205 00206 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::Biotac_<ContainerAllocator> > 00207 { 00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00209 { 00210 stream.next(m.pac0); 00211 stream.next(m.pac1); 00212 stream.next(m.pdc); 00213 stream.next(m.tac); 00214 stream.next(m.tdc); 00215 stream.next(m.electrodes); 00216 } 00217 00218 ROS_DECLARE_ALLINONE_SERIALIZER; 00219 }; // struct Biotac_ 00220 } // namespace serialization 00221 } // namespace ros 00222 00223 namespace ros 00224 { 00225 namespace message_operations 00226 { 00227 00228 template<class ContainerAllocator> 00229 struct Printer< ::sr_robot_msgs::Biotac_<ContainerAllocator> > 00230 { 00231 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::Biotac_<ContainerAllocator> & v) 00232 { 00233 s << indent << "pac0: "; 00234 Printer<int16_t>::stream(s, indent + " ", v.pac0); 00235 s << indent << "pac1: "; 00236 Printer<int16_t>::stream(s, indent + " ", v.pac1); 00237 s << indent << "pdc: "; 00238 Printer<int16_t>::stream(s, indent + " ", v.pdc); 00239 s << indent << "tac: "; 00240 Printer<int16_t>::stream(s, indent + " ", v.tac); 00241 s << indent << "tdc: "; 00242 Printer<int16_t>::stream(s, indent + " ", v.tdc); 00243 s << indent << "electrodes[]" << std::endl; 00244 for (size_t i = 0; i < v.electrodes.size(); ++i) 00245 { 00246 s << indent << " electrodes[" << i << "]: "; 00247 Printer<int16_t>::stream(s, indent + " ", v.electrodes[i]); 00248 } 00249 } 00250 }; 00251 00252 00253 } // namespace message_operations 00254 } // namespace ros 00255 00256 #endif // SR_ROBOT_MSGS_MESSAGE_BIOTAC_H 00257