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