Go to the documentation of this file.00001
00002 #ifndef WORLDMODEL_MSGS_MESSAGE_OBJECT_H
00003 #define WORLDMODEL_MSGS_MESSAGE_OBJECT_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 "geometry_msgs/PoseWithCovariance.h"
00019 #include "worldmodel_msgs/ObjectInfo.h"
00020 #include "worldmodel_msgs/ObjectState.h"
00021
00022 namespace worldmodel_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct Object_ {
00026 typedef Object_<ContainerAllocator> Type;
00027
00028 Object_()
00029 : header()
00030 , pose()
00031 , info()
00032 , state()
00033 {
00034 }
00035
00036 Object_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , pose(_alloc)
00039 , info(_alloc)
00040 , state(_alloc)
00041 {
00042 }
00043
00044 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00045 ::std_msgs::Header_<ContainerAllocator> header;
00046
00047 typedef ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> _pose_type;
00048 ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> pose;
00049
00050 typedef ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> _info_type;
00051 ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> info;
00052
00053 typedef ::worldmodel_msgs::ObjectState_<ContainerAllocator> _state_type;
00054 ::worldmodel_msgs::ObjectState_<ContainerAllocator> state;
00055
00056
00057 typedef boost::shared_ptr< ::worldmodel_msgs::Object_<ContainerAllocator> > Ptr;
00058 typedef boost::shared_ptr< ::worldmodel_msgs::Object_<ContainerAllocator> const> ConstPtr;
00059 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 };
00061 typedef ::worldmodel_msgs::Object_<std::allocator<void> > Object;
00062
00063 typedef boost::shared_ptr< ::worldmodel_msgs::Object> ObjectPtr;
00064 typedef boost::shared_ptr< ::worldmodel_msgs::Object const> ObjectConstPtr;
00065
00066
00067 template<typename ContainerAllocator>
00068 std::ostream& operator<<(std::ostream& s, const ::worldmodel_msgs::Object_<ContainerAllocator> & v)
00069 {
00070 ros::message_operations::Printer< ::worldmodel_msgs::Object_<ContainerAllocator> >::stream(s, "", v);
00071 return s;}
00072
00073 }
00074
00075 namespace ros
00076 {
00077 namespace message_traits
00078 {
00079 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::Object_<ContainerAllocator> > : public TrueType {};
00080 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::Object_<ContainerAllocator> const> : public TrueType {};
00081 template<class ContainerAllocator>
00082 struct MD5Sum< ::worldmodel_msgs::Object_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "02dea96e80640703553490052f13918d";
00086 }
00087
00088 static const char* value(const ::worldmodel_msgs::Object_<ContainerAllocator> &) { return value(); }
00089 static const uint64_t static_value1 = 0x02dea96e80640703ULL;
00090 static const uint64_t static_value2 = 0x553490052f13918dULL;
00091 };
00092
00093 template<class ContainerAllocator>
00094 struct DataType< ::worldmodel_msgs::Object_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "worldmodel_msgs/Object";
00098 }
00099
00100 static const char* value(const ::worldmodel_msgs::Object_<ContainerAllocator> &) { return value(); }
00101 };
00102
00103 template<class ContainerAllocator>
00104 struct Definition< ::worldmodel_msgs::Object_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "# This message represents an estimate of an object's pose and identity.\n\
00108 \n\
00109 # The header.\n\
00110 # stamp: Timestamp of last update.\n\
00111 # frame_id: Coordinate frame, in which the pose is given\n\
00112 Header header\n\
00113 \n\
00114 # The pose\n\
00115 geometry_msgs/PoseWithCovariance pose\n\
00116 \n\
00117 # Further information about the object\n\
00118 ObjectInfo info\n\
00119 \n\
00120 # The tracked state of the object\n\
00121 ObjectState state\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: std_msgs/Header\n\
00125 # Standard metadata for higher-level stamped data types.\n\
00126 # This is generally used to communicate timestamped data \n\
00127 # in a particular coordinate frame.\n\
00128 # \n\
00129 # sequence ID: consecutively increasing ID \n\
00130 uint32 seq\n\
00131 #Two-integer timestamp that is expressed as:\n\
00132 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00133 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00134 # time-handling sugar is provided by the client library\n\
00135 time stamp\n\
00136 #Frame this data is associated with\n\
00137 # 0: no frame\n\
00138 # 1: global frame\n\
00139 string frame_id\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: geometry_msgs/PoseWithCovariance\n\
00143 # This represents a pose in free space with uncertainty.\n\
00144 \n\
00145 Pose pose\n\
00146 \n\
00147 # Row-major representation of the 6x6 covariance matrix\n\
00148 # The orientation parameters use a fixed-axis representation.\n\
00149 # In order, the parameters are:\n\
00150 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00151 float64[36] covariance\n\
00152 \n\
00153 ================================================================================\n\
00154 MSG: geometry_msgs/Pose\n\
00155 # A representation of pose in free space, composed of postion and orientation. \n\
00156 Point position\n\
00157 Quaternion orientation\n\
00158 \n\
00159 ================================================================================\n\
00160 MSG: geometry_msgs/Point\n\
00161 # This contains the position of a point in free space\n\
00162 float64 x\n\
00163 float64 y\n\
00164 float64 z\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: geometry_msgs/Quaternion\n\
00168 # This represents an orientation in free space in quaternion form.\n\
00169 \n\
00170 float64 x\n\
00171 float64 y\n\
00172 float64 z\n\
00173 float64 w\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: worldmodel_msgs/ObjectInfo\n\
00177 # This message contains information about the estimated class affiliation, object id and corresponding support\n\
00178 \n\
00179 # A string identifying the object's class (all objects of a class look the same)\n\
00180 string class_id\n\
00181 \n\
00182 # A string identifying the specific object\n\
00183 string object_id\n\
00184 \n\
00185 # A string that contains the name or a description of the specific object\n\
00186 string name\n\
00187 \n\
00188 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00189 float32 support\n\
00190 \n\
00191 \n\
00192 ================================================================================\n\
00193 MSG: worldmodel_msgs/ObjectState\n\
00194 # The state of an object estimate used to track\n\
00195 # states smaller than 0 disable all updates\n\
00196 \n\
00197 # Predefined states. Use states smaller than 0 or bigger than 63 for user defined states.\n\
00198 int8 UNKNOWN = 0\n\
00199 int8 PENDING = 1\n\
00200 int8 ACTIVE = 2\n\
00201 int8 INACTIVE = 3\n\
00202 int8 CONFIRMED = -1\n\
00203 int8 DISCARDED = -2\n\
00204 int8 APPROACHING = -3\n\
00205 \n\
00206 int8 state\n\
00207 \n\
00208 ";
00209 }
00210
00211 static const char* value(const ::worldmodel_msgs::Object_<ContainerAllocator> &) { return value(); }
00212 };
00213
00214 template<class ContainerAllocator> struct HasHeader< ::worldmodel_msgs::Object_<ContainerAllocator> > : public TrueType {};
00215 template<class ContainerAllocator> struct HasHeader< const ::worldmodel_msgs::Object_<ContainerAllocator> > : public TrueType {};
00216 }
00217 }
00218
00219 namespace ros
00220 {
00221 namespace serialization
00222 {
00223
00224 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::Object_<ContainerAllocator> >
00225 {
00226 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00227 {
00228 stream.next(m.header);
00229 stream.next(m.pose);
00230 stream.next(m.info);
00231 stream.next(m.state);
00232 }
00233
00234 ROS_DECLARE_ALLINONE_SERIALIZER;
00235 };
00236 }
00237 }
00238
00239 namespace ros
00240 {
00241 namespace message_operations
00242 {
00243
00244 template<class ContainerAllocator>
00245 struct Printer< ::worldmodel_msgs::Object_<ContainerAllocator> >
00246 {
00247 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::worldmodel_msgs::Object_<ContainerAllocator> & v)
00248 {
00249 s << indent << "header: ";
00250 s << std::endl;
00251 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00252 s << indent << "pose: ";
00253 s << std::endl;
00254 Printer< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00255 s << indent << "info: ";
00256 s << std::endl;
00257 Printer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >::stream(s, indent + " ", v.info);
00258 s << indent << "state: ";
00259 s << std::endl;
00260 Printer< ::worldmodel_msgs::ObjectState_<ContainerAllocator> >::stream(s, indent + " ", v.state);
00261 }
00262 };
00263
00264
00265 }
00266 }
00267
00268 #endif // WORLDMODEL_MSGS_MESSAGE_OBJECT_H
00269