ObservationArray.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-art_vehicle/doc_stacks/2014-01-03_11-05-32.392273/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   typedef boost::shared_ptr< ::art_msgs::ObservationArray_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::art_msgs::ObservationArray_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct ObservationArray
00049 typedef  ::art_msgs::ObservationArray_<std::allocator<void> > ObservationArray;
00050 
00051 typedef boost::shared_ptr< ::art_msgs::ObservationArray> ObservationArrayPtr;
00052 typedef boost::shared_ptr< ::art_msgs::ObservationArray const> ObservationArrayConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::art_msgs::ObservationArray_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::art_msgs::ObservationArray_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace art_msgs
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ObservationArray_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ObservationArray_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::art_msgs::ObservationArray_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "b5eeab09687abc64c329078cb1e9065a";
00074   }
00075 
00076   static const char* value(const  ::art_msgs::ObservationArray_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0xb5eeab09687abc64ULL;
00078   static const uint64_t static_value2 = 0xc329078cb1e9065aULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::art_msgs::ObservationArray_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "art_msgs/ObservationArray";
00086   }
00087 
00088   static const char* value(const  ::art_msgs::ObservationArray_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::art_msgs::ObservationArray_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "# Observations from a set of observers\n\
00096 # $Id: ObservationArray.msg 1628 2011-08-09 21:51:35Z jack.oquin $\n\
00097 \n\
00098 Header header\n\
00099 Observation[] obs                       # vector of observations\n\
00100 \n\
00101 ================================================================================\n\
00102 MSG: std_msgs/Header\n\
00103 # Standard metadata for higher-level stamped data types.\n\
00104 # This is generally used to communicate timestamped data \n\
00105 # in a particular coordinate frame.\n\
00106 # \n\
00107 # sequence ID: consecutively increasing ID \n\
00108 uint32 seq\n\
00109 #Two-integer timestamp that is expressed as:\n\
00110 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00111 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00112 # time-handling sugar is provided by the client library\n\
00113 time stamp\n\
00114 #Frame this data is associated with\n\
00115 # 0: no frame\n\
00116 # 1: global frame\n\
00117 string frame_id\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: art_msgs/Observation\n\
00121 # result returned from a single observer\n\
00122 # $Id: Observation.msg 1614 2011-08-06 21:02:59Z jack.oquin $\n\
00123 \n\
00124 # possible observer ID values\n\
00125 int32 Nearest_forward    = 0            # current or closest lane\n\
00126 int32 Nearest_backward   = 1                  \n\
00127 int32 Adjacent_left      = 2            # adjacent left or right lane\n\
00128 int32 Adjacent_right     = 3\n\
00129 int32 All_left           = 4            # all left or right lanes\n\
00130 int32 All_right          = 5\n\
00131 int32 Merge_into_nearest = 6            # merge into nearest lane on diff seg\n\
00132 int32 Merge_across_all   = 7            # merge across all lanes on diff seg\n\
00133 int32 Intersection       = 8            # stop sign intersection precedence\n\
00134 int32 N_Observers        = 9\n\
00135 \n\
00136 int32  oid                      # observer ID\n\
00137 string name                     # observer name\n\
00138 \n\
00139 bool applicable                 # true if obseravation is applicable\n\
00140 bool clear                      # true if clear to go\n\
00141 \n\
00142 # optional time and distance to nearest obstacle\n\
00143 # (only reported by some observers)\n\
00144 float32 time\n\
00145 float32 distance\n\
00146 float32 velocity\n\
00147 int32 nobjects                  # number of objects\n\
00148 \n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::art_msgs::ObservationArray_<ContainerAllocator> &) { return value(); } 
00153 };
00154 
00155 template<class ContainerAllocator> struct HasHeader< ::art_msgs::ObservationArray_<ContainerAllocator> > : public TrueType {};
00156 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::ObservationArray_<ContainerAllocator> > : public TrueType {};
00157 } // namespace message_traits
00158 } // namespace ros
00159 
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164 
00165 template<class ContainerAllocator> struct Serializer< ::art_msgs::ObservationArray_<ContainerAllocator> >
00166 {
00167   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168   {
00169     stream.next(m.header);
00170     stream.next(m.obs);
00171   }
00172 
00173   ROS_DECLARE_ALLINONE_SERIALIZER;
00174 }; // struct ObservationArray_
00175 } // namespace serialization
00176 } // namespace ros
00177 
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182 
00183 template<class ContainerAllocator>
00184 struct Printer< ::art_msgs::ObservationArray_<ContainerAllocator> >
00185 {
00186   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::art_msgs::ObservationArray_<ContainerAllocator> & v) 
00187   {
00188     s << indent << "header: ";
00189 s << std::endl;
00190     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00191     s << indent << "obs[]" << std::endl;
00192     for (size_t i = 0; i < v.obs.size(); ++i)
00193     {
00194       s << indent << "  obs[" << i << "]: ";
00195       s << std::endl;
00196       s << indent;
00197       Printer< ::art_msgs::Observation_<ContainerAllocator> >::stream(s, indent + "    ", v.obs[i]);
00198     }
00199   }
00200 };
00201 
00202 
00203 } // namespace message_operations
00204 } // namespace ros
00205 
00206 #endif // ART_MSGS_MESSAGE_OBSERVATIONARRAY_H
00207 


art_msgs
Author(s): Jack O'Quin
autogenerated on Fri Jan 3 2014 11:08:05