Go to the documentation of this file.00001
00002 #ifndef MTRACE_TOOLS_MESSAGE_MOTORRESISTANCESAMPLE_H
00003 #define MTRACE_TOOLS_MESSAGE_MOTORRESISTANCESAMPLE_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 mtrace_tools
00019 {
00020 template <class ContainerAllocator>
00021 struct MotorResistanceSample_ {
00022 typedef MotorResistanceSample_<ContainerAllocator> Type;
00023
00024 MotorResistanceSample_()
00025 : current(0.0)
00026 , voltage(0.0)
00027 , velocity(0.0)
00028 , position(0.0)
00029 , positive_direction(false)
00030 {
00031 }
00032
00033 MotorResistanceSample_(const ContainerAllocator& _alloc)
00034 : current(0.0)
00035 , voltage(0.0)
00036 , velocity(0.0)
00037 , position(0.0)
00038 , positive_direction(false)
00039 {
00040 }
00041
00042 typedef double _current_type;
00043 double current;
00044
00045 typedef double _voltage_type;
00046 double voltage;
00047
00048 typedef double _velocity_type;
00049 double velocity;
00050
00051 typedef double _position_type;
00052 double position;
00053
00054 typedef uint8_t _positive_direction_type;
00055 uint8_t positive_direction;
00056
00057
00058 typedef boost::shared_ptr< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::mtrace_tools::MotorResistanceSample_<std::allocator<void> > MotorResistanceSample;
00063
00064 typedef boost::shared_ptr< ::mtrace_tools::MotorResistanceSample> MotorResistanceSamplePtr;
00065 typedef boost::shared_ptr< ::mtrace_tools::MotorResistanceSample const> MotorResistanceSampleConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> >::stream(s, "", v);
00072 return s;}
00073
00074 }
00075
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "290f7267854e39cdca34c36a50e2bcde";
00087 }
00088
00089 static const char* value(const ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0x290f7267854e39cdULL;
00091 static const uint64_t static_value2 = 0xca34c36a50e2bcdeULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "mtrace_tools/MotorResistanceSample";
00099 }
00100
00101 static const char* value(const ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "float64 current\n\
00109 float64 voltage\n\
00110 float64 velocity\n\
00111 float64 position\n\
00112 bool positive_direction\n\
00113 \n\
00114 ";
00115 }
00116
00117 static const char* value(const ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 template<class ContainerAllocator> struct IsFixedSize< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> > : public TrueType {};
00121 }
00122 }
00123
00124 namespace ros
00125 {
00126 namespace serialization
00127 {
00128
00129 template<class ContainerAllocator> struct Serializer< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> >
00130 {
00131 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132 {
00133 stream.next(m.current);
00134 stream.next(m.voltage);
00135 stream.next(m.velocity);
00136 stream.next(m.position);
00137 stream.next(m.positive_direction);
00138 }
00139
00140 ROS_DECLARE_ALLINONE_SERIALIZER;
00141 };
00142 }
00143 }
00144
00145 namespace ros
00146 {
00147 namespace message_operations
00148 {
00149
00150 template<class ContainerAllocator>
00151 struct Printer< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> >
00152 {
00153 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> & v)
00154 {
00155 s << indent << "current: ";
00156 Printer<double>::stream(s, indent + " ", v.current);
00157 s << indent << "voltage: ";
00158 Printer<double>::stream(s, indent + " ", v.voltage);
00159 s << indent << "velocity: ";
00160 Printer<double>::stream(s, indent + " ", v.velocity);
00161 s << indent << "position: ";
00162 Printer<double>::stream(s, indent + " ", v.position);
00163 s << indent << "positive_direction: ";
00164 Printer<uint8_t>::stream(s, indent + " ", v.positive_direction);
00165 }
00166 };
00167
00168
00169 }
00170 }
00171
00172 #endif // MTRACE_TOOLS_MESSAGE_MOTORRESISTANCESAMPLE_H
00173