Go to the documentation of this file.00001
00002 #ifndef MAPPING_IAS_MSGS_MESSAGE_LASEROBJECTIDWITHPOSE_H
00003 #define MAPPING_IAS_MSGS_MESSAGE_LASEROBJECTIDWITHPOSE_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 "geometry_msgs/Point32.h"
00018
00019 namespace mapping_ias_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct LaserObjectIdWithPose_ {
00023 typedef LaserObjectIdWithPose_<ContainerAllocator> Type;
00024
00025 LaserObjectIdWithPose_()
00026 : obj_id(0)
00027 , pose()
00028 , AABB()
00029 {
00030 }
00031
00032 LaserObjectIdWithPose_(const ContainerAllocator& _alloc)
00033 : obj_id(0)
00034 , pose(_alloc)
00035 , AABB(_alloc)
00036 {
00037 }
00038
00039 typedef uint64_t _obj_id_type;
00040 uint64_t obj_id;
00041
00042 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _pose_type;
00043 std::vector<double, typename ContainerAllocator::template rebind<double>::other > pose;
00044
00045 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _AABB_type;
00046 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > AABB;
00047
00048
00049 typedef boost::shared_ptr< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::mapping_ias_msgs::LaserObjectIdWithPose_<std::allocator<void> > LaserObjectIdWithPose;
00054
00055 typedef boost::shared_ptr< ::mapping_ias_msgs::LaserObjectIdWithPose> LaserObjectIdWithPosePtr;
00056 typedef boost::shared_ptr< ::mapping_ias_msgs::LaserObjectIdWithPose const> LaserObjectIdWithPoseConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "ef23f3dc03dc1c9d1c4df8cd45f7543c";
00078 }
00079
00080 static const char* value(const ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0xef23f3dc03dc1c9dULL;
00082 static const uint64_t static_value2 = 0x1c4df8cd45f7543cULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "mapping_ias_msgs/LaserObjectIdWithPose";
00090 }
00091
00092 static const char* value(const ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "uint64 obj_id # id\n\
00100 float64[] pose # position + pose of object (4x4 Matrix)\n\
00101 geometry_msgs/Point32[] AABB # AABB in object frame\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: geometry_msgs/Point32\n\
00105 # This contains the position of a point in free space(with 32 bits of precision).\n\
00106 # It is recommeded to use Point wherever possible instead of Point32. \n\
00107 # \n\
00108 # This recommendation is to promote interoperability. \n\
00109 #\n\
00110 # This message is designed to take up less space when sending\n\
00111 # lots of points at once, as in the case of a PointCloud. \n\
00112 \n\
00113 float32 x\n\
00114 float32 y\n\
00115 float32 z\n\
00116 ";
00117 }
00118
00119 static const char* value(const ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 }
00123 }
00124
00125 namespace ros
00126 {
00127 namespace serialization
00128 {
00129
00130 template<class ContainerAllocator> struct Serializer< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> >
00131 {
00132 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00133 {
00134 stream.next(m.obj_id);
00135 stream.next(m.pose);
00136 stream.next(m.AABB);
00137 }
00138
00139 ROS_DECLARE_ALLINONE_SERIALIZER;
00140 };
00141 }
00142 }
00143
00144 namespace ros
00145 {
00146 namespace message_operations
00147 {
00148
00149 template<class ContainerAllocator>
00150 struct Printer< ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> >
00151 {
00152 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::mapping_ias_msgs::LaserObjectIdWithPose_<ContainerAllocator> & v)
00153 {
00154 s << indent << "obj_id: ";
00155 Printer<uint64_t>::stream(s, indent + " ", v.obj_id);
00156 s << indent << "pose[]" << std::endl;
00157 for (size_t i = 0; i < v.pose.size(); ++i)
00158 {
00159 s << indent << " pose[" << i << "]: ";
00160 Printer<double>::stream(s, indent + " ", v.pose[i]);
00161 }
00162 s << indent << "AABB[]" << std::endl;
00163 for (size_t i = 0; i < v.AABB.size(); ++i)
00164 {
00165 s << indent << " AABB[" << i << "]: ";
00166 s << std::endl;
00167 s << indent;
00168 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.AABB[i]);
00169 }
00170 }
00171 };
00172
00173
00174 }
00175 }
00176
00177 #endif // MAPPING_IAS_MSGS_MESSAGE_LASEROBJECTIDWITHPOSE_H
00178