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