ObjectState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-tue/doc_stacks/2014-01-07_11-38-14.555624/wire/wire_msgs/msg/ObjectState.msg */
00002 #ifndef WIRE_MSGS_MESSAGE_OBJECTSTATE_H
00003 #define WIRE_MSGS_MESSAGE_OBJECTSTATE_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 "wire_msgs/Property.h"
00018 
00019 namespace wire_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ObjectState_ {
00023   typedef ObjectState_<ContainerAllocator> Type;
00024 
00025   ObjectState_()
00026   : ID(0)
00027   , probability(0.0)
00028   , properties()
00029   {
00030   }
00031 
00032   ObjectState_(const ContainerAllocator& _alloc)
00033   : ID(0)
00034   , probability(0.0)
00035   , properties(_alloc)
00036   {
00037   }
00038 
00039   typedef uint32_t _ID_type;
00040   uint32_t ID;
00041 
00042   typedef double _probability_type;
00043   double probability;
00044 
00045   typedef std::vector< ::wire_msgs::Property_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::Property_<ContainerAllocator> >::other >  _properties_type;
00046   std::vector< ::wire_msgs::Property_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::Property_<ContainerAllocator> >::other >  properties;
00047 
00048 
00049   typedef boost::shared_ptr< ::wire_msgs::ObjectState_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::wire_msgs::ObjectState_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct ObjectState
00053 typedef  ::wire_msgs::ObjectState_<std::allocator<void> > ObjectState;
00054 
00055 typedef boost::shared_ptr< ::wire_msgs::ObjectState> ObjectStatePtr;
00056 typedef boost::shared_ptr< ::wire_msgs::ObjectState const> ObjectStateConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::wire_msgs::ObjectState_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::wire_msgs::ObjectState_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace wire_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::ObjectState_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::ObjectState_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::wire_msgs::ObjectState_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "68e5e23a02875f3c610161fde54dc1c3";
00078   }
00079 
00080   static const char* value(const  ::wire_msgs::ObjectState_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0x68e5e23a02875f3cULL;
00082   static const uint64_t static_value2 = 0x610161fde54dc1c3ULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::wire_msgs::ObjectState_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "wire_msgs/ObjectState";
00090   }
00091 
00092   static const char* value(const  ::wire_msgs::ObjectState_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::wire_msgs::ObjectState_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "uint32 ID\n\
00100 float64 probability # probability that this object is actually in the world\n\
00101 \n\
00102 Property[] properties\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: wire_msgs/Property\n\
00106 string attribute\n\
00107 problib/PDF pdf\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: problib/PDF\n\
00111 uint8 EXACT=0     # Is here for easier msg creation, but is actually a specialized case:\n\
00112                   # - continuous: is a Gaussian with zero covariance\n\
00113                   # - discrete: is a Discrete pdf with one entry with P=1                \n\
00114 uint8 GAUSSIAN=1\n\
00115 uint8 UNIFORM=2\n\
00116 uint8 PARTICLES=3\n\
00117 uint8 MIXTURE=4\n\
00118 uint8 DISCRETE=5\n\
00119 uint8 HYBRID=6\n\
00120 \n\
00121 uint8 type\n\
00122 uint32 dimensions\n\
00123 \n\
00124 # For continuous pdf's\n\
00125 float64[] data\n\
00126 \n\
00127 # For discrete pdf's (pmf)\n\
00128 int32 domain_size\n\
00129 string[] values\n\
00130 float64[] probabilities\n\
00131 \n\
00132 # For exact values, either a string or a vector\n\
00133 string exact_value_str\n\
00134 float64[] exact_value_vec\n\
00135 \n\
00136 ";
00137   }
00138 
00139   static const char* value(const  ::wire_msgs::ObjectState_<ContainerAllocator> &) { return value(); } 
00140 };
00141 
00142 } // namespace message_traits
00143 } // namespace ros
00144 
00145 namespace ros
00146 {
00147 namespace serialization
00148 {
00149 
00150 template<class ContainerAllocator> struct Serializer< ::wire_msgs::ObjectState_<ContainerAllocator> >
00151 {
00152   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00153   {
00154     stream.next(m.ID);
00155     stream.next(m.probability);
00156     stream.next(m.properties);
00157   }
00158 
00159   ROS_DECLARE_ALLINONE_SERIALIZER;
00160 }; // struct ObjectState_
00161 } // namespace serialization
00162 } // namespace ros
00163 
00164 namespace ros
00165 {
00166 namespace message_operations
00167 {
00168 
00169 template<class ContainerAllocator>
00170 struct Printer< ::wire_msgs::ObjectState_<ContainerAllocator> >
00171 {
00172   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::wire_msgs::ObjectState_<ContainerAllocator> & v) 
00173   {
00174     s << indent << "ID: ";
00175     Printer<uint32_t>::stream(s, indent + "  ", v.ID);
00176     s << indent << "probability: ";
00177     Printer<double>::stream(s, indent + "  ", v.probability);
00178     s << indent << "properties[]" << std::endl;
00179     for (size_t i = 0; i < v.properties.size(); ++i)
00180     {
00181       s << indent << "  properties[" << i << "]: ";
00182       s << std::endl;
00183       s << indent;
00184       Printer< ::wire_msgs::Property_<ContainerAllocator> >::stream(s, indent + "    ", v.properties[i]);
00185     }
00186   }
00187 };
00188 
00189 
00190 } // namespace message_operations
00191 } // namespace ros
00192 
00193 #endif // WIRE_MSGS_MESSAGE_OBJECTSTATE_H
00194 


wire_msgs
Author(s): Sjoerd van den Dries
autogenerated on Tue Jan 7 2014 11:42:56