$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/MotorTraceSample.msg */ 00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_MOTORTRACESAMPLE_H 00003 #define ETHERCAT_HARDWARE_MESSAGE_MOTORTRACESAMPLE_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 ethercat_hardware 00019 { 00020 template <class ContainerAllocator> 00021 struct MotorTraceSample_ { 00022 typedef MotorTraceSample_<ContainerAllocator> Type; 00023 00024 MotorTraceSample_() 00025 : timestamp(0.0) 00026 , enabled(false) 00027 , supply_voltage(0.0) 00028 , measured_motor_voltage(0.0) 00029 , programmed_pwm(0.0) 00030 , executed_current(0.0) 00031 , measured_current(0.0) 00032 , velocity(0.0) 00033 , encoder_position(0.0) 00034 , encoder_error_count(0) 00035 , motor_voltage_error_limit(0.0) 00036 , filtered_motor_voltage_error(0.0) 00037 , filtered_abs_motor_voltage_error(0.0) 00038 , filtered_measured_voltage_error(0.0) 00039 , filtered_abs_measured_voltage_error(0.0) 00040 , filtered_current_error(0.0) 00041 , filtered_abs_current_error(0.0) 00042 { 00043 } 00044 00045 MotorTraceSample_(const ContainerAllocator& _alloc) 00046 : timestamp(0.0) 00047 , enabled(false) 00048 , supply_voltage(0.0) 00049 , measured_motor_voltage(0.0) 00050 , programmed_pwm(0.0) 00051 , executed_current(0.0) 00052 , measured_current(0.0) 00053 , velocity(0.0) 00054 , encoder_position(0.0) 00055 , encoder_error_count(0) 00056 , motor_voltage_error_limit(0.0) 00057 , filtered_motor_voltage_error(0.0) 00058 , filtered_abs_motor_voltage_error(0.0) 00059 , filtered_measured_voltage_error(0.0) 00060 , filtered_abs_measured_voltage_error(0.0) 00061 , filtered_current_error(0.0) 00062 , filtered_abs_current_error(0.0) 00063 { 00064 } 00065 00066 typedef double _timestamp_type; 00067 double timestamp; 00068 00069 typedef uint8_t _enabled_type; 00070 uint8_t enabled; 00071 00072 typedef double _supply_voltage_type; 00073 double supply_voltage; 00074 00075 typedef double _measured_motor_voltage_type; 00076 double measured_motor_voltage; 00077 00078 typedef double _programmed_pwm_type; 00079 double programmed_pwm; 00080 00081 typedef double _executed_current_type; 00082 double executed_current; 00083 00084 typedef double _measured_current_type; 00085 double measured_current; 00086 00087 typedef double _velocity_type; 00088 double velocity; 00089 00090 typedef double _encoder_position_type; 00091 double encoder_position; 00092 00093 typedef uint32_t _encoder_error_count_type; 00094 uint32_t encoder_error_count; 00095 00096 typedef double _motor_voltage_error_limit_type; 00097 double motor_voltage_error_limit; 00098 00099 typedef double _filtered_motor_voltage_error_type; 00100 double filtered_motor_voltage_error; 00101 00102 typedef double _filtered_abs_motor_voltage_error_type; 00103 double filtered_abs_motor_voltage_error; 00104 00105 typedef double _filtered_measured_voltage_error_type; 00106 double filtered_measured_voltage_error; 00107 00108 typedef double _filtered_abs_measured_voltage_error_type; 00109 double filtered_abs_measured_voltage_error; 00110 00111 typedef double _filtered_current_error_type; 00112 double filtered_current_error; 00113 00114 typedef double _filtered_abs_current_error_type; 00115 double filtered_abs_current_error; 00116 00117 00118 private: 00119 static const char* __s_getDataType_() { return "ethercat_hardware/MotorTraceSample"; } 00120 public: 00121 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00122 00123 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00124 00125 private: 00126 static const char* __s_getMD5Sum_() { return "3734a66334bc2033448f9c561d39c5e0"; } 00127 public: 00128 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00129 00130 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00131 00132 private: 00133 static const char* __s_getMessageDefinition_() { return "float64 timestamp\n\ 00134 bool enabled\n\ 00135 float64 supply_voltage\n\ 00136 float64 measured_motor_voltage\n\ 00137 float64 programmed_pwm\n\ 00138 float64 executed_current\n\ 00139 float64 measured_current\n\ 00140 float64 velocity\n\ 00141 float64 encoder_position\n\ 00142 uint32 encoder_error_count\n\ 00143 float64 motor_voltage_error_limit\n\ 00144 float64 filtered_motor_voltage_error\n\ 00145 float64 filtered_abs_motor_voltage_error\n\ 00146 float64 filtered_measured_voltage_error\n\ 00147 float64 filtered_abs_measured_voltage_error\n\ 00148 float64 filtered_current_error\n\ 00149 float64 filtered_abs_current_error\n\ 00150 "; } 00151 public: 00152 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00153 00154 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00155 00156 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00157 { 00158 ros::serialization::OStream stream(write_ptr, 1000000000); 00159 ros::serialization::serialize(stream, timestamp); 00160 ros::serialization::serialize(stream, enabled); 00161 ros::serialization::serialize(stream, supply_voltage); 00162 ros::serialization::serialize(stream, measured_motor_voltage); 00163 ros::serialization::serialize(stream, programmed_pwm); 00164 ros::serialization::serialize(stream, executed_current); 00165 ros::serialization::serialize(stream, measured_current); 00166 ros::serialization::serialize(stream, velocity); 00167 ros::serialization::serialize(stream, encoder_position); 00168 ros::serialization::serialize(stream, encoder_error_count); 00169 ros::serialization::serialize(stream, motor_voltage_error_limit); 00170 ros::serialization::serialize(stream, filtered_motor_voltage_error); 00171 ros::serialization::serialize(stream, filtered_abs_motor_voltage_error); 00172 ros::serialization::serialize(stream, filtered_measured_voltage_error); 00173 ros::serialization::serialize(stream, filtered_abs_measured_voltage_error); 00174 ros::serialization::serialize(stream, filtered_current_error); 00175 ros::serialization::serialize(stream, filtered_abs_current_error); 00176 return stream.getData(); 00177 } 00178 00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00180 { 00181 ros::serialization::IStream stream(read_ptr, 1000000000); 00182 ros::serialization::deserialize(stream, timestamp); 00183 ros::serialization::deserialize(stream, enabled); 00184 ros::serialization::deserialize(stream, supply_voltage); 00185 ros::serialization::deserialize(stream, measured_motor_voltage); 00186 ros::serialization::deserialize(stream, programmed_pwm); 00187 ros::serialization::deserialize(stream, executed_current); 00188 ros::serialization::deserialize(stream, measured_current); 00189 ros::serialization::deserialize(stream, velocity); 00190 ros::serialization::deserialize(stream, encoder_position); 00191 ros::serialization::deserialize(stream, encoder_error_count); 00192 ros::serialization::deserialize(stream, motor_voltage_error_limit); 00193 ros::serialization::deserialize(stream, filtered_motor_voltage_error); 00194 ros::serialization::deserialize(stream, filtered_abs_motor_voltage_error); 00195 ros::serialization::deserialize(stream, filtered_measured_voltage_error); 00196 ros::serialization::deserialize(stream, filtered_abs_measured_voltage_error); 00197 ros::serialization::deserialize(stream, filtered_current_error); 00198 ros::serialization::deserialize(stream, filtered_abs_current_error); 00199 return stream.getData(); 00200 } 00201 00202 ROS_DEPRECATED virtual uint32_t serializationLength() const 00203 { 00204 uint32_t size = 0; 00205 size += ros::serialization::serializationLength(timestamp); 00206 size += ros::serialization::serializationLength(enabled); 00207 size += ros::serialization::serializationLength(supply_voltage); 00208 size += ros::serialization::serializationLength(measured_motor_voltage); 00209 size += ros::serialization::serializationLength(programmed_pwm); 00210 size += ros::serialization::serializationLength(executed_current); 00211 size += ros::serialization::serializationLength(measured_current); 00212 size += ros::serialization::serializationLength(velocity); 00213 size += ros::serialization::serializationLength(encoder_position); 00214 size += ros::serialization::serializationLength(encoder_error_count); 00215 size += ros::serialization::serializationLength(motor_voltage_error_limit); 00216 size += ros::serialization::serializationLength(filtered_motor_voltage_error); 00217 size += ros::serialization::serializationLength(filtered_abs_motor_voltage_error); 00218 size += ros::serialization::serializationLength(filtered_measured_voltage_error); 00219 size += ros::serialization::serializationLength(filtered_abs_measured_voltage_error); 00220 size += ros::serialization::serializationLength(filtered_current_error); 00221 size += ros::serialization::serializationLength(filtered_abs_current_error); 00222 return size; 00223 } 00224 00225 typedef boost::shared_ptr< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > Ptr; 00226 typedef boost::shared_ptr< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> const> ConstPtr; 00227 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00228 }; // struct MotorTraceSample 00229 typedef ::ethercat_hardware::MotorTraceSample_<std::allocator<void> > MotorTraceSample; 00230 00231 typedef boost::shared_ptr< ::ethercat_hardware::MotorTraceSample> MotorTraceSamplePtr; 00232 typedef boost::shared_ptr< ::ethercat_hardware::MotorTraceSample const> MotorTraceSampleConstPtr; 00233 00234 00235 template<typename ContainerAllocator> 00236 std::ostream& operator<<(std::ostream& s, const ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> & v) 00237 { 00238 ros::message_operations::Printer< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> >::stream(s, "", v); 00239 return s;} 00240 00241 } // namespace ethercat_hardware 00242 00243 namespace ros 00244 { 00245 namespace message_traits 00246 { 00247 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > : public TrueType {}; 00248 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> const> : public TrueType {}; 00249 template<class ContainerAllocator> 00250 struct MD5Sum< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "3734a66334bc2033448f9c561d39c5e0"; 00254 } 00255 00256 static const char* value(const ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> &) { return value(); } 00257 static const uint64_t static_value1 = 0x3734a66334bc2033ULL; 00258 static const uint64_t static_value2 = 0x448f9c561d39c5e0ULL; 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct DataType< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "ethercat_hardware/MotorTraceSample"; 00266 } 00267 00268 static const char* value(const ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> &) { return value(); } 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct Definition< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "float64 timestamp\n\ 00276 bool enabled\n\ 00277 float64 supply_voltage\n\ 00278 float64 measured_motor_voltage\n\ 00279 float64 programmed_pwm\n\ 00280 float64 executed_current\n\ 00281 float64 measured_current\n\ 00282 float64 velocity\n\ 00283 float64 encoder_position\n\ 00284 uint32 encoder_error_count\n\ 00285 float64 motor_voltage_error_limit\n\ 00286 float64 filtered_motor_voltage_error\n\ 00287 float64 filtered_abs_motor_voltage_error\n\ 00288 float64 filtered_measured_voltage_error\n\ 00289 float64 filtered_abs_measured_voltage_error\n\ 00290 float64 filtered_current_error\n\ 00291 float64 filtered_abs_current_error\n\ 00292 "; 00293 } 00294 00295 static const char* value(const ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> &) { return value(); } 00296 }; 00297 00298 template<class ContainerAllocator> struct IsFixedSize< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > : public TrueType {}; 00299 } // namespace message_traits 00300 } // namespace ros 00301 00302 namespace ros 00303 { 00304 namespace serialization 00305 { 00306 00307 template<class ContainerAllocator> struct Serializer< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > 00308 { 00309 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00310 { 00311 stream.next(m.timestamp); 00312 stream.next(m.enabled); 00313 stream.next(m.supply_voltage); 00314 stream.next(m.measured_motor_voltage); 00315 stream.next(m.programmed_pwm); 00316 stream.next(m.executed_current); 00317 stream.next(m.measured_current); 00318 stream.next(m.velocity); 00319 stream.next(m.encoder_position); 00320 stream.next(m.encoder_error_count); 00321 stream.next(m.motor_voltage_error_limit); 00322 stream.next(m.filtered_motor_voltage_error); 00323 stream.next(m.filtered_abs_motor_voltage_error); 00324 stream.next(m.filtered_measured_voltage_error); 00325 stream.next(m.filtered_abs_measured_voltage_error); 00326 stream.next(m.filtered_current_error); 00327 stream.next(m.filtered_abs_current_error); 00328 } 00329 00330 ROS_DECLARE_ALLINONE_SERIALIZER; 00331 }; // struct MotorTraceSample_ 00332 } // namespace serialization 00333 } // namespace ros 00334 00335 namespace ros 00336 { 00337 namespace message_operations 00338 { 00339 00340 template<class ContainerAllocator> 00341 struct Printer< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> > 00342 { 00343 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> & v) 00344 { 00345 s << indent << "timestamp: "; 00346 Printer<double>::stream(s, indent + " ", v.timestamp); 00347 s << indent << "enabled: "; 00348 Printer<uint8_t>::stream(s, indent + " ", v.enabled); 00349 s << indent << "supply_voltage: "; 00350 Printer<double>::stream(s, indent + " ", v.supply_voltage); 00351 s << indent << "measured_motor_voltage: "; 00352 Printer<double>::stream(s, indent + " ", v.measured_motor_voltage); 00353 s << indent << "programmed_pwm: "; 00354 Printer<double>::stream(s, indent + " ", v.programmed_pwm); 00355 s << indent << "executed_current: "; 00356 Printer<double>::stream(s, indent + " ", v.executed_current); 00357 s << indent << "measured_current: "; 00358 Printer<double>::stream(s, indent + " ", v.measured_current); 00359 s << indent << "velocity: "; 00360 Printer<double>::stream(s, indent + " ", v.velocity); 00361 s << indent << "encoder_position: "; 00362 Printer<double>::stream(s, indent + " ", v.encoder_position); 00363 s << indent << "encoder_error_count: "; 00364 Printer<uint32_t>::stream(s, indent + " ", v.encoder_error_count); 00365 s << indent << "motor_voltage_error_limit: "; 00366 Printer<double>::stream(s, indent + " ", v.motor_voltage_error_limit); 00367 s << indent << "filtered_motor_voltage_error: "; 00368 Printer<double>::stream(s, indent + " ", v.filtered_motor_voltage_error); 00369 s << indent << "filtered_abs_motor_voltage_error: "; 00370 Printer<double>::stream(s, indent + " ", v.filtered_abs_motor_voltage_error); 00371 s << indent << "filtered_measured_voltage_error: "; 00372 Printer<double>::stream(s, indent + " ", v.filtered_measured_voltage_error); 00373 s << indent << "filtered_abs_measured_voltage_error: "; 00374 Printer<double>::stream(s, indent + " ", v.filtered_abs_measured_voltage_error); 00375 s << indent << "filtered_current_error: "; 00376 Printer<double>::stream(s, indent + " ", v.filtered_current_error); 00377 s << indent << "filtered_abs_current_error: "; 00378 Printer<double>::stream(s, indent + " ", v.filtered_abs_current_error); 00379 } 00380 }; 00381 00382 00383 } // namespace message_operations 00384 } // namespace ros 00385 00386 #endif // ETHERCAT_HARDWARE_MESSAGE_MOTORTRACESAMPLE_H 00387