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