Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::art_msgs::PilotBehavior_<ContainerAllocator> > Ptr;
00043 typedef boost::shared_ptr< ::art_msgs::PilotBehavior_<ContainerAllocator> const> ConstPtr;
00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00045 };
00046 typedef ::art_msgs::PilotBehavior_<std::allocator<void> > PilotBehavior;
00047
00048 typedef boost::shared_ptr< ::art_msgs::PilotBehavior> PilotBehaviorPtr;
00049 typedef boost::shared_ptr< ::art_msgs::PilotBehavior const> PilotBehaviorConstPtr;
00050
00051
00052 template<typename ContainerAllocator>
00053 std::ostream& operator<<(std::ostream& s, const ::art_msgs::PilotBehavior_<ContainerAllocator> & v)
00054 {
00055 ros::message_operations::Printer< ::art_msgs::PilotBehavior_<ContainerAllocator> >::stream(s, "", v);
00056 return s;}
00057
00058 }
00059
00060 namespace ros
00061 {
00062 namespace message_traits
00063 {
00064 template<class ContainerAllocator> struct IsMessage< ::art_msgs::PilotBehavior_<ContainerAllocator> > : public TrueType {};
00065 template<class ContainerAllocator> struct IsMessage< ::art_msgs::PilotBehavior_<ContainerAllocator> const> : public TrueType {};
00066 template<class ContainerAllocator>
00067 struct MD5Sum< ::art_msgs::PilotBehavior_<ContainerAllocator> > {
00068 static const char* value()
00069 {
00070 return "ee280e8dd8b427f32f9742e8b4885525";
00071 }
00072
00073 static const char* value(const ::art_msgs::PilotBehavior_<ContainerAllocator> &) { return value(); }
00074 static const uint64_t static_value1 = 0xee280e8dd8b427f3ULL;
00075 static const uint64_t static_value2 = 0x2f9742e8b4885525ULL;
00076 };
00077
00078 template<class ContainerAllocator>
00079 struct DataType< ::art_msgs::PilotBehavior_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "art_msgs/PilotBehavior";
00083 }
00084
00085 static const char* value(const ::art_msgs::PilotBehavior_<ContainerAllocator> &) { return value(); }
00086 };
00087
00088 template<class ContainerAllocator>
00089 struct Definition< ::art_msgs::PilotBehavior_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "# ART autonomous vehicle pilot node behaviors.\n\
00093 #\n\
00094 # Normally, the pilot node does Run, continually sending commands to\n\
00095 # the servo device actuators and monitoring their state. With Pause,\n\
00096 # the pilot becomes passive, allowing a learning algorithm or human\n\
00097 # controller direct access to those devices. In the Off state,\n\
00098 # various devices are shut down: the transmission in Park, the brake\n\
00099 # released, the throttle at idle. The engine is not turned off, but\n\
00100 # it could be.\n\
00101 \n\
00102 # $Id: PilotBehavior.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\
00103 \n\
00104 # Behavior value\n\
00105 uint8 value\n\
00106 \n\
00107 # Behavior numbers:\n\
00108 uint8 Run = 0 # normal driving\n\
00109 uint8 Pause = 1 # stop issuing servo commands\n\
00110 uint8 Off = 2 # turn off devices\n\
00111 uint8 N_behaviors = 3\n\
00112 \n\
00113 ";
00114 }
00115
00116 static const char* value(const ::art_msgs::PilotBehavior_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::PilotBehavior_<ContainerAllocator> > : public TrueType {};
00120 }
00121 }
00122
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127
00128 template<class ContainerAllocator> struct Serializer< ::art_msgs::PilotBehavior_<ContainerAllocator> >
00129 {
00130 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131 {
00132 stream.next(m.value);
00133 }
00134
00135 ROS_DECLARE_ALLINONE_SERIALIZER;
00136 };
00137 }
00138 }
00139
00140 namespace ros
00141 {
00142 namespace message_operations
00143 {
00144
00145 template<class ContainerAllocator>
00146 struct Printer< ::art_msgs::PilotBehavior_<ContainerAllocator> >
00147 {
00148 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::PilotBehavior_<ContainerAllocator> & v)
00149 {
00150 s << indent << "value: ";
00151 Printer<uint8_t>::stream(s, indent + " ", v.value);
00152 }
00153 };
00154
00155
00156 }
00157 }
00158
00159 #endif // ART_MSGS_MESSAGE_PILOTBEHAVIOR_H
00160