ControlType.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-shadow_robot/doc_stacks/2014-01-03_11-55-43.997996/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 
00040   typedef boost::shared_ptr< ::sr_robot_msgs::ControlType_<ContainerAllocator> > Ptr;
00041   typedef boost::shared_ptr< ::sr_robot_msgs::ControlType_<ContainerAllocator>  const> ConstPtr;
00042   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00043 }; // struct ControlType
00044 typedef  ::sr_robot_msgs::ControlType_<std::allocator<void> > ControlType;
00045 
00046 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType> ControlTypePtr;
00047 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType const> ControlTypeConstPtr;
00048 
00049 
00050 template<typename ContainerAllocator>
00051 std::ostream& operator<<(std::ostream& s, const  ::sr_robot_msgs::ControlType_<ContainerAllocator> & v)
00052 {
00053   ros::message_operations::Printer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >::stream(s, "", v);
00054   return s;}
00055 
00056 } // namespace sr_robot_msgs
00057 
00058 namespace ros
00059 {
00060 namespace message_traits
00061 {
00062 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ControlType_<ContainerAllocator> > : public TrueType {};
00063 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ControlType_<ContainerAllocator>  const> : public TrueType {};
00064 template<class ContainerAllocator>
00065 struct MD5Sum< ::sr_robot_msgs::ControlType_<ContainerAllocator> > {
00066   static const char* value() 
00067   {
00068     return "a91c98360f1bce9810ba146996feea80";
00069   }
00070 
00071   static const char* value(const  ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 
00072   static const uint64_t static_value1 = 0xa91c98360f1bce98ULL;
00073   static const uint64_t static_value2 = 0x10ba146996feea80ULL;
00074 };
00075 
00076 template<class ContainerAllocator>
00077 struct DataType< ::sr_robot_msgs::ControlType_<ContainerAllocator> > {
00078   static const char* value() 
00079   {
00080     return "sr_robot_msgs/ControlType";
00081   }
00082 
00083   static const char* value(const  ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct Definition< ::sr_robot_msgs::ControlType_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "int16 control_type\n\
00091 \n\
00092 int16 PWM=0\n\
00093 int16 FORCE=1\n\
00094 ";
00095   }
00096 
00097   static const char* value(const  ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 
00098 };
00099 
00100 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ControlType_<ContainerAllocator> > : public TrueType {};
00101 } // namespace message_traits
00102 } // namespace ros
00103 
00104 namespace ros
00105 {
00106 namespace serialization
00107 {
00108 
00109 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >
00110 {
00111   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00112   {
00113     stream.next(m.control_type);
00114   }
00115 
00116   ROS_DECLARE_ALLINONE_SERIALIZER;
00117 }; // struct ControlType_
00118 } // namespace serialization
00119 } // namespace ros
00120 
00121 namespace ros
00122 {
00123 namespace message_operations
00124 {
00125 
00126 template<class ContainerAllocator>
00127 struct Printer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >
00128 {
00129   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sr_robot_msgs::ControlType_<ContainerAllocator> & v) 
00130   {
00131     s << indent << "control_type: ";
00132     Printer<int16_t>::stream(s, indent + "  ", v.control_type);
00133   }
00134 };
00135 
00136 
00137 } // namespace message_operations
00138 } // namespace ros
00139 
00140 #endif // SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_H
00141 


sr_robot_msgs
Author(s): Ugo Cupcic/ugo@shadowrobot.com
autogenerated on Fri Jan 3 2014 12:01:40