ControlType.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-shadow_robot/doc_stacks/2014-10-06_07-33-10.674696/shadow_robot/sr_robot_msgs/msg/ControlType.msg */
00002 #ifndef SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_H
00003 #define SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_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 sr_robot_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ControlType_ {
00022   typedef ControlType_<ContainerAllocator> Type;
00023 
00024   ControlType_()
00025   : control_type(0)
00026   {
00027   }
00028 
00029   ControlType_(const ContainerAllocator& _alloc)
00030   : control_type(0)
00031   {
00032   }
00033 
00034   typedef int16_t _control_type_type;
00035   int16_t control_type;
00036 
00037   enum { PWM = 0 };
00038   enum { FORCE = 1 };
00039   enum { QUERY = -1 };
00040 
00041   typedef boost::shared_ptr< ::sr_robot_msgs::ControlType_<ContainerAllocator> > Ptr;
00042   typedef boost::shared_ptr< ::sr_robot_msgs::ControlType_<ContainerAllocator>  const> ConstPtr;
00043   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00044 }; // struct ControlType
00045 typedef  ::sr_robot_msgs::ControlType_<std::allocator<void> > ControlType;
00046 
00047 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType> ControlTypePtr;
00048 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType const> ControlTypeConstPtr;
00049 
00050 
00051 template<typename ContainerAllocator>
00052 std::ostream& operator<<(std::ostream& s, const  ::sr_robot_msgs::ControlType_<ContainerAllocator> & v)
00053 {
00054   ros::message_operations::Printer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >::stream(s, "", v);
00055   return s;}
00056 
00057 } // namespace sr_robot_msgs
00058 
00059 namespace ros
00060 {
00061 namespace message_traits
00062 {
00063 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ControlType_<ContainerAllocator> > : public TrueType {};
00064 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ControlType_<ContainerAllocator>  const> : public TrueType {};
00065 template<class ContainerAllocator>
00066 struct MD5Sum< ::sr_robot_msgs::ControlType_<ContainerAllocator> > {
00067   static const char* value() 
00068   {
00069     return "b998c8b3b8aa0f2f53f0eaa45ee462bd";
00070   }
00071 
00072   static const char* value(const  ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 
00073   static const uint64_t static_value1 = 0xb998c8b3b8aa0f2fULL;
00074   static const uint64_t static_value2 = 0x53f0eaa45ee462bdULL;
00075 };
00076 
00077 template<class ContainerAllocator>
00078 struct DataType< ::sr_robot_msgs::ControlType_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "sr_robot_msgs/ControlType";
00082   }
00083 
00084   static const char* value(const  ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 
00085 };
00086 
00087 template<class ContainerAllocator>
00088 struct Definition< ::sr_robot_msgs::ControlType_<ContainerAllocator> > {
00089   static const char* value() 
00090   {
00091     return "int16 control_type\n\
00092 \n\
00093 int16 PWM=0\n\
00094 int16 FORCE=1\n\
00095 \n\
00096 #used to query which control type we're using. won't change the control type\n\
00097 int16 QUERY=-1\n\
00098 ";
00099   }
00100 
00101   static const char* value(const  ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ControlType_<ContainerAllocator> > : public TrueType {};
00105 } // namespace message_traits
00106 } // namespace ros
00107 
00108 namespace ros
00109 {
00110 namespace serialization
00111 {
00112 
00113 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >
00114 {
00115   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00116   {
00117     stream.next(m.control_type);
00118   }
00119 
00120   ROS_DECLARE_ALLINONE_SERIALIZER;
00121 }; // struct ControlType_
00122 } // namespace serialization
00123 } // namespace ros
00124 
00125 namespace ros
00126 {
00127 namespace message_operations
00128 {
00129 
00130 template<class ContainerAllocator>
00131 struct Printer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >
00132 {
00133   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sr_robot_msgs::ControlType_<ContainerAllocator> & v) 
00134   {
00135     s << indent << "control_type: ";
00136     Printer<int16_t>::stream(s, indent + "  ", v.control_type);
00137   }
00138 };
00139 
00140 
00141 } // namespace message_operations
00142 } // namespace ros
00143 
00144 #endif // SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_H
00145 


sr_robot_msgs
Author(s): Ugo Cupcic/ugo@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:40:06