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