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