$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/MotorTrace.msg */ 00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_MOTORTRACE_H 00003 #define ETHERCAT_HARDWARE_MESSAGE_MOTORTRACE_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 "ethercat_hardware/BoardInfo.h" 00019 #include "ethercat_hardware/ActuatorInfo.h" 00020 #include "ethercat_hardware/MotorTraceSample.h" 00021 00022 namespace ethercat_hardware 00023 { 00024 template <class ContainerAllocator> 00025 struct MotorTrace_ { 00026 typedef MotorTrace_<ContainerAllocator> Type; 00027 00028 MotorTrace_() 00029 : header() 00030 , reason() 00031 , board_info() 00032 , actuator_info() 00033 , samples() 00034 { 00035 } 00036 00037 MotorTrace_(const ContainerAllocator& _alloc) 00038 : header(_alloc) 00039 , reason(_alloc) 00040 , board_info(_alloc) 00041 , actuator_info(_alloc) 00042 , samples(_alloc) 00043 { 00044 } 00045 00046 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00047 ::std_msgs::Header_<ContainerAllocator> header; 00048 00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _reason_type; 00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > reason; 00051 00052 typedef ::ethercat_hardware::BoardInfo_<ContainerAllocator> _board_info_type; 00053 ::ethercat_hardware::BoardInfo_<ContainerAllocator> board_info; 00054 00055 typedef ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> _actuator_info_type; 00056 ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> actuator_info; 00057 00058 typedef std::vector< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> >::other > _samples_type; 00059 std::vector< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> >::other > samples; 00060 00061 00062 ROS_DEPRECATED uint32_t get_samples_size() const { return (uint32_t)samples.size(); } 00063 ROS_DEPRECATED void set_samples_size(uint32_t size) { samples.resize((size_t)size); } 00064 ROS_DEPRECATED void get_samples_vec(std::vector< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> >::other > & vec) const { vec = this->samples; } 00065 ROS_DEPRECATED void set_samples_vec(const std::vector< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> >::other > & vec) { this->samples = vec; } 00066 private: 00067 static const char* __s_getDataType_() { return "ethercat_hardware/MotorTrace"; } 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 "ada0b8b7f00967d292bd5bb4f59d4bd8"; } 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 "Header header\n\ 00082 string reason\n\ 00083 ethercat_hardware/BoardInfo board_info\n\ 00084 ethercat_hardware/ActuatorInfo actuator_info\n\ 00085 ethercat_hardware/MotorTraceSample[] samples\n\ 00086 ================================================================================\n\ 00087 MSG: std_msgs/Header\n\ 00088 # Standard metadata for higher-level stamped data types.\n\ 00089 # This is generally used to communicate timestamped data \n\ 00090 # in a particular coordinate frame.\n\ 00091 # \n\ 00092 # sequence ID: consecutively increasing ID \n\ 00093 uint32 seq\n\ 00094 #Two-integer timestamp that is expressed as:\n\ 00095 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00096 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00097 # time-handling sugar is provided by the client library\n\ 00098 time stamp\n\ 00099 #Frame this data is associated with\n\ 00100 # 0: no frame\n\ 00101 # 1: global frame\n\ 00102 string frame_id\n\ 00103 \n\ 00104 ================================================================================\n\ 00105 MSG: ethercat_hardware/BoardInfo\n\ 00106 string description\n\ 00107 uint32 product_code\n\ 00108 uint32 pcb\n\ 00109 uint32 pca\n\ 00110 uint32 serial\n\ 00111 uint32 firmware_major\n\ 00112 uint32 firmware_minor\n\ 00113 float64 board_resistance\n\ 00114 float64 max_pwm_ratio\n\ 00115 float64 hw_max_current\n\ 00116 bool poor_measured_motor_voltage\n\ 00117 ================================================================================\n\ 00118 MSG: ethercat_hardware/ActuatorInfo\n\ 00119 uint32 id\n\ 00120 string name\n\ 00121 string robot_name\n\ 00122 string motor_make\n\ 00123 string motor_model\n\ 00124 float64 max_current\n\ 00125 float64 speed_constant\n\ 00126 float64 motor_resistance\n\ 00127 float64 motor_torque_constant\n\ 00128 float64 encoder_reduction\n\ 00129 float64 pulses_per_revolution\n\ 00130 ================================================================================\n\ 00131 MSG: ethercat_hardware/MotorTraceSample\n\ 00132 float64 timestamp\n\ 00133 bool enabled\n\ 00134 float64 supply_voltage\n\ 00135 float64 measured_motor_voltage\n\ 00136 float64 programmed_pwm\n\ 00137 float64 executed_current\n\ 00138 float64 measured_current\n\ 00139 float64 velocity\n\ 00140 float64 encoder_position\n\ 00141 uint32 encoder_error_count\n\ 00142 float64 motor_voltage_error_limit\n\ 00143 float64 filtered_motor_voltage_error\n\ 00144 float64 filtered_abs_motor_voltage_error\n\ 00145 float64 filtered_measured_voltage_error\n\ 00146 float64 filtered_abs_measured_voltage_error\n\ 00147 float64 filtered_current_error\n\ 00148 float64 filtered_abs_current_error\n\ 00149 "; } 00150 public: 00151 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00152 00153 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00154 00155 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00156 { 00157 ros::serialization::OStream stream(write_ptr, 1000000000); 00158 ros::serialization::serialize(stream, header); 00159 ros::serialization::serialize(stream, reason); 00160 ros::serialization::serialize(stream, board_info); 00161 ros::serialization::serialize(stream, actuator_info); 00162 ros::serialization::serialize(stream, samples); 00163 return stream.getData(); 00164 } 00165 00166 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00167 { 00168 ros::serialization::IStream stream(read_ptr, 1000000000); 00169 ros::serialization::deserialize(stream, header); 00170 ros::serialization::deserialize(stream, reason); 00171 ros::serialization::deserialize(stream, board_info); 00172 ros::serialization::deserialize(stream, actuator_info); 00173 ros::serialization::deserialize(stream, samples); 00174 return stream.getData(); 00175 } 00176 00177 ROS_DEPRECATED virtual uint32_t serializationLength() const 00178 { 00179 uint32_t size = 0; 00180 size += ros::serialization::serializationLength(header); 00181 size += ros::serialization::serializationLength(reason); 00182 size += ros::serialization::serializationLength(board_info); 00183 size += ros::serialization::serializationLength(actuator_info); 00184 size += ros::serialization::serializationLength(samples); 00185 return size; 00186 } 00187 00188 typedef boost::shared_ptr< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > Ptr; 00189 typedef boost::shared_ptr< ::ethercat_hardware::MotorTrace_<ContainerAllocator> const> ConstPtr; 00190 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00191 }; // struct MotorTrace 00192 typedef ::ethercat_hardware::MotorTrace_<std::allocator<void> > MotorTrace; 00193 00194 typedef boost::shared_ptr< ::ethercat_hardware::MotorTrace> MotorTracePtr; 00195 typedef boost::shared_ptr< ::ethercat_hardware::MotorTrace const> MotorTraceConstPtr; 00196 00197 00198 template<typename ContainerAllocator> 00199 std::ostream& operator<<(std::ostream& s, const ::ethercat_hardware::MotorTrace_<ContainerAllocator> & v) 00200 { 00201 ros::message_operations::Printer< ::ethercat_hardware::MotorTrace_<ContainerAllocator> >::stream(s, "", v); 00202 return s;} 00203 00204 } // namespace ethercat_hardware 00205 00206 namespace ros 00207 { 00208 namespace message_traits 00209 { 00210 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > : public TrueType {}; 00211 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::MotorTrace_<ContainerAllocator> const> : public TrueType {}; 00212 template<class ContainerAllocator> 00213 struct MD5Sum< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > { 00214 static const char* value() 00215 { 00216 return "ada0b8b7f00967d292bd5bb4f59d4bd8"; 00217 } 00218 00219 static const char* value(const ::ethercat_hardware::MotorTrace_<ContainerAllocator> &) { return value(); } 00220 static const uint64_t static_value1 = 0xada0b8b7f00967d2ULL; 00221 static const uint64_t static_value2 = 0x92bd5bb4f59d4bd8ULL; 00222 }; 00223 00224 template<class ContainerAllocator> 00225 struct DataType< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "ethercat_hardware/MotorTrace"; 00229 } 00230 00231 static const char* value(const ::ethercat_hardware::MotorTrace_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 template<class ContainerAllocator> 00235 struct Definition< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > { 00236 static const char* value() 00237 { 00238 return "Header header\n\ 00239 string reason\n\ 00240 ethercat_hardware/BoardInfo board_info\n\ 00241 ethercat_hardware/ActuatorInfo actuator_info\n\ 00242 ethercat_hardware/MotorTraceSample[] samples\n\ 00243 ================================================================================\n\ 00244 MSG: std_msgs/Header\n\ 00245 # Standard metadata for higher-level stamped data types.\n\ 00246 # This is generally used to communicate timestamped data \n\ 00247 # in a particular coordinate frame.\n\ 00248 # \n\ 00249 # sequence ID: consecutively increasing ID \n\ 00250 uint32 seq\n\ 00251 #Two-integer timestamp that is expressed as:\n\ 00252 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00253 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00254 # time-handling sugar is provided by the client library\n\ 00255 time stamp\n\ 00256 #Frame this data is associated with\n\ 00257 # 0: no frame\n\ 00258 # 1: global frame\n\ 00259 string frame_id\n\ 00260 \n\ 00261 ================================================================================\n\ 00262 MSG: ethercat_hardware/BoardInfo\n\ 00263 string description\n\ 00264 uint32 product_code\n\ 00265 uint32 pcb\n\ 00266 uint32 pca\n\ 00267 uint32 serial\n\ 00268 uint32 firmware_major\n\ 00269 uint32 firmware_minor\n\ 00270 float64 board_resistance\n\ 00271 float64 max_pwm_ratio\n\ 00272 float64 hw_max_current\n\ 00273 bool poor_measured_motor_voltage\n\ 00274 ================================================================================\n\ 00275 MSG: ethercat_hardware/ActuatorInfo\n\ 00276 uint32 id\n\ 00277 string name\n\ 00278 string robot_name\n\ 00279 string motor_make\n\ 00280 string motor_model\n\ 00281 float64 max_current\n\ 00282 float64 speed_constant\n\ 00283 float64 motor_resistance\n\ 00284 float64 motor_torque_constant\n\ 00285 float64 encoder_reduction\n\ 00286 float64 pulses_per_revolution\n\ 00287 ================================================================================\n\ 00288 MSG: ethercat_hardware/MotorTraceSample\n\ 00289 float64 timestamp\n\ 00290 bool enabled\n\ 00291 float64 supply_voltage\n\ 00292 float64 measured_motor_voltage\n\ 00293 float64 programmed_pwm\n\ 00294 float64 executed_current\n\ 00295 float64 measured_current\n\ 00296 float64 velocity\n\ 00297 float64 encoder_position\n\ 00298 uint32 encoder_error_count\n\ 00299 float64 motor_voltage_error_limit\n\ 00300 float64 filtered_motor_voltage_error\n\ 00301 float64 filtered_abs_motor_voltage_error\n\ 00302 float64 filtered_measured_voltage_error\n\ 00303 float64 filtered_abs_measured_voltage_error\n\ 00304 float64 filtered_current_error\n\ 00305 float64 filtered_abs_current_error\n\ 00306 "; 00307 } 00308 00309 static const char* value(const ::ethercat_hardware::MotorTrace_<ContainerAllocator> &) { return value(); } 00310 }; 00311 00312 template<class ContainerAllocator> struct HasHeader< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > : public TrueType {}; 00313 template<class ContainerAllocator> struct HasHeader< const ::ethercat_hardware::MotorTrace_<ContainerAllocator> > : public TrueType {}; 00314 } // namespace message_traits 00315 } // namespace ros 00316 00317 namespace ros 00318 { 00319 namespace serialization 00320 { 00321 00322 template<class ContainerAllocator> struct Serializer< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > 00323 { 00324 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00325 { 00326 stream.next(m.header); 00327 stream.next(m.reason); 00328 stream.next(m.board_info); 00329 stream.next(m.actuator_info); 00330 stream.next(m.samples); 00331 } 00332 00333 ROS_DECLARE_ALLINONE_SERIALIZER; 00334 }; // struct MotorTrace_ 00335 } // namespace serialization 00336 } // namespace ros 00337 00338 namespace ros 00339 { 00340 namespace message_operations 00341 { 00342 00343 template<class ContainerAllocator> 00344 struct Printer< ::ethercat_hardware::MotorTrace_<ContainerAllocator> > 00345 { 00346 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ethercat_hardware::MotorTrace_<ContainerAllocator> & v) 00347 { 00348 s << indent << "header: "; 00349 s << std::endl; 00350 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00351 s << indent << "reason: "; 00352 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.reason); 00353 s << indent << "board_info: "; 00354 s << std::endl; 00355 Printer< ::ethercat_hardware::BoardInfo_<ContainerAllocator> >::stream(s, indent + " ", v.board_info); 00356 s << indent << "actuator_info: "; 00357 s << std::endl; 00358 Printer< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> >::stream(s, indent + " ", v.actuator_info); 00359 s << indent << "samples[]" << std::endl; 00360 for (size_t i = 0; i < v.samples.size(); ++i) 00361 { 00362 s << indent << " samples[" << i << "]: "; 00363 s << std::endl; 00364 s << indent; 00365 Printer< ::ethercat_hardware::MotorTraceSample_<ContainerAllocator> >::stream(s, indent + " ", v.samples[i]); 00366 } 00367 } 00368 }; 00369 00370 00371 } // namespace message_operations 00372 } // namespace ros 00373 00374 #endif // ETHERCAT_HARDWARE_MESSAGE_MOTORTRACE_H 00375