$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-art_vehicle/doc_stacks/2013-03-01_14-08-11.497537/art_vehicle/art_msgs/msg/IOadrState.msg */ 00002 #ifndef ART_MSGS_MESSAGE_IOADRSTATE_H 00003 #define ART_MSGS_MESSAGE_IOADRSTATE_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 art_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct IOadrState_ { 00023 typedef IOadrState_<ContainerAllocator> Type; 00024 00025 IOadrState_() 00026 : header() 00027 , relays(0) 00028 , digitalB(0) 00029 , voltages() 00030 { 00031 voltages.assign(0.0); 00032 } 00033 00034 IOadrState_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , relays(0) 00037 , digitalB(0) 00038 , voltages() 00039 { 00040 voltages.assign(0.0); 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 typedef uint8_t _relays_type; 00047 uint8_t relays; 00048 00049 typedef uint8_t _digitalB_type; 00050 uint8_t digitalB; 00051 00052 typedef boost::array<float, 3> _voltages_type; 00053 boost::array<float, 3> voltages; 00054 00055 enum { ENABLED = 1 }; 00056 enum { RUN = 2 }; 00057 enum { FLASHER = 4 }; 00058 enum { ALARM = 8 }; 00059 enum { LASER_FRONT = 16 }; 00060 enum { LASER_TOP = 32 }; 00061 enum { TURN_LEFT = 64 }; 00062 enum { TURN_RIGHT = 128 }; 00063 enum { N_VOLTAGES = 3 }; 00064 00065 ROS_DEPRECATED uint32_t get_voltages_size() const { return (uint32_t)voltages.size(); } 00066 private: 00067 static const char* __s_getDataType_() { return "art_msgs/IOadrState"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "990cf1675736cc78e57b4a0463dd540e"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "# NCD IOADR8x controller state message for ART vehicle\n\ 00082 \n\ 00083 # $Id: IOadrState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00084 \n\ 00085 Header header\n\ 00086 \n\ 00087 # constant bit values for relays and digitalB inputs\n\ 00088 uint8 ENABLED = 1\n\ 00089 uint8 RUN = 2\n\ 00090 uint8 FLASHER = 4\n\ 00091 uint8 ALARM = 8\n\ 00092 uint8 LASER_FRONT = 16\n\ 00093 uint8 LASER_TOP = 32\n\ 00094 uint8 TURN_LEFT = 64\n\ 00095 uint8 TURN_RIGHT = 128\n\ 00096 \n\ 00097 uint8 relays # current relays settings\n\ 00098 \n\ 00099 uint8 digitalB # digital input B\n\ 00100 \n\ 00101 # generally, voltages[0] is the steering position sensor\n\ 00102 int32 N_VOLTAGES = 3 # number of analog voltages\n\ 00103 float32[3] voltages # analog voltages [A, B, C]\n\ 00104 \n\ 00105 ================================================================================\n\ 00106 MSG: std_msgs/Header\n\ 00107 # Standard metadata for higher-level stamped data types.\n\ 00108 # This is generally used to communicate timestamped data \n\ 00109 # in a particular coordinate frame.\n\ 00110 # \n\ 00111 # sequence ID: consecutively increasing ID \n\ 00112 uint32 seq\n\ 00113 #Two-integer timestamp that is expressed as:\n\ 00114 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00115 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00116 # time-handling sugar is provided by the client library\n\ 00117 time stamp\n\ 00118 #Frame this data is associated with\n\ 00119 # 0: no frame\n\ 00120 # 1: global frame\n\ 00121 string frame_id\n\ 00122 \n\ 00123 "; } 00124 public: 00125 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00126 00127 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00130 { 00131 ros::serialization::OStream stream(write_ptr, 1000000000); 00132 ros::serialization::serialize(stream, header); 00133 ros::serialization::serialize(stream, relays); 00134 ros::serialization::serialize(stream, digitalB); 00135 ros::serialization::serialize(stream, voltages); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00140 { 00141 ros::serialization::IStream stream(read_ptr, 1000000000); 00142 ros::serialization::deserialize(stream, header); 00143 ros::serialization::deserialize(stream, relays); 00144 ros::serialization::deserialize(stream, digitalB); 00145 ros::serialization::deserialize(stream, voltages); 00146 return stream.getData(); 00147 } 00148 00149 ROS_DEPRECATED virtual uint32_t serializationLength() const 00150 { 00151 uint32_t size = 0; 00152 size += ros::serialization::serializationLength(header); 00153 size += ros::serialization::serializationLength(relays); 00154 size += ros::serialization::serializationLength(digitalB); 00155 size += ros::serialization::serializationLength(voltages); 00156 return size; 00157 } 00158 00159 typedef boost::shared_ptr< ::art_msgs::IOadrState_<ContainerAllocator> > Ptr; 00160 typedef boost::shared_ptr< ::art_msgs::IOadrState_<ContainerAllocator> const> ConstPtr; 00161 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00162 }; // struct IOadrState 00163 typedef ::art_msgs::IOadrState_<std::allocator<void> > IOadrState; 00164 00165 typedef boost::shared_ptr< ::art_msgs::IOadrState> IOadrStatePtr; 00166 typedef boost::shared_ptr< ::art_msgs::IOadrState const> IOadrStateConstPtr; 00167 00168 00169 template<typename ContainerAllocator> 00170 std::ostream& operator<<(std::ostream& s, const ::art_msgs::IOadrState_<ContainerAllocator> & v) 00171 { 00172 ros::message_operations::Printer< ::art_msgs::IOadrState_<ContainerAllocator> >::stream(s, "", v); 00173 return s;} 00174 00175 } // namespace art_msgs 00176 00177 namespace ros 00178 { 00179 namespace message_traits 00180 { 00181 template<class ContainerAllocator> struct IsMessage< ::art_msgs::IOadrState_<ContainerAllocator> > : public TrueType {}; 00182 template<class ContainerAllocator> struct IsMessage< ::art_msgs::IOadrState_<ContainerAllocator> const> : public TrueType {}; 00183 template<class ContainerAllocator> 00184 struct MD5Sum< ::art_msgs::IOadrState_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "990cf1675736cc78e57b4a0463dd540e"; 00188 } 00189 00190 static const char* value(const ::art_msgs::IOadrState_<ContainerAllocator> &) { return value(); } 00191 static const uint64_t static_value1 = 0x990cf1675736cc78ULL; 00192 static const uint64_t static_value2 = 0xe57b4a0463dd540eULL; 00193 }; 00194 00195 template<class ContainerAllocator> 00196 struct DataType< ::art_msgs::IOadrState_<ContainerAllocator> > { 00197 static const char* value() 00198 { 00199 return "art_msgs/IOadrState"; 00200 } 00201 00202 static const char* value(const ::art_msgs::IOadrState_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 template<class ContainerAllocator> 00206 struct Definition< ::art_msgs::IOadrState_<ContainerAllocator> > { 00207 static const char* value() 00208 { 00209 return "# NCD IOADR8x controller state message for ART vehicle\n\ 00210 \n\ 00211 # $Id: IOadrState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00212 \n\ 00213 Header header\n\ 00214 \n\ 00215 # constant bit values for relays and digitalB inputs\n\ 00216 uint8 ENABLED = 1\n\ 00217 uint8 RUN = 2\n\ 00218 uint8 FLASHER = 4\n\ 00219 uint8 ALARM = 8\n\ 00220 uint8 LASER_FRONT = 16\n\ 00221 uint8 LASER_TOP = 32\n\ 00222 uint8 TURN_LEFT = 64\n\ 00223 uint8 TURN_RIGHT = 128\n\ 00224 \n\ 00225 uint8 relays # current relays settings\n\ 00226 \n\ 00227 uint8 digitalB # digital input B\n\ 00228 \n\ 00229 # generally, voltages[0] is the steering position sensor\n\ 00230 int32 N_VOLTAGES = 3 # number of analog voltages\n\ 00231 float32[3] voltages # analog voltages [A, B, C]\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: std_msgs/Header\n\ 00235 # Standard metadata for higher-level stamped data types.\n\ 00236 # This is generally used to communicate timestamped data \n\ 00237 # in a particular coordinate frame.\n\ 00238 # \n\ 00239 # sequence ID: consecutively increasing ID \n\ 00240 uint32 seq\n\ 00241 #Two-integer timestamp that is expressed as:\n\ 00242 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00243 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00244 # time-handling sugar is provided by the client library\n\ 00245 time stamp\n\ 00246 #Frame this data is associated with\n\ 00247 # 0: no frame\n\ 00248 # 1: global frame\n\ 00249 string frame_id\n\ 00250 \n\ 00251 "; 00252 } 00253 00254 static const char* value(const ::art_msgs::IOadrState_<ContainerAllocator> &) { return value(); } 00255 }; 00256 00257 template<class ContainerAllocator> struct HasHeader< ::art_msgs::IOadrState_<ContainerAllocator> > : public TrueType {}; 00258 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::IOadrState_<ContainerAllocator> > : public TrueType {}; 00259 } // namespace message_traits 00260 } // namespace ros 00261 00262 namespace ros 00263 { 00264 namespace serialization 00265 { 00266 00267 template<class ContainerAllocator> struct Serializer< ::art_msgs::IOadrState_<ContainerAllocator> > 00268 { 00269 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00270 { 00271 stream.next(m.header); 00272 stream.next(m.relays); 00273 stream.next(m.digitalB); 00274 stream.next(m.voltages); 00275 } 00276 00277 ROS_DECLARE_ALLINONE_SERIALIZER; 00278 }; // struct IOadrState_ 00279 } // namespace serialization 00280 } // namespace ros 00281 00282 namespace ros 00283 { 00284 namespace message_operations 00285 { 00286 00287 template<class ContainerAllocator> 00288 struct Printer< ::art_msgs::IOadrState_<ContainerAllocator> > 00289 { 00290 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::IOadrState_<ContainerAllocator> & v) 00291 { 00292 s << indent << "header: "; 00293 s << std::endl; 00294 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00295 s << indent << "relays: "; 00296 Printer<uint8_t>::stream(s, indent + " ", v.relays); 00297 s << indent << "digitalB: "; 00298 Printer<uint8_t>::stream(s, indent + " ", v.digitalB); 00299 s << indent << "voltages[]" << std::endl; 00300 for (size_t i = 0; i < v.voltages.size(); ++i) 00301 { 00302 s << indent << " voltages[" << i << "]: "; 00303 Printer<float>::stream(s, indent + " ", v.voltages[i]); 00304 } 00305 } 00306 }; 00307 00308 00309 } // namespace message_operations 00310 } // namespace ros 00311 00312 #endif // ART_MSGS_MESSAGE_IOADRSTATE_H 00313