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