MoveArm.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-roscorobot/doc_stacks/2014-01-07_11-36-17.541726/Corobot/corobot_msgs/msg/MoveArm.msg */
00002 #ifndef COROBOT_MSGS_MESSAGE_MOVEARM_H
00003 #define COROBOT_MSGS_MESSAGE_MOVEARM_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 corobot_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MoveArm_ {
00022   typedef MoveArm_<ContainerAllocator> Type;
00023 
00024   MoveArm_()
00025   : index(0)
00026   , position(0.0)
00027   {
00028   }
00029 
00030   MoveArm_(const ContainerAllocator& _alloc)
00031   : index(0)
00032   , position(0.0)
00033   {
00034   }
00035 
00036   typedef int8_t _index_type;
00037   int8_t index;
00038 
00039   typedef float _position_type;
00040   float position;
00041 
00042   enum { BASE_ROTATION = 0 };
00043   enum { SHOULDER = 1 };
00044   enum { ELBOW = 2 };
00045   enum { WRIST_FLEX = 3 };
00046   enum { WRIST_ROTATION = 3 };
00047   enum { GRIPPER = 4 };
00048 
00049   typedef boost::shared_ptr< ::corobot_msgs::MoveArm_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::corobot_msgs::MoveArm_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct MoveArm
00053 typedef  ::corobot_msgs::MoveArm_<std::allocator<void> > MoveArm;
00054 
00055 typedef boost::shared_ptr< ::corobot_msgs::MoveArm> MoveArmPtr;
00056 typedef boost::shared_ptr< ::corobot_msgs::MoveArm const> MoveArmConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::corobot_msgs::MoveArm_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::corobot_msgs::MoveArm_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace corobot_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::MoveArm_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::MoveArm_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::corobot_msgs::MoveArm_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "75521d5964134bfaa7e916433846c0ca";
00078   }
00079 
00080   static const char* value(const  ::corobot_msgs::MoveArm_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0x75521d5964134bfaULL;
00082   static const uint64_t static_value2 = 0xa7e916433846c0caULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::corobot_msgs::MoveArm_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "corobot_msgs/MoveArm";
00090   }
00091 
00092   static const char* value(const  ::corobot_msgs::MoveArm_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::corobot_msgs::MoveArm_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "#\n\
00100 # Morgan Cormier <mcormier@coroware.com>\n\
00101 #\n\
00102 # Message used to set or get the position of a servo motor connected to a Phidget servo controller.\n\
00103 #\n\
00104 \n\
00105 ####### Possible Indexes #########\n\
00106 uint8 BASE_ROTATION = 0\n\
00107 uint8 SHOULDER = 1\n\
00108 uint8 ELBOW = 2\n\
00109 uint8 WRIST_FLEX = 3\n\
00110 uint8 WRIST_ROTATION = 3\n\
00111 uint8 GRIPPER = 4\n\
00112 \n\
00113 # Index is the index from the list of possible index. \n\
00114 int8 index\n\
00115 \n\
00116 # position is the angle in degree set for the servo motor selected with index\n\
00117 float32 position\n\
00118 \n\
00119 ";
00120   }
00121 
00122   static const char* value(const  ::corobot_msgs::MoveArm_<ContainerAllocator> &) { return value(); } 
00123 };
00124 
00125 template<class ContainerAllocator> struct IsFixedSize< ::corobot_msgs::MoveArm_<ContainerAllocator> > : public TrueType {};
00126 } // namespace message_traits
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133 
00134 template<class ContainerAllocator> struct Serializer< ::corobot_msgs::MoveArm_<ContainerAllocator> >
00135 {
00136   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137   {
00138     stream.next(m.index);
00139     stream.next(m.position);
00140   }
00141 
00142   ROS_DECLARE_ALLINONE_SERIALIZER;
00143 }; // struct MoveArm_
00144 } // namespace serialization
00145 } // namespace ros
00146 
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151 
00152 template<class ContainerAllocator>
00153 struct Printer< ::corobot_msgs::MoveArm_<ContainerAllocator> >
00154 {
00155   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::corobot_msgs::MoveArm_<ContainerAllocator> & v) 
00156   {
00157     s << indent << "index: ";
00158     Printer<int8_t>::stream(s, indent + "  ", v.index);
00159     s << indent << "position: ";
00160     Printer<float>::stream(s, indent + "  ", v.position);
00161   }
00162 };
00163 
00164 
00165 } // namespace message_operations
00166 } // namespace ros
00167 
00168 #endif // COROBOT_MSGS_MESSAGE_MOVEARM_H
00169 


corobot_msgs
Author(s): Morgan Cormier/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:38:41