$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/IOadrCommand.msg */ 00002 #ifndef ART_MSGS_MESSAGE_IOADRCOMMAND_H 00003 #define ART_MSGS_MESSAGE_IOADRCOMMAND_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 IOadrCommand_ { 00023 typedef IOadrCommand_<ContainerAllocator> Type; 00024 00025 IOadrCommand_() 00026 : header() 00027 , relays_on(0) 00028 , relays_off(0) 00029 { 00030 } 00031 00032 IOadrCommand_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , relays_on(0) 00035 , relays_off(0) 00036 { 00037 } 00038 00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00040 ::std_msgs::Header_<ContainerAllocator> header; 00041 00042 typedef uint8_t _relays_on_type; 00043 uint8_t relays_on; 00044 00045 typedef uint8_t _relays_off_type; 00046 uint8_t relays_off; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "art_msgs/IOadrCommand"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "1ba0a21767ee8a4bb7c80945f20b670c"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# NCD IOADR8x controller command message for ART vehicle\n\ 00065 #\n\ 00066 # Sets or clears relays. See: IOadrState for bit definitions.\n\ 00067 \n\ 00068 # $Id: IOadrCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00069 \n\ 00070 Header header # standard ROS message header\n\ 00071 \n\ 00072 uint8 relays_on # relays to set\n\ 00073 uint8 relays_off # relays to clear\n\ 00074 \n\ 00075 ================================================================================\n\ 00076 MSG: std_msgs/Header\n\ 00077 # Standard metadata for higher-level stamped data types.\n\ 00078 # This is generally used to communicate timestamped data \n\ 00079 # in a particular coordinate frame.\n\ 00080 # \n\ 00081 # sequence ID: consecutively increasing ID \n\ 00082 uint32 seq\n\ 00083 #Two-integer timestamp that is expressed as:\n\ 00084 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00085 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00086 # time-handling sugar is provided by the client library\n\ 00087 time stamp\n\ 00088 #Frame this data is associated with\n\ 00089 # 0: no frame\n\ 00090 # 1: global frame\n\ 00091 string frame_id\n\ 00092 \n\ 00093 "; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00100 { 00101 ros::serialization::OStream stream(write_ptr, 1000000000); 00102 ros::serialization::serialize(stream, header); 00103 ros::serialization::serialize(stream, relays_on); 00104 ros::serialization::serialize(stream, relays_off); 00105 return stream.getData(); 00106 } 00107 00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00109 { 00110 ros::serialization::IStream stream(read_ptr, 1000000000); 00111 ros::serialization::deserialize(stream, header); 00112 ros::serialization::deserialize(stream, relays_on); 00113 ros::serialization::deserialize(stream, relays_off); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint32_t serializationLength() const 00118 { 00119 uint32_t size = 0; 00120 size += ros::serialization::serializationLength(header); 00121 size += ros::serialization::serializationLength(relays_on); 00122 size += ros::serialization::serializationLength(relays_off); 00123 return size; 00124 } 00125 00126 typedef boost::shared_ptr< ::art_msgs::IOadrCommand_<ContainerAllocator> > Ptr; 00127 typedef boost::shared_ptr< ::art_msgs::IOadrCommand_<ContainerAllocator> const> ConstPtr; 00128 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00129 }; // struct IOadrCommand 00130 typedef ::art_msgs::IOadrCommand_<std::allocator<void> > IOadrCommand; 00131 00132 typedef boost::shared_ptr< ::art_msgs::IOadrCommand> IOadrCommandPtr; 00133 typedef boost::shared_ptr< ::art_msgs::IOadrCommand const> IOadrCommandConstPtr; 00134 00135 00136 template<typename ContainerAllocator> 00137 std::ostream& operator<<(std::ostream& s, const ::art_msgs::IOadrCommand_<ContainerAllocator> & v) 00138 { 00139 ros::message_operations::Printer< ::art_msgs::IOadrCommand_<ContainerAllocator> >::stream(s, "", v); 00140 return s;} 00141 00142 } // namespace art_msgs 00143 00144 namespace ros 00145 { 00146 namespace message_traits 00147 { 00148 template<class ContainerAllocator> struct IsMessage< ::art_msgs::IOadrCommand_<ContainerAllocator> > : public TrueType {}; 00149 template<class ContainerAllocator> struct IsMessage< ::art_msgs::IOadrCommand_<ContainerAllocator> const> : public TrueType {}; 00150 template<class ContainerAllocator> 00151 struct MD5Sum< ::art_msgs::IOadrCommand_<ContainerAllocator> > { 00152 static const char* value() 00153 { 00154 return "1ba0a21767ee8a4bb7c80945f20b670c"; 00155 } 00156 00157 static const char* value(const ::art_msgs::IOadrCommand_<ContainerAllocator> &) { return value(); } 00158 static const uint64_t static_value1 = 0x1ba0a21767ee8a4bULL; 00159 static const uint64_t static_value2 = 0xb7c80945f20b670cULL; 00160 }; 00161 00162 template<class ContainerAllocator> 00163 struct DataType< ::art_msgs::IOadrCommand_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "art_msgs/IOadrCommand"; 00167 } 00168 00169 static const char* value(const ::art_msgs::IOadrCommand_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 template<class ContainerAllocator> 00173 struct Definition< ::art_msgs::IOadrCommand_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "# NCD IOADR8x controller command message for ART vehicle\n\ 00177 #\n\ 00178 # Sets or clears relays. See: IOadrState for bit definitions.\n\ 00179 \n\ 00180 # $Id: IOadrCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00181 \n\ 00182 Header header # standard ROS message header\n\ 00183 \n\ 00184 uint8 relays_on # relays to set\n\ 00185 uint8 relays_off # relays to clear\n\ 00186 \n\ 00187 ================================================================================\n\ 00188 MSG: std_msgs/Header\n\ 00189 # Standard metadata for higher-level stamped data types.\n\ 00190 # This is generally used to communicate timestamped data \n\ 00191 # in a particular coordinate frame.\n\ 00192 # \n\ 00193 # sequence ID: consecutively increasing ID \n\ 00194 uint32 seq\n\ 00195 #Two-integer timestamp that is expressed as:\n\ 00196 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00197 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00198 # time-handling sugar is provided by the client library\n\ 00199 time stamp\n\ 00200 #Frame this data is associated with\n\ 00201 # 0: no frame\n\ 00202 # 1: global frame\n\ 00203 string frame_id\n\ 00204 \n\ 00205 "; 00206 } 00207 00208 static const char* value(const ::art_msgs::IOadrCommand_<ContainerAllocator> &) { return value(); } 00209 }; 00210 00211 template<class ContainerAllocator> struct HasHeader< ::art_msgs::IOadrCommand_<ContainerAllocator> > : public TrueType {}; 00212 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::IOadrCommand_<ContainerAllocator> > : public TrueType {}; 00213 } // namespace message_traits 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace serialization 00219 { 00220 00221 template<class ContainerAllocator> struct Serializer< ::art_msgs::IOadrCommand_<ContainerAllocator> > 00222 { 00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00224 { 00225 stream.next(m.header); 00226 stream.next(m.relays_on); 00227 stream.next(m.relays_off); 00228 } 00229 00230 ROS_DECLARE_ALLINONE_SERIALIZER; 00231 }; // struct IOadrCommand_ 00232 } // namespace serialization 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace message_operations 00238 { 00239 00240 template<class ContainerAllocator> 00241 struct Printer< ::art_msgs::IOadrCommand_<ContainerAllocator> > 00242 { 00243 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::IOadrCommand_<ContainerAllocator> & v) 00244 { 00245 s << indent << "header: "; 00246 s << std::endl; 00247 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00248 s << indent << "relays_on: "; 00249 Printer<uint8_t>::stream(s, indent + " ", v.relays_on); 00250 s << indent << "relays_off: "; 00251 Printer<uint8_t>::stream(s, indent + " ", v.relays_off); 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // ART_MSGS_MESSAGE_IOADRCOMMAND_H 00260