MotorResistance.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-wg_hardware_test/doc_stacks/2013-12-28_17-49-08.287935/wg_hardware_test/mtrace_tools/msg/MotorResistance.msg */
00002 #ifndef MTRACE_TOOLS_MESSAGE_MOTORRESISTANCE_H
00003 #define MTRACE_TOOLS_MESSAGE_MOTORRESISTANCE_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 "mtrace_tools/MotorResistanceSample.h"
00019 
00020 namespace mtrace_tools
00021 {
00022 template <class ContainerAllocator>
00023 struct MotorResistance_ {
00024   typedef MotorResistance_<ContainerAllocator> Type;
00025 
00026   MotorResistance_()
00027   : header()
00028   , samples()
00029   {
00030   }
00031 
00032   MotorResistance_(const ContainerAllocator& _alloc)
00033   : header(_alloc)
00034   , samples(_alloc)
00035   {
00036   }
00037 
00038   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00039    ::std_msgs::Header_<ContainerAllocator>  header;
00040 
00041   typedef std::vector< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> >::other >  _samples_type;
00042   std::vector< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> >::other >  samples;
00043 
00044 
00045   typedef boost::shared_ptr< ::mtrace_tools::MotorResistance_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::mtrace_tools::MotorResistance_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct MotorResistance
00049 typedef  ::mtrace_tools::MotorResistance_<std::allocator<void> > MotorResistance;
00050 
00051 typedef boost::shared_ptr< ::mtrace_tools::MotorResistance> MotorResistancePtr;
00052 typedef boost::shared_ptr< ::mtrace_tools::MotorResistance const> MotorResistanceConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::mtrace_tools::MotorResistance_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::mtrace_tools::MotorResistance_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace mtrace_tools
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::mtrace_tools::MotorResistance_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::mtrace_tools::MotorResistance_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::mtrace_tools::MotorResistance_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "eea54d3a2c32e33d77dae58766e45800";
00074   }
00075 
00076   static const char* value(const  ::mtrace_tools::MotorResistance_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0xeea54d3a2c32e33dULL;
00078   static const uint64_t static_value2 = 0x77dae58766e45800ULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::mtrace_tools::MotorResistance_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "mtrace_tools/MotorResistance";
00086   }
00087 
00088   static const char* value(const  ::mtrace_tools::MotorResistance_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::mtrace_tools::MotorResistance_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "Header header\n\
00096 MotorResistanceSample[] samples\n\
00097 ================================================================================\n\
00098 MSG: std_msgs/Header\n\
00099 # Standard metadata for higher-level stamped data types.\n\
00100 # This is generally used to communicate timestamped data \n\
00101 # in a particular coordinate frame.\n\
00102 # \n\
00103 # sequence ID: consecutively increasing ID \n\
00104 uint32 seq\n\
00105 #Two-integer timestamp that is expressed as:\n\
00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00108 # time-handling sugar is provided by the client library\n\
00109 time stamp\n\
00110 #Frame this data is associated with\n\
00111 # 0: no frame\n\
00112 # 1: global frame\n\
00113 string frame_id\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: mtrace_tools/MotorResistanceSample\n\
00117 float64 current\n\
00118 float64 voltage\n\
00119 float64 velocity\n\
00120 float64 position\n\
00121 bool    positive_direction\n\
00122 \n\
00123 ";
00124   }
00125 
00126   static const char* value(const  ::mtrace_tools::MotorResistance_<ContainerAllocator> &) { return value(); } 
00127 };
00128 
00129 template<class ContainerAllocator> struct HasHeader< ::mtrace_tools::MotorResistance_<ContainerAllocator> > : public TrueType {};
00130 template<class ContainerAllocator> struct HasHeader< const ::mtrace_tools::MotorResistance_<ContainerAllocator> > : public TrueType {};
00131 } // namespace message_traits
00132 } // namespace ros
00133 
00134 namespace ros
00135 {
00136 namespace serialization
00137 {
00138 
00139 template<class ContainerAllocator> struct Serializer< ::mtrace_tools::MotorResistance_<ContainerAllocator> >
00140 {
00141   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00142   {
00143     stream.next(m.header);
00144     stream.next(m.samples);
00145   }
00146 
00147   ROS_DECLARE_ALLINONE_SERIALIZER;
00148 }; // struct MotorResistance_
00149 } // namespace serialization
00150 } // namespace ros
00151 
00152 namespace ros
00153 {
00154 namespace message_operations
00155 {
00156 
00157 template<class ContainerAllocator>
00158 struct Printer< ::mtrace_tools::MotorResistance_<ContainerAllocator> >
00159 {
00160   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::mtrace_tools::MotorResistance_<ContainerAllocator> & v) 
00161   {
00162     s << indent << "header: ";
00163 s << std::endl;
00164     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00165     s << indent << "samples[]" << std::endl;
00166     for (size_t i = 0; i < v.samples.size(); ++i)
00167     {
00168       s << indent << "  samples[" << i << "]: ";
00169       s << std::endl;
00170       s << indent;
00171       Printer< ::mtrace_tools::MotorResistanceSample_<ContainerAllocator> >::stream(s, indent + "    ", v.samples[i]);
00172     }
00173   }
00174 };
00175 
00176 
00177 } // namespace message_operations
00178 } // namespace ros
00179 
00180 #endif // MTRACE_TOOLS_MESSAGE_MOTORRESISTANCE_H
00181 


mtrace_tools
Author(s): Derek
autogenerated on Sat Dec 28 2013 17:58:07