00001
00002 #ifndef ART_MSGS_MESSAGE_DRIVERSTATE_H
00003 #define ART_MSGS_MESSAGE_DRIVERSTATE_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
00014 namespace art_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct DriverState_ : public ros::Message
00018 {
00019 typedef DriverState_<ContainerAllocator> Type;
00020
00021 DriverState_()
00022 : state(0)
00023 {
00024 }
00025
00026 DriverState_(const ContainerAllocator& _alloc)
00027 : state(0)
00028 {
00029 }
00030
00031 typedef uint32_t _state_type;
00032 uint32_t state;
00033
00034 enum { CLOSED = 0 };
00035 enum { OPENED = 1 };
00036 enum { RUNNING = 2 };
00037
00038 private:
00039 static const char* __s_getDataType_() { return "art_msgs/DriverState"; }
00040 public:
00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00042
00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00044
00045 private:
00046 static const char* __s_getMD5Sum_() { return "92d8e6361001072f038b293728a430f0"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00049
00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00051
00052 private:
00053 static const char* __s_getMessageDefinition_() { return "# ART driver states -- similar to those in driver_base.\n\
00054 \n\
00055 # $Id: DriverState.msg 1161 2011-03-26 02:10:49Z jack.oquin $\n\
00056 \n\
00057 # constants\n\
00058 uint32 CLOSED = 0 # Not connected to the hardware\n\
00059 uint32 OPENED = 1 # Passively connected to the hardware\n\
00060 uint32 RUNNING = 2 # Sending hardware commands\n\
00061 \n\
00062 uint32 state\n\
00063 \n\
00064 "; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00067
00068 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00071 {
00072 ros::serialization::OStream stream(write_ptr, 1000000000);
00073 ros::serialization::serialize(stream, state);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00078 {
00079 ros::serialization::IStream stream(read_ptr, 1000000000);
00080 ros::serialization::deserialize(stream, state);
00081 return stream.getData();
00082 }
00083
00084 ROS_DEPRECATED virtual uint32_t serializationLength() const
00085 {
00086 uint32_t size = 0;
00087 size += ros::serialization::serializationLength(state);
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::art_msgs::DriverState_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::art_msgs::DriverState_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::art_msgs::DriverState_<std::allocator<void> > DriverState;
00095
00096 typedef boost::shared_ptr< ::art_msgs::DriverState> DriverStatePtr;
00097 typedef boost::shared_ptr< ::art_msgs::DriverState const> DriverStateConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::art_msgs::DriverState_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::art_msgs::DriverState_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::art_msgs::DriverState_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "92d8e6361001072f038b293728a430f0";
00117 }
00118
00119 static const char* value(const ::art_msgs::DriverState_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0x92d8e6361001072fULL;
00121 static const uint64_t static_value2 = 0x038b293728a430f0ULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::art_msgs::DriverState_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "art_msgs/DriverState";
00129 }
00130
00131 static const char* value(const ::art_msgs::DriverState_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::art_msgs::DriverState_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "# ART driver states -- similar to those in driver_base.\n\
00139 \n\
00140 # $Id: DriverState.msg 1161 2011-03-26 02:10:49Z jack.oquin $\n\
00141 \n\
00142 # constants\n\
00143 uint32 CLOSED = 0 # Not connected to the hardware\n\
00144 uint32 OPENED = 1 # Passively connected to the hardware\n\
00145 uint32 RUNNING = 2 # Sending hardware commands\n\
00146 \n\
00147 uint32 state\n\
00148 \n\
00149 ";
00150 }
00151
00152 static const char* value(const ::art_msgs::DriverState_<ContainerAllocator> &) { return value(); }
00153 };
00154
00155 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::DriverState_<ContainerAllocator> > : public TrueType {};
00156 }
00157 }
00158
00159 namespace ros
00160 {
00161 namespace serialization
00162 {
00163
00164 template<class ContainerAllocator> struct Serializer< ::art_msgs::DriverState_<ContainerAllocator> >
00165 {
00166 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00167 {
00168 stream.next(m.state);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::art_msgs::DriverState_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::DriverState_<ContainerAllocator> & v)
00185 {
00186 s << indent << "state: ";
00187 Printer<uint32_t>::stream(s, indent + " ", v.state);
00188 }
00189 };
00190
00191
00192 }
00193 }
00194
00195 #endif // ART_MSGS_MESSAGE_DRIVERSTATE_H
00196