$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_ethercat_drivers/doc_stacks/2013-03-01_16-48-09.984649/pr2_ethercat_drivers/ethercat_hardware/msg/RawFTData.msg */ 00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_RAWFTDATA_H 00003 #define ETHERCAT_HARDWARE_MESSAGE_RAWFTDATA_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 "ethercat_hardware/RawFTDataSample.h" 00018 00019 namespace ethercat_hardware 00020 { 00021 template <class ContainerAllocator> 00022 struct RawFTData_ { 00023 typedef RawFTData_<ContainerAllocator> Type; 00024 00025 RawFTData_() 00026 : samples() 00027 , sample_count(0) 00028 , missed_samples(0) 00029 { 00030 } 00031 00032 RawFTData_(const ContainerAllocator& _alloc) 00033 : samples(_alloc) 00034 , sample_count(0) 00035 , missed_samples(0) 00036 { 00037 } 00038 00039 typedef std::vector< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >::other > _samples_type; 00040 std::vector< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >::other > samples; 00041 00042 typedef int64_t _sample_count_type; 00043 int64_t sample_count; 00044 00045 typedef int64_t _missed_samples_type; 00046 int64_t missed_samples; 00047 00048 00049 ROS_DEPRECATED uint32_t get_samples_size() const { return (uint32_t)samples.size(); } 00050 ROS_DEPRECATED void set_samples_size(uint32_t size) { samples.resize((size_t)size); } 00051 ROS_DEPRECATED void get_samples_vec(std::vector< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >::other > & vec) const { vec = this->samples; } 00052 ROS_DEPRECATED void set_samples_vec(const std::vector< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >::other > & vec) { this->samples = vec; } 00053 private: 00054 static const char* __s_getDataType_() { return "ethercat_hardware/RawFTData"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "85f5ed45095367bfb8fb2e57954c0b89"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# Raw Data from WG035 F/T input via WG006 (gripper MCB).\n\ 00069 RawFTDataSample[] samples # The realtime loop receives upto 4 new samples each 1hKhz cycle \n\ 00070 int64 sample_count # Counts number of samples\n\ 00071 int64 missed_samples # Counts number of samples that were missed\n\ 00072 ================================================================================\n\ 00073 MSG: ethercat_hardware/RawFTDataSample\n\ 00074 # One raw Data sample from WG035 F/T input via WG006 (gripper MCB).\n\ 00075 uint64 sample_count\n\ 00076 int16[] data\n\ 00077 uint16 vhalf\n\ 00078 "; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00085 { 00086 ros::serialization::OStream stream(write_ptr, 1000000000); 00087 ros::serialization::serialize(stream, samples); 00088 ros::serialization::serialize(stream, sample_count); 00089 ros::serialization::serialize(stream, missed_samples); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00094 { 00095 ros::serialization::IStream stream(read_ptr, 1000000000); 00096 ros::serialization::deserialize(stream, samples); 00097 ros::serialization::deserialize(stream, sample_count); 00098 ros::serialization::deserialize(stream, missed_samples); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(samples); 00106 size += ros::serialization::serializationLength(sample_count); 00107 size += ros::serialization::serializationLength(missed_samples); 00108 return size; 00109 } 00110 00111 typedef boost::shared_ptr< ::ethercat_hardware::RawFTData_<ContainerAllocator> > Ptr; 00112 typedef boost::shared_ptr< ::ethercat_hardware::RawFTData_<ContainerAllocator> const> ConstPtr; 00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00114 }; // struct RawFTData 00115 typedef ::ethercat_hardware::RawFTData_<std::allocator<void> > RawFTData; 00116 00117 typedef boost::shared_ptr< ::ethercat_hardware::RawFTData> RawFTDataPtr; 00118 typedef boost::shared_ptr< ::ethercat_hardware::RawFTData const> RawFTDataConstPtr; 00119 00120 00121 template<typename ContainerAllocator> 00122 std::ostream& operator<<(std::ostream& s, const ::ethercat_hardware::RawFTData_<ContainerAllocator> & v) 00123 { 00124 ros::message_operations::Printer< ::ethercat_hardware::RawFTData_<ContainerAllocator> >::stream(s, "", v); 00125 return s;} 00126 00127 } // namespace ethercat_hardware 00128 00129 namespace ros 00130 { 00131 namespace message_traits 00132 { 00133 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::RawFTData_<ContainerAllocator> > : public TrueType {}; 00134 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::RawFTData_<ContainerAllocator> const> : public TrueType {}; 00135 template<class ContainerAllocator> 00136 struct MD5Sum< ::ethercat_hardware::RawFTData_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "85f5ed45095367bfb8fb2e57954c0b89"; 00140 } 00141 00142 static const char* value(const ::ethercat_hardware::RawFTData_<ContainerAllocator> &) { return value(); } 00143 static const uint64_t static_value1 = 0x85f5ed45095367bfULL; 00144 static const uint64_t static_value2 = 0xb8fb2e57954c0b89ULL; 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct DataType< ::ethercat_hardware::RawFTData_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "ethercat_hardware/RawFTData"; 00152 } 00153 00154 static const char* value(const ::ethercat_hardware::RawFTData_<ContainerAllocator> &) { return value(); } 00155 }; 00156 00157 template<class ContainerAllocator> 00158 struct Definition< ::ethercat_hardware::RawFTData_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "# Raw Data from WG035 F/T input via WG006 (gripper MCB).\n\ 00162 RawFTDataSample[] samples # The realtime loop receives upto 4 new samples each 1hKhz cycle \n\ 00163 int64 sample_count # Counts number of samples\n\ 00164 int64 missed_samples # Counts number of samples that were missed\n\ 00165 ================================================================================\n\ 00166 MSG: ethercat_hardware/RawFTDataSample\n\ 00167 # One raw Data sample from WG035 F/T input via WG006 (gripper MCB).\n\ 00168 uint64 sample_count\n\ 00169 int16[] data\n\ 00170 uint16 vhalf\n\ 00171 "; 00172 } 00173 00174 static const char* value(const ::ethercat_hardware::RawFTData_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 } // namespace message_traits 00178 } // namespace ros 00179 00180 namespace ros 00181 { 00182 namespace serialization 00183 { 00184 00185 template<class ContainerAllocator> struct Serializer< ::ethercat_hardware::RawFTData_<ContainerAllocator> > 00186 { 00187 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00188 { 00189 stream.next(m.samples); 00190 stream.next(m.sample_count); 00191 stream.next(m.missed_samples); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct RawFTData_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::ethercat_hardware::RawFTData_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ethercat_hardware::RawFTData_<ContainerAllocator> & v) 00208 { 00209 s << indent << "samples[]" << std::endl; 00210 for (size_t i = 0; i < v.samples.size(); ++i) 00211 { 00212 s << indent << " samples[" << i << "]: "; 00213 s << std::endl; 00214 s << indent; 00215 Printer< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >::stream(s, indent + " ", v.samples[i]); 00216 } 00217 s << indent << "sample_count: "; 00218 Printer<int64_t>::stream(s, indent + " ", v.sample_count); 00219 s << indent << "missed_samples: "; 00220 Printer<int64_t>::stream(s, indent + " ", v.missed_samples); 00221 } 00222 }; 00223 00224 00225 } // namespace message_operations 00226 } // namespace ros 00227 00228 #endif // ETHERCAT_HARDWARE_MESSAGE_RAWFTDATA_H 00229