00001
00002 #ifndef ART_MSGS_MESSAGE_LANEMARKING_H
00003 #define ART_MSGS_MESSAGE_LANEMARKING_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 LaneMarking_ : public ros::Message
00018 {
00019 typedef LaneMarking_<ContainerAllocator> Type;
00020
00021 LaneMarking_()
00022 : lane_marking(0)
00023 {
00024 }
00025
00026 LaneMarking_(const ContainerAllocator& _alloc)
00027 : lane_marking(0)
00028 {
00029 }
00030
00031 typedef int16_t _lane_marking_type;
00032 int16_t lane_marking;
00033
00034 enum { DOUBLE_YELLOW = 0 };
00035 enum { SOLID_YELLOW = 1 };
00036 enum { SOLID_WHITE = 2 };
00037 enum { BROKEN_WHITE = 3 };
00038 enum { UNDEFINED = 4 };
00039
00040 private:
00041 static const char* __s_getDataType_() { return "art_msgs/LaneMarking"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "39a90d328b8d3f3a2f63e9f13330afca"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# Route Network Definition File lane marking\n\
00056 # $Id: LaneMarking.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00057 \n\
00058 int16 DOUBLE_YELLOW = 0\n\
00059 int16 SOLID_YELLOW = 1\n\
00060 int16 SOLID_WHITE = 2\n\
00061 int16 BROKEN_WHITE = 3\n\
00062 int16 UNDEFINED = 4\n\
00063 \n\
00064 int16 lane_marking\n\
00065 \n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, lane_marking);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 ros::serialization::deserialize(stream, lane_marking);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(lane_marking);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::art_msgs::LaneMarking_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::art_msgs::LaneMarking_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::art_msgs::LaneMarking_<std::allocator<void> > LaneMarking;
00097
00098 typedef boost::shared_ptr< ::art_msgs::LaneMarking> LaneMarkingPtr;
00099 typedef boost::shared_ptr< ::art_msgs::LaneMarking const> LaneMarkingConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::art_msgs::LaneMarking_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::art_msgs::LaneMarking_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::art_msgs::LaneMarking_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "39a90d328b8d3f3a2f63e9f13330afca";
00119 }
00120
00121 static const char* value(const ::art_msgs::LaneMarking_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x39a90d328b8d3f3aULL;
00123 static const uint64_t static_value2 = 0x2f63e9f13330afcaULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::art_msgs::LaneMarking_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "art_msgs/LaneMarking";
00131 }
00132
00133 static const char* value(const ::art_msgs::LaneMarking_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::art_msgs::LaneMarking_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# Route Network Definition File lane marking\n\
00141 # $Id: LaneMarking.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00142 \n\
00143 int16 DOUBLE_YELLOW = 0\n\
00144 int16 SOLID_YELLOW = 1\n\
00145 int16 SOLID_WHITE = 2\n\
00146 int16 BROKEN_WHITE = 3\n\
00147 int16 UNDEFINED = 4\n\
00148 \n\
00149 int16 lane_marking\n\
00150 \n\
00151 ";
00152 }
00153
00154 static const char* value(const ::art_msgs::LaneMarking_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::LaneMarking_<ContainerAllocator> > : public TrueType {};
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace serialization
00164 {
00165
00166 template<class ContainerAllocator> struct Serializer< ::art_msgs::LaneMarking_<ContainerAllocator> >
00167 {
00168 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00169 {
00170 stream.next(m.lane_marking);
00171 }
00172
00173 ROS_DECLARE_ALLINONE_SERIALIZER;
00174 };
00175 }
00176 }
00177
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182
00183 template<class ContainerAllocator>
00184 struct Printer< ::art_msgs::LaneMarking_<ContainerAllocator> >
00185 {
00186 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::LaneMarking_<ContainerAllocator> & v)
00187 {
00188 s << indent << "lane_marking: ";
00189 Printer<int16_t>::stream(s, indent + " ", v.lane_marking);
00190 }
00191 };
00192
00193
00194 }
00195 }
00196
00197 #endif // ART_MSGS_MESSAGE_LANEMARKING_H
00198