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