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