ForceControlAxis.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-nasa_r2_common/doc_stacks/2014-10-06_02-39-31.575241/nasa_r2_common/nasa_r2_common_msgs/msg/ForceControlAxis.msg */
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_FORCECONTROLAXIS_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_FORCECONTROLAXIS_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 nasa_r2_common_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ForceControlAxis_ {
00022   typedef ForceControlAxis_<ContainerAllocator> Type;
00023 
00024   ForceControlAxis_()
00025   : axis()
00026   , magnitude()
00027   {
00028   }
00029 
00030   ForceControlAxis_(const ContainerAllocator& _alloc)
00031   : axis(_alloc)
00032   , magnitude(_alloc)
00033   {
00034   }
00035 
00036   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _axis_type;
00037   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  axis;
00038 
00039   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _magnitude_type;
00040   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  magnitude;
00041 
00042   enum { X = 0 };
00043   enum { Y = 1 };
00044   enum { Z = 2 };
00045   enum { ROLL = 3 };
00046   enum { PITCH = 4 };
00047   enum { YAW = 5 };
00048 
00049   typedef boost::shared_ptr< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct ForceControlAxis
00053 typedef  ::nasa_r2_common_msgs::ForceControlAxis_<std::allocator<void> > ForceControlAxis;
00054 
00055 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ForceControlAxis> ForceControlAxisPtr;
00056 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ForceControlAxis const> ForceControlAxisConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace nasa_r2_common_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "e8efe484fba93bec26ea428bb18a05f9";
00078   }
00079 
00080   static const char* value(const  ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0xe8efe484fba93becULL;
00082   static const uint64_t static_value2 = 0x26ea428bb18a05f9ULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "nasa_r2_common_msgs/ForceControlAxis";
00090   }
00091 
00092   static const char* value(const  ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "uint8[] axis\n\
00100 float32[] magnitude\n\
00101 \n\
00102 uint8 X       = 0\n\
00103 uint8 Y       = 1\n\
00104 uint8 Z       = 2\n\
00105 uint8 ROLL    = 3\n\
00106 uint8 PITCH   = 4\n\
00107 uint8 YAW     = 5\n\
00108 \n\
00109 ";
00110   }
00111 
00112   static const char* value(const  ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> &) { return value(); } 
00113 };
00114 
00115 } // namespace message_traits
00116 } // namespace ros
00117 
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122 
00123 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> >
00124 {
00125   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126   {
00127     stream.next(m.axis);
00128     stream.next(m.magnitude);
00129   }
00130 
00131   ROS_DECLARE_ALLINONE_SERIALIZER;
00132 }; // struct ForceControlAxis_
00133 } // namespace serialization
00134 } // namespace ros
00135 
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140 
00141 template<class ContainerAllocator>
00142 struct Printer< ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> >
00143 {
00144   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nasa_r2_common_msgs::ForceControlAxis_<ContainerAllocator> & v) 
00145   {
00146     s << indent << "axis[]" << std::endl;
00147     for (size_t i = 0; i < v.axis.size(); ++i)
00148     {
00149       s << indent << "  axis[" << i << "]: ";
00150       Printer<uint8_t>::stream(s, indent + "  ", v.axis[i]);
00151     }
00152     s << indent << "magnitude[]" << std::endl;
00153     for (size_t i = 0; i < v.magnitude.size(); ++i)
00154     {
00155       s << indent << "  magnitude[" << i << "]: ";
00156       Printer<float>::stream(s, indent + "  ", v.magnitude[i]);
00157     }
00158   }
00159 };
00160 
00161 
00162 } // namespace message_operations
00163 } // namespace ros
00164 
00165 #endif // NASA_R2_COMMON_MSGS_MESSAGE_FORCECONTROLAXIS_H
00166 


nasa_r2_common_msgs
Author(s): Paul Dinh. Maintained by Jennifer Turner
autogenerated on Mon Oct 6 2014 02:42:34