00001
00002 #ifndef ART_MSGS_MESSAGE_ESTOPSTATE_H
00003 #define ART_MSGS_MESSAGE_ESTOPSTATE_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 EstopState_ : public ros::Message
00018 {
00019 typedef EstopState_<ContainerAllocator> Type;
00020
00021 EstopState_()
00022 : state(0)
00023 {
00024 }
00025
00026 EstopState_(const ContainerAllocator& _alloc)
00027 : state(0)
00028 {
00029 }
00030
00031 typedef uint16_t _state_type;
00032 uint16_t state;
00033
00034 enum { Pause = 0 };
00035 enum { Run = 1 };
00036 enum { Done = 2 };
00037 enum { Suspend = 3 };
00038 enum { N_states = 4 };
00039
00040 private:
00041 static const char* __s_getDataType_() { return "art_msgs/EstopState"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "195d9329d308e6ca2b9145be58b92e7e"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# Navigator E-stop state values\n\
00056 # $Id: EstopState.msg 996 2011-02-27 16:07:34Z jack.oquin $\n\
00057 \n\
00058 uint16 Pause = 0 # E-stop pause (initial state)\n\
00059 uint16 Run = 1 # E-stop run enabled\n\
00060 uint16 Done = 2 # mission finished (disabled)\n\
00061 uint16 Suspend = 3 # suspend autonomous operation\n\
00062 uint16 N_states = 4\n\
00063 \n\
00064 uint16 state\n\
00065 \n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, state);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 ros::serialization::deserialize(stream, state);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(state);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::art_msgs::EstopState_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::art_msgs::EstopState_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::art_msgs::EstopState_<std::allocator<void> > EstopState;
00097
00098 typedef boost::shared_ptr< ::art_msgs::EstopState> EstopStatePtr;
00099 typedef boost::shared_ptr< ::art_msgs::EstopState const> EstopStateConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::art_msgs::EstopState_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::art_msgs::EstopState_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::art_msgs::EstopState_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "195d9329d308e6ca2b9145be58b92e7e";
00119 }
00120
00121 static const char* value(const ::art_msgs::EstopState_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x195d9329d308e6caULL;
00123 static const uint64_t static_value2 = 0x2b9145be58b92e7eULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::art_msgs::EstopState_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "art_msgs/EstopState";
00131 }
00132
00133 static const char* value(const ::art_msgs::EstopState_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::art_msgs::EstopState_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# Navigator E-stop state values\n\
00141 # $Id: EstopState.msg 996 2011-02-27 16:07:34Z jack.oquin $\n\
00142 \n\
00143 uint16 Pause = 0 # E-stop pause (initial state)\n\
00144 uint16 Run = 1 # E-stop run enabled\n\
00145 uint16 Done = 2 # mission finished (disabled)\n\
00146 uint16 Suspend = 3 # suspend autonomous operation\n\
00147 uint16 N_states = 4\n\
00148 \n\
00149 uint16 state\n\
00150 \n\
00151 ";
00152 }
00153
00154 static const char* value(const ::art_msgs::EstopState_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::EstopState_<ContainerAllocator> > : public TrueType {};
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace serialization
00164 {
00165
00166 template<class ContainerAllocator> struct Serializer< ::art_msgs::EstopState_<ContainerAllocator> >
00167 {
00168 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00169 {
00170 stream.next(m.state);
00171 }
00172
00173 ROS_DECLARE_ALLINONE_SERIALIZER;
00174 };
00175 }
00176 }
00177
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182
00183 template<class ContainerAllocator>
00184 struct Printer< ::art_msgs::EstopState_<ContainerAllocator> >
00185 {
00186 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::EstopState_<ContainerAllocator> & v)
00187 {
00188 s << indent << "state: ";
00189 Printer<uint16_t>::stream(s, indent + " ", v.state);
00190 }
00191 };
00192
00193
00194 }
00195 }
00196
00197 #endif // ART_MSGS_MESSAGE_ESTOPSTATE_H
00198