$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/ObservationArray.msg */ 00002 #ifndef ART_MSGS_MESSAGE_OBSERVATIONARRAY_H 00003 #define ART_MSGS_MESSAGE_OBSERVATIONARRAY_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 #include "std_msgs/Header.h" 00018 #include "art_msgs/Observation.h" 00019 00020 namespace art_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct ObservationArray_ { 00024 typedef ObservationArray_<ContainerAllocator> Type; 00025 00026 ObservationArray_() 00027 : header() 00028 , obs() 00029 { 00030 } 00031 00032 ObservationArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , obs(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::art_msgs::Observation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::Observation_<ContainerAllocator> >::other > _obs_type; 00042 std::vector< ::art_msgs::Observation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::Observation_<ContainerAllocator> >::other > obs; 00043 00044 00045 ROS_DEPRECATED uint32_t get_obs_size() const { return (uint32_t)obs.size(); } 00046 ROS_DEPRECATED void set_obs_size(uint32_t size) { obs.resize((size_t)size); } 00047 ROS_DEPRECATED void get_obs_vec(std::vector< ::art_msgs::Observation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::Observation_<ContainerAllocator> >::other > & vec) const { vec = this->obs; } 00048 ROS_DEPRECATED void set_obs_vec(const std::vector< ::art_msgs::Observation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::Observation_<ContainerAllocator> >::other > & vec) { this->obs = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "art_msgs/ObservationArray"; } 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 "b5eeab09687abc64c329078cb1e9065a"; } 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 "# Observations from a set of observers\n\ 00065 # $Id: ObservationArray.msg 1628 2011-08-09 21:51:35Z jack.oquin $\n\ 00066 \n\ 00067 Header header\n\ 00068 Observation[] obs # vector of observations\n\ 00069 \n\ 00070 ================================================================================\n\ 00071 MSG: std_msgs/Header\n\ 00072 # Standard metadata for higher-level stamped data types.\n\ 00073 # This is generally used to communicate timestamped data \n\ 00074 # in a particular coordinate frame.\n\ 00075 # \n\ 00076 # sequence ID: consecutively increasing ID \n\ 00077 uint32 seq\n\ 00078 #Two-integer timestamp that is expressed as:\n\ 00079 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00080 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00081 # time-handling sugar is provided by the client library\n\ 00082 time stamp\n\ 00083 #Frame this data is associated with\n\ 00084 # 0: no frame\n\ 00085 # 1: global frame\n\ 00086 string frame_id\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: art_msgs/Observation\n\ 00090 # result returned from a single observer\n\ 00091 # $Id: Observation.msg 1614 2011-08-06 21:02:59Z jack.oquin $\n\ 00092 \n\ 00093 # possible observer ID values\n\ 00094 int32 Nearest_forward = 0 # current or closest lane\n\ 00095 int32 Nearest_backward = 1 \n\ 00096 int32 Adjacent_left = 2 # adjacent left or right lane\n\ 00097 int32 Adjacent_right = 3\n\ 00098 int32 All_left = 4 # all left or right lanes\n\ 00099 int32 All_right = 5\n\ 00100 int32 Merge_into_nearest = 6 # merge into nearest lane on diff seg\n\ 00101 int32 Merge_across_all = 7 # merge across all lanes on diff seg\n\ 00102 int32 Intersection = 8 # stop sign intersection precedence\n\ 00103 int32 N_Observers = 9\n\ 00104 \n\ 00105 int32 oid # observer ID\n\ 00106 string name # observer name\n\ 00107 \n\ 00108 bool applicable # true if obseravation is applicable\n\ 00109 bool clear # true if clear to go\n\ 00110 \n\ 00111 # optional time and distance to nearest obstacle\n\ 00112 # (only reported by some observers)\n\ 00113 float32 time\n\ 00114 float32 distance\n\ 00115 float32 velocity\n\ 00116 int32 nobjects # number of objects\n\ 00117 \n\ 00118 "; } 00119 public: 00120 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00121 00122 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00123 00124 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00125 { 00126 ros::serialization::OStream stream(write_ptr, 1000000000); 00127 ros::serialization::serialize(stream, header); 00128 ros::serialization::serialize(stream, obs); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00133 { 00134 ros::serialization::IStream stream(read_ptr, 1000000000); 00135 ros::serialization::deserialize(stream, header); 00136 ros::serialization::deserialize(stream, obs); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint32_t serializationLength() const 00141 { 00142 uint32_t size = 0; 00143 size += ros::serialization::serializationLength(header); 00144 size += ros::serialization::serializationLength(obs); 00145 return size; 00146 } 00147 00148 typedef boost::shared_ptr< ::art_msgs::ObservationArray_<ContainerAllocator> > Ptr; 00149 typedef boost::shared_ptr< ::art_msgs::ObservationArray_<ContainerAllocator> const> ConstPtr; 00150 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00151 }; // struct ObservationArray 00152 typedef ::art_msgs::ObservationArray_<std::allocator<void> > ObservationArray; 00153 00154 typedef boost::shared_ptr< ::art_msgs::ObservationArray> ObservationArrayPtr; 00155 typedef boost::shared_ptr< ::art_msgs::ObservationArray const> ObservationArrayConstPtr; 00156 00157 00158 template<typename ContainerAllocator> 00159 std::ostream& operator<<(std::ostream& s, const ::art_msgs::ObservationArray_<ContainerAllocator> & v) 00160 { 00161 ros::message_operations::Printer< ::art_msgs::ObservationArray_<ContainerAllocator> >::stream(s, "", v); 00162 return s;} 00163 00164 } // namespace art_msgs 00165 00166 namespace ros 00167 { 00168 namespace message_traits 00169 { 00170 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ObservationArray_<ContainerAllocator> > : public TrueType {}; 00171 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ObservationArray_<ContainerAllocator> const> : public TrueType {}; 00172 template<class ContainerAllocator> 00173 struct MD5Sum< ::art_msgs::ObservationArray_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "b5eeab09687abc64c329078cb1e9065a"; 00177 } 00178 00179 static const char* value(const ::art_msgs::ObservationArray_<ContainerAllocator> &) { return value(); } 00180 static const uint64_t static_value1 = 0xb5eeab09687abc64ULL; 00181 static const uint64_t static_value2 = 0xc329078cb1e9065aULL; 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct DataType< ::art_msgs::ObservationArray_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "art_msgs/ObservationArray"; 00189 } 00190 00191 static const char* value(const ::art_msgs::ObservationArray_<ContainerAllocator> &) { return value(); } 00192 }; 00193 00194 template<class ContainerAllocator> 00195 struct Definition< ::art_msgs::ObservationArray_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "# Observations from a set of observers\n\ 00199 # $Id: ObservationArray.msg 1628 2011-08-09 21:51:35Z jack.oquin $\n\ 00200 \n\ 00201 Header header\n\ 00202 Observation[] obs # vector of observations\n\ 00203 \n\ 00204 ================================================================================\n\ 00205 MSG: std_msgs/Header\n\ 00206 # Standard metadata for higher-level stamped data types.\n\ 00207 # This is generally used to communicate timestamped data \n\ 00208 # in a particular coordinate frame.\n\ 00209 # \n\ 00210 # sequence ID: consecutively increasing ID \n\ 00211 uint32 seq\n\ 00212 #Two-integer timestamp that is expressed as:\n\ 00213 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00214 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00215 # time-handling sugar is provided by the client library\n\ 00216 time stamp\n\ 00217 #Frame this data is associated with\n\ 00218 # 0: no frame\n\ 00219 # 1: global frame\n\ 00220 string frame_id\n\ 00221 \n\ 00222 ================================================================================\n\ 00223 MSG: art_msgs/Observation\n\ 00224 # result returned from a single observer\n\ 00225 # $Id: Observation.msg 1614 2011-08-06 21:02:59Z jack.oquin $\n\ 00226 \n\ 00227 # possible observer ID values\n\ 00228 int32 Nearest_forward = 0 # current or closest lane\n\ 00229 int32 Nearest_backward = 1 \n\ 00230 int32 Adjacent_left = 2 # adjacent left or right lane\n\ 00231 int32 Adjacent_right = 3\n\ 00232 int32 All_left = 4 # all left or right lanes\n\ 00233 int32 All_right = 5\n\ 00234 int32 Merge_into_nearest = 6 # merge into nearest lane on diff seg\n\ 00235 int32 Merge_across_all = 7 # merge across all lanes on diff seg\n\ 00236 int32 Intersection = 8 # stop sign intersection precedence\n\ 00237 int32 N_Observers = 9\n\ 00238 \n\ 00239 int32 oid # observer ID\n\ 00240 string name # observer name\n\ 00241 \n\ 00242 bool applicable # true if obseravation is applicable\n\ 00243 bool clear # true if clear to go\n\ 00244 \n\ 00245 # optional time and distance to nearest obstacle\n\ 00246 # (only reported by some observers)\n\ 00247 float32 time\n\ 00248 float32 distance\n\ 00249 float32 velocity\n\ 00250 int32 nobjects # number of objects\n\ 00251 \n\ 00252 "; 00253 } 00254 00255 static const char* value(const ::art_msgs::ObservationArray_<ContainerAllocator> &) { return value(); } 00256 }; 00257 00258 template<class ContainerAllocator> struct HasHeader< ::art_msgs::ObservationArray_<ContainerAllocator> > : public TrueType {}; 00259 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::ObservationArray_<ContainerAllocator> > : public TrueType {}; 00260 } // namespace message_traits 00261 } // namespace ros 00262 00263 namespace ros 00264 { 00265 namespace serialization 00266 { 00267 00268 template<class ContainerAllocator> struct Serializer< ::art_msgs::ObservationArray_<ContainerAllocator> > 00269 { 00270 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00271 { 00272 stream.next(m.header); 00273 stream.next(m.obs); 00274 } 00275 00276 ROS_DECLARE_ALLINONE_SERIALIZER; 00277 }; // struct ObservationArray_ 00278 } // namespace serialization 00279 } // namespace ros 00280 00281 namespace ros 00282 { 00283 namespace message_operations 00284 { 00285 00286 template<class ContainerAllocator> 00287 struct Printer< ::art_msgs::ObservationArray_<ContainerAllocator> > 00288 { 00289 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::ObservationArray_<ContainerAllocator> & v) 00290 { 00291 s << indent << "header: "; 00292 s << std::endl; 00293 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00294 s << indent << "obs[]" << std::endl; 00295 for (size_t i = 0; i < v.obs.size(); ++i) 00296 { 00297 s << indent << " obs[" << i << "]: "; 00298 s << std::endl; 00299 s << indent; 00300 Printer< ::art_msgs::Observation_<ContainerAllocator> >::stream(s, indent + " ", v.obs[i]); 00301 } 00302 } 00303 }; 00304 00305 00306 } // namespace message_operations 00307 } // namespace ros 00308 00309 #endif // ART_MSGS_MESSAGE_OBSERVATIONARRAY_H 00310