00001
00002 #ifndef SKIN_DRIVER_MESSAGE_SKIN_MEAS_H
00003 #define SKIN_DRIVER_MESSAGE_SKIN_MEAS_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014
00015 namespace skin_driver
00016 {
00017 template <class ContainerAllocator>
00018 struct skin_meas_ : public ros::Message
00019 {
00020 typedef skin_meas_<ContainerAllocator> Type;
00021
00022 skin_meas_()
00023 : header()
00024 , sensor_data_msg()
00025 , sensor_number_msg(0)
00026 , readadr_hi_msg(0)
00027 , readadr_lo_msg(0)
00028 , dyn_thres_cv_msg(0)
00029 , status_go_msg(false)
00030 , status_err_msg(false)
00031 {
00032 sensor_data_msg.assign(0);
00033 }
00034
00035 skin_meas_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , sensor_data_msg()
00038 , sensor_number_msg(0)
00039 , readadr_hi_msg(0)
00040 , readadr_lo_msg(0)
00041 , dyn_thres_cv_msg(0)
00042 , status_go_msg(false)
00043 , status_err_msg(false)
00044 {
00045 sensor_data_msg.assign(0);
00046 }
00047
00048 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00049 ::std_msgs::Header_<ContainerAllocator> header;
00050
00051 typedef boost::array<uint64_t, 192> _sensor_data_msg_type;
00052 boost::array<uint64_t, 192> sensor_data_msg;
00053
00054 typedef uint8_t _sensor_number_msg_type;
00055 uint8_t sensor_number_msg;
00056
00057 typedef uint8_t _readadr_hi_msg_type;
00058 uint8_t readadr_hi_msg;
00059
00060 typedef uint8_t _readadr_lo_msg_type;
00061 uint8_t readadr_lo_msg;
00062
00063 typedef uint8_t _dyn_thres_cv_msg_type;
00064 uint8_t dyn_thres_cv_msg;
00065
00066 typedef uint8_t _status_go_msg_type;
00067 uint8_t status_go_msg;
00068
00069 typedef uint8_t _status_err_msg_type;
00070 uint8_t status_err_msg;
00071
00072
00073 ROS_DEPRECATED uint32_t get_sensor_data_msg_size() const { return (uint32_t)sensor_data_msg.size(); }
00074 private:
00075 static const char* __s_getDataType_() { return "skin_driver/skin_meas"; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00078
00079 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00080
00081 private:
00082 static const char* __s_getMD5Sum_() { return "2349bc0935a692bdbab917c574d05e82"; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00085
00086 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00087
00088 private:
00089 static const char* __s_getMessageDefinition_() { return "Header header\n\
00090 uint64[192] sensor_data_msg\n\
00091 uint8 sensor_number_msg\n\
00092 uint8 readadr_hi_msg\n\
00093 uint8 readadr_lo_msg\n\
00094 uint8 dyn_thres_cv_msg\n\
00095 bool status_go_msg\n\
00096 bool status_err_msg\n\
00097 ================================================================================\n\
00098 MSG: std_msgs/Header\n\
00099 # Standard metadata for higher-level stamped data types.\n\
00100 # This is generally used to communicate timestamped data \n\
00101 # in a particular coordinate frame.\n\
00102 # \n\
00103 # sequence ID: consecutively increasing ID \n\
00104 uint32 seq\n\
00105 #Two-integer timestamp that is expressed as:\n\
00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00108 # time-handling sugar is provided by the client library\n\
00109 time stamp\n\
00110 #Frame this data is associated with\n\
00111 # 0: no frame\n\
00112 # 1: global frame\n\
00113 string frame_id\n\
00114 \n\
00115 "; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00118
00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00120
00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00122 {
00123 ros::serialization::OStream stream(write_ptr, 1000000000);
00124 ros::serialization::serialize(stream, header);
00125 ros::serialization::serialize(stream, sensor_data_msg);
00126 ros::serialization::serialize(stream, sensor_number_msg);
00127 ros::serialization::serialize(stream, readadr_hi_msg);
00128 ros::serialization::serialize(stream, readadr_lo_msg);
00129 ros::serialization::serialize(stream, dyn_thres_cv_msg);
00130 ros::serialization::serialize(stream, status_go_msg);
00131 ros::serialization::serialize(stream, status_err_msg);
00132 return stream.getData();
00133 }
00134
00135 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00136 {
00137 ros::serialization::IStream stream(read_ptr, 1000000000);
00138 ros::serialization::deserialize(stream, header);
00139 ros::serialization::deserialize(stream, sensor_data_msg);
00140 ros::serialization::deserialize(stream, sensor_number_msg);
00141 ros::serialization::deserialize(stream, readadr_hi_msg);
00142 ros::serialization::deserialize(stream, readadr_lo_msg);
00143 ros::serialization::deserialize(stream, dyn_thres_cv_msg);
00144 ros::serialization::deserialize(stream, status_go_msg);
00145 ros::serialization::deserialize(stream, status_err_msg);
00146 return stream.getData();
00147 }
00148
00149 ROS_DEPRECATED virtual uint32_t serializationLength() const
00150 {
00151 uint32_t size = 0;
00152 size += ros::serialization::serializationLength(header);
00153 size += ros::serialization::serializationLength(sensor_data_msg);
00154 size += ros::serialization::serializationLength(sensor_number_msg);
00155 size += ros::serialization::serializationLength(readadr_hi_msg);
00156 size += ros::serialization::serializationLength(readadr_lo_msg);
00157 size += ros::serialization::serializationLength(dyn_thres_cv_msg);
00158 size += ros::serialization::serializationLength(status_go_msg);
00159 size += ros::serialization::serializationLength(status_err_msg);
00160 return size;
00161 }
00162
00163 typedef boost::shared_ptr< ::skin_driver::skin_meas_<ContainerAllocator> > Ptr;
00164 typedef boost::shared_ptr< ::skin_driver::skin_meas_<ContainerAllocator> const> ConstPtr;
00165 };
00166 typedef ::skin_driver::skin_meas_<std::allocator<void> > skin_meas;
00167
00168 typedef boost::shared_ptr< ::skin_driver::skin_meas> skin_measPtr;
00169 typedef boost::shared_ptr< ::skin_driver::skin_meas const> skin_measConstPtr;
00170
00171
00172 template<typename ContainerAllocator>
00173 std::ostream& operator<<(std::ostream& s, const ::skin_driver::skin_meas_<ContainerAllocator> & v)
00174 {
00175 ros::message_operations::Printer< ::skin_driver::skin_meas_<ContainerAllocator> >::stream(s, "", v);
00176 return s;}
00177
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_traits
00183 {
00184 template<class ContainerAllocator>
00185 struct MD5Sum< ::skin_driver::skin_meas_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "2349bc0935a692bdbab917c574d05e82";
00189 }
00190
00191 static const char* value(const ::skin_driver::skin_meas_<ContainerAllocator> &) { return value(); }
00192 static const uint64_t static_value1 = 0x2349bc0935a692bdULL;
00193 static const uint64_t static_value2 = 0xbab917c574d05e82ULL;
00194 };
00195
00196 template<class ContainerAllocator>
00197 struct DataType< ::skin_driver::skin_meas_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "skin_driver/skin_meas";
00201 }
00202
00203 static const char* value(const ::skin_driver::skin_meas_<ContainerAllocator> &) { return value(); }
00204 };
00205
00206 template<class ContainerAllocator>
00207 struct Definition< ::skin_driver::skin_meas_<ContainerAllocator> > {
00208 static const char* value()
00209 {
00210 return "Header header\n\
00211 uint64[192] sensor_data_msg\n\
00212 uint8 sensor_number_msg\n\
00213 uint8 readadr_hi_msg\n\
00214 uint8 readadr_lo_msg\n\
00215 uint8 dyn_thres_cv_msg\n\
00216 bool status_go_msg\n\
00217 bool status_err_msg\n\
00218 ================================================================================\n\
00219 MSG: std_msgs/Header\n\
00220 # Standard metadata for higher-level stamped data types.\n\
00221 # This is generally used to communicate timestamped data \n\
00222 # in a particular coordinate frame.\n\
00223 # \n\
00224 # sequence ID: consecutively increasing ID \n\
00225 uint32 seq\n\
00226 #Two-integer timestamp that is expressed as:\n\
00227 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00228 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00229 # time-handling sugar is provided by the client library\n\
00230 time stamp\n\
00231 #Frame this data is associated with\n\
00232 # 0: no frame\n\
00233 # 1: global frame\n\
00234 string frame_id\n\
00235 \n\
00236 ";
00237 }
00238
00239 static const char* value(const ::skin_driver::skin_meas_<ContainerAllocator> &) { return value(); }
00240 };
00241
00242 template<class ContainerAllocator> struct HasHeader< ::skin_driver::skin_meas_<ContainerAllocator> > : public TrueType {};
00243 template<class ContainerAllocator> struct HasHeader< const ::skin_driver::skin_meas_<ContainerAllocator> > : public TrueType {};
00244 }
00245 }
00246
00247 namespace ros
00248 {
00249 namespace serialization
00250 {
00251
00252 template<class ContainerAllocator> struct Serializer< ::skin_driver::skin_meas_<ContainerAllocator> >
00253 {
00254 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00255 {
00256 stream.next(m.header);
00257 stream.next(m.sensor_data_msg);
00258 stream.next(m.sensor_number_msg);
00259 stream.next(m.readadr_hi_msg);
00260 stream.next(m.readadr_lo_msg);
00261 stream.next(m.dyn_thres_cv_msg);
00262 stream.next(m.status_go_msg);
00263 stream.next(m.status_err_msg);
00264 }
00265
00266 ROS_DECLARE_ALLINONE_SERIALIZER;
00267 };
00268 }
00269 }
00270
00271 namespace ros
00272 {
00273 namespace message_operations
00274 {
00275
00276 template<class ContainerAllocator>
00277 struct Printer< ::skin_driver::skin_meas_<ContainerAllocator> >
00278 {
00279 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::skin_driver::skin_meas_<ContainerAllocator> & v)
00280 {
00281 s << indent << "header: ";
00282 s << std::endl;
00283 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00284 s << indent << "sensor_data_msg[]" << std::endl;
00285 for (size_t i = 0; i < v.sensor_data_msg.size(); ++i)
00286 {
00287 s << indent << " sensor_data_msg[" << i << "]: ";
00288 Printer<uint64_t>::stream(s, indent + " ", v.sensor_data_msg[i]);
00289 }
00290 s << indent << "sensor_number_msg: ";
00291 Printer<uint8_t>::stream(s, indent + " ", v.sensor_number_msg);
00292 s << indent << "readadr_hi_msg: ";
00293 Printer<uint8_t>::stream(s, indent + " ", v.readadr_hi_msg);
00294 s << indent << "readadr_lo_msg: ";
00295 Printer<uint8_t>::stream(s, indent + " ", v.readadr_lo_msg);
00296 s << indent << "dyn_thres_cv_msg: ";
00297 Printer<uint8_t>::stream(s, indent + " ", v.dyn_thres_cv_msg);
00298 s << indent << "status_go_msg: ";
00299 Printer<uint8_t>::stream(s, indent + " ", v.status_go_msg);
00300 s << indent << "status_err_msg: ";
00301 Printer<uint8_t>::stream(s, indent + " ", v.status_err_msg);
00302 }
00303 };
00304
00305
00306 }
00307 }
00308
00309 #endif // SKIN_DRIVER_MESSAGE_SKIN_MEAS_H
00310