$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arbotix/doc_stacks/2013-03-01_14-04-13.532425/arbotix/arbotix_msgs/msg/Digital.msg */ 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 private: 00054 static const char* __s_getDataType_() { return "arbotix_msgs/Digital"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "84d79480c76268c7cdf109dc588e00c4"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# Reading or command to a single digital IO pin.\n\ 00069 Header header\n\ 00070 \n\ 00071 # value of pin\n\ 00072 uint8 LOW=0\n\ 00073 uint8 HIGH=255\n\ 00074 \n\ 00075 uint8 value\n\ 00076 \n\ 00077 # direction of pin\n\ 00078 uint8 INPUT=0\n\ 00079 uint8 OUTPUT=255\n\ 00080 \n\ 00081 uint8 direction\n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: std_msgs/Header\n\ 00085 # Standard metadata for higher-level stamped data types.\n\ 00086 # This is generally used to communicate timestamped data \n\ 00087 # in a particular coordinate frame.\n\ 00088 # \n\ 00089 # sequence ID: consecutively increasing ID \n\ 00090 uint32 seq\n\ 00091 #Two-integer timestamp that is expressed as:\n\ 00092 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00093 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00094 # time-handling sugar is provided by the client library\n\ 00095 time stamp\n\ 00096 #Frame this data is associated with\n\ 00097 # 0: no frame\n\ 00098 # 1: global frame\n\ 00099 string frame_id\n\ 00100 \n\ 00101 "; } 00102 public: 00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00108 { 00109 ros::serialization::OStream stream(write_ptr, 1000000000); 00110 ros::serialization::serialize(stream, header); 00111 ros::serialization::serialize(stream, value); 00112 ros::serialization::serialize(stream, direction); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, header); 00120 ros::serialization::deserialize(stream, value); 00121 ros::serialization::deserialize(stream, direction); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(header); 00129 size += ros::serialization::serializationLength(value); 00130 size += ros::serialization::serializationLength(direction); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::arbotix_msgs::Digital_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::arbotix_msgs::Digital_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct Digital 00138 typedef ::arbotix_msgs::Digital_<std::allocator<void> > Digital; 00139 00140 typedef boost::shared_ptr< ::arbotix_msgs::Digital> DigitalPtr; 00141 typedef boost::shared_ptr< ::arbotix_msgs::Digital const> DigitalConstPtr; 00142 00143 00144 template<typename ContainerAllocator> 00145 std::ostream& operator<<(std::ostream& s, const ::arbotix_msgs::Digital_<ContainerAllocator> & v) 00146 { 00147 ros::message_operations::Printer< ::arbotix_msgs::Digital_<ContainerAllocator> >::stream(s, "", v); 00148 return s;} 00149 00150 } // namespace arbotix_msgs 00151 00152 namespace ros 00153 { 00154 namespace message_traits 00155 { 00156 template<class ContainerAllocator> struct IsMessage< ::arbotix_msgs::Digital_<ContainerAllocator> > : public TrueType {}; 00157 template<class ContainerAllocator> struct IsMessage< ::arbotix_msgs::Digital_<ContainerAllocator> const> : public TrueType {}; 00158 template<class ContainerAllocator> 00159 struct MD5Sum< ::arbotix_msgs::Digital_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "84d79480c76268c7cdf109dc588e00c4"; 00163 } 00164 00165 static const char* value(const ::arbotix_msgs::Digital_<ContainerAllocator> &) { return value(); } 00166 static const uint64_t static_value1 = 0x84d79480c76268c7ULL; 00167 static const uint64_t static_value2 = 0xcdf109dc588e00c4ULL; 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct DataType< ::arbotix_msgs::Digital_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "arbotix_msgs/Digital"; 00175 } 00176 00177 static const char* value(const ::arbotix_msgs::Digital_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct Definition< ::arbotix_msgs::Digital_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "# Reading or command to a single digital IO pin.\n\ 00185 Header header\n\ 00186 \n\ 00187 # value of pin\n\ 00188 uint8 LOW=0\n\ 00189 uint8 HIGH=255\n\ 00190 \n\ 00191 uint8 value\n\ 00192 \n\ 00193 # direction of pin\n\ 00194 uint8 INPUT=0\n\ 00195 uint8 OUTPUT=255\n\ 00196 \n\ 00197 uint8 direction\n\ 00198 \n\ 00199 ================================================================================\n\ 00200 MSG: std_msgs/Header\n\ 00201 # Standard metadata for higher-level stamped data types.\n\ 00202 # This is generally used to communicate timestamped data \n\ 00203 # in a particular coordinate frame.\n\ 00204 # \n\ 00205 # sequence ID: consecutively increasing ID \n\ 00206 uint32 seq\n\ 00207 #Two-integer timestamp that is expressed as:\n\ 00208 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00209 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00210 # time-handling sugar is provided by the client library\n\ 00211 time stamp\n\ 00212 #Frame this data is associated with\n\ 00213 # 0: no frame\n\ 00214 # 1: global frame\n\ 00215 string frame_id\n\ 00216 \n\ 00217 "; 00218 } 00219 00220 static const char* value(const ::arbotix_msgs::Digital_<ContainerAllocator> &) { return value(); } 00221 }; 00222 00223 template<class ContainerAllocator> struct HasHeader< ::arbotix_msgs::Digital_<ContainerAllocator> > : public TrueType {}; 00224 template<class ContainerAllocator> struct HasHeader< const ::arbotix_msgs::Digital_<ContainerAllocator> > : public TrueType {}; 00225 } // namespace message_traits 00226 } // namespace ros 00227 00228 namespace ros 00229 { 00230 namespace serialization 00231 { 00232 00233 template<class ContainerAllocator> struct Serializer< ::arbotix_msgs::Digital_<ContainerAllocator> > 00234 { 00235 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00236 { 00237 stream.next(m.header); 00238 stream.next(m.value); 00239 stream.next(m.direction); 00240 } 00241 00242 ROS_DECLARE_ALLINONE_SERIALIZER; 00243 }; // struct Digital_ 00244 } // namespace serialization 00245 } // namespace ros 00246 00247 namespace ros 00248 { 00249 namespace message_operations 00250 { 00251 00252 template<class ContainerAllocator> 00253 struct Printer< ::arbotix_msgs::Digital_<ContainerAllocator> > 00254 { 00255 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arbotix_msgs::Digital_<ContainerAllocator> & v) 00256 { 00257 s << indent << "header: "; 00258 s << std::endl; 00259 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00260 s << indent << "value: "; 00261 Printer<uint8_t>::stream(s, indent + " ", v.value); 00262 s << indent << "direction: "; 00263 Printer<uint8_t>::stream(s, indent + " ", v.direction); 00264 } 00265 }; 00266 00267 00268 } // namespace message_operations 00269 } // namespace ros 00270 00271 #endif // ARBOTIX_MSGS_MESSAGE_DIGITAL_H 00272