$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/PilotBehavior.msg */ 00002 #ifndef ART_MSGS_MESSAGE_PILOTBEHAVIOR_H 00003 #define ART_MSGS_MESSAGE_PILOTBEHAVIOR_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 PilotBehavior_ { 00022 typedef PilotBehavior_<ContainerAllocator> Type; 00023 00024 PilotBehavior_() 00025 : value(0) 00026 { 00027 } 00028 00029 PilotBehavior_(const ContainerAllocator& _alloc) 00030 : value(0) 00031 { 00032 } 00033 00034 typedef uint8_t _value_type; 00035 uint8_t value; 00036 00037 enum { Run = 0 }; 00038 enum { Pause = 1 }; 00039 enum { Off = 2 }; 00040 enum { N_behaviors = 3 }; 00041 00042 private: 00043 static const char* __s_getDataType_() { return "art_msgs/PilotBehavior"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "ee280e8dd8b427f32f9742e8b4885525"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "# ART autonomous vehicle pilot node behaviors.\n\ 00058 #\n\ 00059 # Normally, the pilot node does Run, continually sending commands to\n\ 00060 # the servo device actuators and monitoring their state. With Pause,\n\ 00061 # the pilot becomes passive, allowing a learning algorithm or human\n\ 00062 # controller direct access to those devices. In the Off state,\n\ 00063 # various devices are shut down: the transmission in Park, the brake\n\ 00064 # released, the throttle at idle. The engine is not turned off, but\n\ 00065 # it could be.\n\ 00066 \n\ 00067 # $Id: PilotBehavior.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\ 00068 \n\ 00069 # Behavior value\n\ 00070 uint8 value\n\ 00071 \n\ 00072 # Behavior numbers:\n\ 00073 uint8 Run = 0 # normal driving\n\ 00074 uint8 Pause = 1 # stop issuing servo commands\n\ 00075 uint8 Off = 2 # turn off devices\n\ 00076 uint8 N_behaviors = 3\n\ 00077 \n\ 00078 "; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00085 { 00086 ros::serialization::OStream stream(write_ptr, 1000000000); 00087 ros::serialization::serialize(stream, value); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, value); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(value); 00102 return size; 00103 } 00104 00105 typedef boost::shared_ptr< ::art_msgs::PilotBehavior_<ContainerAllocator> > Ptr; 00106 typedef boost::shared_ptr< ::art_msgs::PilotBehavior_<ContainerAllocator> const> ConstPtr; 00107 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00108 }; // struct PilotBehavior 00109 typedef ::art_msgs::PilotBehavior_<std::allocator<void> > PilotBehavior; 00110 00111 typedef boost::shared_ptr< ::art_msgs::PilotBehavior> PilotBehaviorPtr; 00112 typedef boost::shared_ptr< ::art_msgs::PilotBehavior const> PilotBehaviorConstPtr; 00113 00114 00115 template<typename ContainerAllocator> 00116 std::ostream& operator<<(std::ostream& s, const ::art_msgs::PilotBehavior_<ContainerAllocator> & v) 00117 { 00118 ros::message_operations::Printer< ::art_msgs::PilotBehavior_<ContainerAllocator> >::stream(s, "", v); 00119 return s;} 00120 00121 } // namespace art_msgs 00122 00123 namespace ros 00124 { 00125 namespace message_traits 00126 { 00127 template<class ContainerAllocator> struct IsMessage< ::art_msgs::PilotBehavior_<ContainerAllocator> > : public TrueType {}; 00128 template<class ContainerAllocator> struct IsMessage< ::art_msgs::PilotBehavior_<ContainerAllocator> const> : public TrueType {}; 00129 template<class ContainerAllocator> 00130 struct MD5Sum< ::art_msgs::PilotBehavior_<ContainerAllocator> > { 00131 static const char* value() 00132 { 00133 return "ee280e8dd8b427f32f9742e8b4885525"; 00134 } 00135 00136 static const char* value(const ::art_msgs::PilotBehavior_<ContainerAllocator> &) { return value(); } 00137 static const uint64_t static_value1 = 0xee280e8dd8b427f3ULL; 00138 static const uint64_t static_value2 = 0x2f9742e8b4885525ULL; 00139 }; 00140 00141 template<class ContainerAllocator> 00142 struct DataType< ::art_msgs::PilotBehavior_<ContainerAllocator> > { 00143 static const char* value() 00144 { 00145 return "art_msgs/PilotBehavior"; 00146 } 00147 00148 static const char* value(const ::art_msgs::PilotBehavior_<ContainerAllocator> &) { return value(); } 00149 }; 00150 00151 template<class ContainerAllocator> 00152 struct Definition< ::art_msgs::PilotBehavior_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "# ART autonomous vehicle pilot node behaviors.\n\ 00156 #\n\ 00157 # Normally, the pilot node does Run, continually sending commands to\n\ 00158 # the servo device actuators and monitoring their state. With Pause,\n\ 00159 # the pilot becomes passive, allowing a learning algorithm or human\n\ 00160 # controller direct access to those devices. In the Off state,\n\ 00161 # various devices are shut down: the transmission in Park, the brake\n\ 00162 # released, the throttle at idle. The engine is not turned off, but\n\ 00163 # it could be.\n\ 00164 \n\ 00165 # $Id: PilotBehavior.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\ 00166 \n\ 00167 # Behavior value\n\ 00168 uint8 value\n\ 00169 \n\ 00170 # Behavior numbers:\n\ 00171 uint8 Run = 0 # normal driving\n\ 00172 uint8 Pause = 1 # stop issuing servo commands\n\ 00173 uint8 Off = 2 # turn off devices\n\ 00174 uint8 N_behaviors = 3\n\ 00175 \n\ 00176 "; 00177 } 00178 00179 static const char* value(const ::art_msgs::PilotBehavior_<ContainerAllocator> &) { return value(); } 00180 }; 00181 00182 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::PilotBehavior_<ContainerAllocator> > : public TrueType {}; 00183 } // namespace message_traits 00184 } // namespace ros 00185 00186 namespace ros 00187 { 00188 namespace serialization 00189 { 00190 00191 template<class ContainerAllocator> struct Serializer< ::art_msgs::PilotBehavior_<ContainerAllocator> > 00192 { 00193 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00194 { 00195 stream.next(m.value); 00196 } 00197 00198 ROS_DECLARE_ALLINONE_SERIALIZER; 00199 }; // struct PilotBehavior_ 00200 } // namespace serialization 00201 } // namespace ros 00202 00203 namespace ros 00204 { 00205 namespace message_operations 00206 { 00207 00208 template<class ContainerAllocator> 00209 struct Printer< ::art_msgs::PilotBehavior_<ContainerAllocator> > 00210 { 00211 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::PilotBehavior_<ContainerAllocator> & v) 00212 { 00213 s << indent << "value: "; 00214 Printer<uint8_t>::stream(s, indent + " ", v.value); 00215 } 00216 }; 00217 00218 00219 } // namespace message_operations 00220 } // namespace ros 00221 00222 #endif // ART_MSGS_MESSAGE_PILOTBEHAVIOR_H 00223