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


ros_arduino_msgs
Author(s): Patrick Goebel
autogenerated on Mon Oct 6 2014 06:51:43