$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/MotorTemperature.msg */ 00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_MOTORTEMPERATURE_H 00003 #define ETHERCAT_HARDWARE_MESSAGE_MOTORTEMPERATURE_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 MotorTemperature_ { 00022 typedef MotorTemperature_<ContainerAllocator> Type; 00023 00024 MotorTemperature_() 00025 : stamp() 00026 , winding_temperature(0.0) 00027 , housing_temperature(0.0) 00028 , ambient_temperature(0.0) 00029 , heating_power(0.0) 00030 { 00031 } 00032 00033 MotorTemperature_(const ContainerAllocator& _alloc) 00034 : stamp() 00035 , winding_temperature(0.0) 00036 , housing_temperature(0.0) 00037 , ambient_temperature(0.0) 00038 , heating_power(0.0) 00039 { 00040 } 00041 00042 typedef ros::Time _stamp_type; 00043 ros::Time stamp; 00044 00045 typedef double _winding_temperature_type; 00046 double winding_temperature; 00047 00048 typedef double _housing_temperature_type; 00049 double housing_temperature; 00050 00051 typedef double _ambient_temperature_type; 00052 double ambient_temperature; 00053 00054 typedef double _heating_power_type; 00055 double heating_power; 00056 00057 00058 private: 00059 static const char* __s_getDataType_() { return "ethercat_hardware/MotorTemperature"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "d8c7239cd096d6f25b75bff6b63f2162"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# Sample of motor heating information\n\ 00074 time stamp\n\ 00075 float64 winding_temperature\n\ 00076 float64 housing_temperature\n\ 00077 float64 ambient_temperature\n\ 00078 float64 heating_power\n\ 00079 "; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00084 00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00086 { 00087 ros::serialization::OStream stream(write_ptr, 1000000000); 00088 ros::serialization::serialize(stream, stamp); 00089 ros::serialization::serialize(stream, winding_temperature); 00090 ros::serialization::serialize(stream, housing_temperature); 00091 ros::serialization::serialize(stream, ambient_temperature); 00092 ros::serialization::serialize(stream, heating_power); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00097 { 00098 ros::serialization::IStream stream(read_ptr, 1000000000); 00099 ros::serialization::deserialize(stream, stamp); 00100 ros::serialization::deserialize(stream, winding_temperature); 00101 ros::serialization::deserialize(stream, housing_temperature); 00102 ros::serialization::deserialize(stream, ambient_temperature); 00103 ros::serialization::deserialize(stream, heating_power); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint32_t serializationLength() const 00108 { 00109 uint32_t size = 0; 00110 size += ros::serialization::serializationLength(stamp); 00111 size += ros::serialization::serializationLength(winding_temperature); 00112 size += ros::serialization::serializationLength(housing_temperature); 00113 size += ros::serialization::serializationLength(ambient_temperature); 00114 size += ros::serialization::serializationLength(heating_power); 00115 return size; 00116 } 00117 00118 typedef boost::shared_ptr< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > Ptr; 00119 typedef boost::shared_ptr< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> const> ConstPtr; 00120 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00121 }; // struct MotorTemperature 00122 typedef ::ethercat_hardware::MotorTemperature_<std::allocator<void> > MotorTemperature; 00123 00124 typedef boost::shared_ptr< ::ethercat_hardware::MotorTemperature> MotorTemperaturePtr; 00125 typedef boost::shared_ptr< ::ethercat_hardware::MotorTemperature const> MotorTemperatureConstPtr; 00126 00127 00128 template<typename ContainerAllocator> 00129 std::ostream& operator<<(std::ostream& s, const ::ethercat_hardware::MotorTemperature_<ContainerAllocator> & v) 00130 { 00131 ros::message_operations::Printer< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> >::stream(s, "", v); 00132 return s;} 00133 00134 } // namespace ethercat_hardware 00135 00136 namespace ros 00137 { 00138 namespace message_traits 00139 { 00140 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > : public TrueType {}; 00141 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> const> : public TrueType {}; 00142 template<class ContainerAllocator> 00143 struct MD5Sum< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "d8c7239cd096d6f25b75bff6b63f2162"; 00147 } 00148 00149 static const char* value(const ::ethercat_hardware::MotorTemperature_<ContainerAllocator> &) { return value(); } 00150 static const uint64_t static_value1 = 0xd8c7239cd096d6f2ULL; 00151 static const uint64_t static_value2 = 0x5b75bff6b63f2162ULL; 00152 }; 00153 00154 template<class ContainerAllocator> 00155 struct DataType< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "ethercat_hardware/MotorTemperature"; 00159 } 00160 00161 static const char* value(const ::ethercat_hardware::MotorTemperature_<ContainerAllocator> &) { return value(); } 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct Definition< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "# Sample of motor heating information\n\ 00169 time stamp\n\ 00170 float64 winding_temperature\n\ 00171 float64 housing_temperature\n\ 00172 float64 ambient_temperature\n\ 00173 float64 heating_power\n\ 00174 "; 00175 } 00176 00177 static const char* value(const ::ethercat_hardware::MotorTemperature_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> struct IsFixedSize< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > : public TrueType {}; 00181 } // namespace message_traits 00182 } // namespace ros 00183 00184 namespace ros 00185 { 00186 namespace serialization 00187 { 00188 00189 template<class ContainerAllocator> struct Serializer< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > 00190 { 00191 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00192 { 00193 stream.next(m.stamp); 00194 stream.next(m.winding_temperature); 00195 stream.next(m.housing_temperature); 00196 stream.next(m.ambient_temperature); 00197 stream.next(m.heating_power); 00198 } 00199 00200 ROS_DECLARE_ALLINONE_SERIALIZER; 00201 }; // struct MotorTemperature_ 00202 } // namespace serialization 00203 } // namespace ros 00204 00205 namespace ros 00206 { 00207 namespace message_operations 00208 { 00209 00210 template<class ContainerAllocator> 00211 struct Printer< ::ethercat_hardware::MotorTemperature_<ContainerAllocator> > 00212 { 00213 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ethercat_hardware::MotorTemperature_<ContainerAllocator> & v) 00214 { 00215 s << indent << "stamp: "; 00216 Printer<ros::Time>::stream(s, indent + " ", v.stamp); 00217 s << indent << "winding_temperature: "; 00218 Printer<double>::stream(s, indent + " ", v.winding_temperature); 00219 s << indent << "housing_temperature: "; 00220 Printer<double>::stream(s, indent + " ", v.housing_temperature); 00221 s << indent << "ambient_temperature: "; 00222 Printer<double>::stream(s, indent + " ", v.ambient_temperature); 00223 s << indent << "heating_power: "; 00224 Printer<double>::stream(s, indent + " ", v.heating_power); 00225 } 00226 }; 00227 00228 00229 } // namespace message_operations 00230 } // namespace ros 00231 00232 #endif // ETHERCAT_HARDWARE_MESSAGE_MOTORTEMPERATURE_H 00233