$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-netft/doc_stacks/2013-03-01_16-08-10.188137/netft/netft_example_controllers/msg/ForceTorqueStats.msg */ 00002 #ifndef NETFT_EXAMPLE_CONTROLLERS_MESSAGE_FORCETORQUESTATS_H 00003 #define NETFT_EXAMPLE_CONTROLLERS_MESSAGE_FORCETORQUESTATS_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 netft_example_controllers 00019 { 00020 template <class ContainerAllocator> 00021 struct ForceTorqueStats_ { 00022 typedef ForceTorqueStats_<ContainerAllocator> Type; 00023 00024 ForceTorqueStats_() 00025 : abs_force(0.0) 00026 , max_force(0.0) 00027 , abs_torque(0.0) 00028 , max_torque(0.0) 00029 { 00030 } 00031 00032 ForceTorqueStats_(const ContainerAllocator& _alloc) 00033 : abs_force(0.0) 00034 , max_force(0.0) 00035 , abs_torque(0.0) 00036 , max_torque(0.0) 00037 { 00038 } 00039 00040 typedef double _abs_force_type; 00041 double abs_force; 00042 00043 typedef double _max_force_type; 00044 double max_force; 00045 00046 typedef double _abs_torque_type; 00047 double abs_torque; 00048 00049 typedef double _max_torque_type; 00050 double max_torque; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "netft_example_controllers/ForceTorqueStats"; } 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 "62a64b27c6359997714a86d2b8afaf4c"; } 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 "float64 abs_force\n\ 00069 float64 max_force\n\ 00070 float64 abs_torque\n\ 00071 float64 max_torque\n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, abs_force); 00082 ros::serialization::serialize(stream, max_force); 00083 ros::serialization::serialize(stream, abs_torque); 00084 ros::serialization::serialize(stream, max_torque); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00089 { 00090 ros::serialization::IStream stream(read_ptr, 1000000000); 00091 ros::serialization::deserialize(stream, abs_force); 00092 ros::serialization::deserialize(stream, max_force); 00093 ros::serialization::deserialize(stream, abs_torque); 00094 ros::serialization::deserialize(stream, max_torque); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(abs_force); 00102 size += ros::serialization::serializationLength(max_force); 00103 size += ros::serialization::serializationLength(abs_torque); 00104 size += ros::serialization::serializationLength(max_torque); 00105 return size; 00106 } 00107 00108 typedef boost::shared_ptr< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > Ptr; 00109 typedef boost::shared_ptr< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> const> ConstPtr; 00110 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00111 }; // struct ForceTorqueStats 00112 typedef ::netft_example_controllers::ForceTorqueStats_<std::allocator<void> > ForceTorqueStats; 00113 00114 typedef boost::shared_ptr< ::netft_example_controllers::ForceTorqueStats> ForceTorqueStatsPtr; 00115 typedef boost::shared_ptr< ::netft_example_controllers::ForceTorqueStats const> ForceTorqueStatsConstPtr; 00116 00117 00118 template<typename ContainerAllocator> 00119 std::ostream& operator<<(std::ostream& s, const ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> & v) 00120 { 00121 ros::message_operations::Printer< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> >::stream(s, "", v); 00122 return s;} 00123 00124 } // namespace netft_example_controllers 00125 00126 namespace ros 00127 { 00128 namespace message_traits 00129 { 00130 template<class ContainerAllocator> struct IsMessage< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > : public TrueType {}; 00131 template<class ContainerAllocator> struct IsMessage< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> const> : public TrueType {}; 00132 template<class ContainerAllocator> 00133 struct MD5Sum< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "62a64b27c6359997714a86d2b8afaf4c"; 00137 } 00138 00139 static const char* value(const ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> &) { return value(); } 00140 static const uint64_t static_value1 = 0x62a64b27c6359997ULL; 00141 static const uint64_t static_value2 = 0x714a86d2b8afaf4cULL; 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct DataType< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "netft_example_controllers/ForceTorqueStats"; 00149 } 00150 00151 static const char* value(const ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> &) { return value(); } 00152 }; 00153 00154 template<class ContainerAllocator> 00155 struct Definition< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "float64 abs_force\n\ 00159 float64 max_force\n\ 00160 float64 abs_torque\n\ 00161 float64 max_torque\n\ 00162 "; 00163 } 00164 00165 static const char* value(const ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 template<class ContainerAllocator> struct IsFixedSize< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > : public TrueType {}; 00169 } // namespace message_traits 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace serialization 00175 { 00176 00177 template<class ContainerAllocator> struct Serializer< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > 00178 { 00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00180 { 00181 stream.next(m.abs_force); 00182 stream.next(m.max_force); 00183 stream.next(m.abs_torque); 00184 stream.next(m.max_torque); 00185 } 00186 00187 ROS_DECLARE_ALLINONE_SERIALIZER; 00188 }; // struct ForceTorqueStats_ 00189 } // namespace serialization 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace message_operations 00195 { 00196 00197 template<class ContainerAllocator> 00198 struct Printer< ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> > 00199 { 00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::netft_example_controllers::ForceTorqueStats_<ContainerAllocator> & v) 00201 { 00202 s << indent << "abs_force: "; 00203 Printer<double>::stream(s, indent + " ", v.abs_force); 00204 s << indent << "max_force: "; 00205 Printer<double>::stream(s, indent + " ", v.max_force); 00206 s << indent << "abs_torque: "; 00207 Printer<double>::stream(s, indent + " ", v.abs_torque); 00208 s << indent << "max_torque: "; 00209 Printer<double>::stream(s, indent + " ", v.max_torque); 00210 } 00211 }; 00212 00213 00214 } // namespace message_operations 00215 } // namespace ros 00216 00217 #endif // NETFT_EXAMPLE_CONTROLLERS_MESSAGE_FORCETORQUESTATS_H 00218