$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/RoadState.msg */ 00002 #ifndef ART_MSGS_MESSAGE_ROADSTATE_H 00003 #define ART_MSGS_MESSAGE_ROADSTATE_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 RoadState_ { 00022 typedef RoadState_<ContainerAllocator> Type; 00023 00024 RoadState_() 00025 : state(0) 00026 { 00027 } 00028 00029 RoadState_(const ContainerAllocator& _alloc) 00030 : state(0) 00031 { 00032 } 00033 00034 typedef uint16_t _state_type; 00035 uint16_t state; 00036 00037 enum { Init = 0 }; 00038 enum { Block = 1 }; 00039 enum { Evade = 2 }; 00040 enum { Follow = 3 }; 00041 enum { Pass = 4 }; 00042 enum { Uturn = 5 }; 00043 enum { WaitCross = 6 }; 00044 enum { WaitLane = 7 }; 00045 enum { WaitPass = 8 }; 00046 enum { WaitStop = 9 }; 00047 enum { Zone = 10 }; 00048 enum { N_states = 11 }; 00049 00050 private: 00051 static const char* __s_getDataType_() { return "art_msgs/RoadState"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "e033b3ead3b77d2e264d454d67d06e4d"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "# Navigator Road state values\n\ 00066 # $Id: RoadState.msg 615 2010-09-24 16:07:50Z jack.oquin $\n\ 00067 \n\ 00068 uint16 Init = 0\n\ 00069 uint16 Block = 1\n\ 00070 uint16 Evade = 2\n\ 00071 uint16 Follow = 3\n\ 00072 uint16 Pass = 4\n\ 00073 uint16 Uturn = 5\n\ 00074 uint16 WaitCross = 6\n\ 00075 uint16 WaitLane = 7\n\ 00076 uint16 WaitPass = 8\n\ 00077 uint16 WaitStop = 9\n\ 00078 uint16 Zone = 10\n\ 00079 uint16 N_states = 11\n\ 00080 \n\ 00081 uint16 state\n\ 00082 \n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, state); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00097 { 00098 ros::serialization::IStream stream(read_ptr, 1000000000); 00099 ros::serialization::deserialize(stream, state); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(state); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::art_msgs::RoadState_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::art_msgs::RoadState_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct RoadState 00114 typedef ::art_msgs::RoadState_<std::allocator<void> > RoadState; 00115 00116 typedef boost::shared_ptr< ::art_msgs::RoadState> RoadStatePtr; 00117 typedef boost::shared_ptr< ::art_msgs::RoadState const> RoadStateConstPtr; 00118 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::art_msgs::RoadState_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::art_msgs::RoadState_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace art_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::art_msgs::RoadState_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::art_msgs::RoadState_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::art_msgs::RoadState_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "e033b3ead3b77d2e264d454d67d06e4d"; 00139 } 00140 00141 static const char* value(const ::art_msgs::RoadState_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0xe033b3ead3b77d2eULL; 00143 static const uint64_t static_value2 = 0x264d454d67d06e4dULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::art_msgs::RoadState_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "art_msgs/RoadState"; 00151 } 00152 00153 static const char* value(const ::art_msgs::RoadState_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::art_msgs::RoadState_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "# Navigator Road state values\n\ 00161 # $Id: RoadState.msg 615 2010-09-24 16:07:50Z jack.oquin $\n\ 00162 \n\ 00163 uint16 Init = 0\n\ 00164 uint16 Block = 1\n\ 00165 uint16 Evade = 2\n\ 00166 uint16 Follow = 3\n\ 00167 uint16 Pass = 4\n\ 00168 uint16 Uturn = 5\n\ 00169 uint16 WaitCross = 6\n\ 00170 uint16 WaitLane = 7\n\ 00171 uint16 WaitPass = 8\n\ 00172 uint16 WaitStop = 9\n\ 00173 uint16 Zone = 10\n\ 00174 uint16 N_states = 11\n\ 00175 \n\ 00176 uint16 state\n\ 00177 \n\ 00178 "; 00179 } 00180 00181 static const char* value(const ::art_msgs::RoadState_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::RoadState_<ContainerAllocator> > : public TrueType {}; 00185 } // namespace message_traits 00186 } // namespace ros 00187 00188 namespace ros 00189 { 00190 namespace serialization 00191 { 00192 00193 template<class ContainerAllocator> struct Serializer< ::art_msgs::RoadState_<ContainerAllocator> > 00194 { 00195 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00196 { 00197 stream.next(m.state); 00198 } 00199 00200 ROS_DECLARE_ALLINONE_SERIALIZER; 00201 }; // struct RoadState_ 00202 } // namespace serialization 00203 } // namespace ros 00204 00205 namespace ros 00206 { 00207 namespace message_operations 00208 { 00209 00210 template<class ContainerAllocator> 00211 struct Printer< ::art_msgs::RoadState_<ContainerAllocator> > 00212 { 00213 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::RoadState_<ContainerAllocator> & v) 00214 { 00215 s << indent << "state: "; 00216 Printer<uint16_t>::stream(s, indent + " ", v.state); 00217 } 00218 }; 00219 00220 00221 } // namespace message_operations 00222 } // namespace ros 00223 00224 #endif // ART_MSGS_MESSAGE_ROADSTATE_H 00225