00001
00002 #ifndef OCTOMAP_ROS_MESSAGE_OCTOMAPBINARYWITHPOSE_H
00003 #define OCTOMAP_ROS_MESSAGE_OCTOMAPBINARYWITHPOSE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014 #include "geometry_msgs/Pose.h"
00015
00016 namespace octomap_ros
00017 {
00018 template <class ContainerAllocator>
00019 struct OctomapBinaryWithPose_ : public ros::Message
00020 {
00021 typedef OctomapBinaryWithPose_<ContainerAllocator> Type;
00022
00023 OctomapBinaryWithPose_()
00024 : header()
00025 , id(0)
00026 , origin()
00027 , data()
00028 {
00029 }
00030
00031 OctomapBinaryWithPose_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , id(0)
00034 , origin(_alloc)
00035 , data(_alloc)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef int32_t _id_type;
00043 int32_t id;
00044
00045 typedef ::geometry_msgs::Pose_<ContainerAllocator> _origin_type;
00046 ::geometry_msgs::Pose_<ContainerAllocator> origin;
00047
00048 typedef std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > _data_type;
00049 std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > data;
00050
00051
00052 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); }
00053 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); }
00054 ROS_DEPRECATED void get_data_vec(std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) const { vec = this->data; }
00055 ROS_DEPRECATED void set_data_vec(const std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) { this->data = vec; }
00056 private:
00057 static const char* __s_getDataType_() { return "octomap_ros/OctomapBinaryWithPose"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "b8fb58fc8c87150ac05695a4df6e2250"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "# A 3D map in binary format, as Octree\n\
00072 Header header\n\
00073 int32 id\n\
00074 geometry_msgs/Pose origin\n\
00075 int8[] data\n\
00076 ================================================================================\n\
00077 MSG: std_msgs/Header\n\
00078 # Standard metadata for higher-level stamped data types.\n\
00079 # This is generally used to communicate timestamped data \n\
00080 # in a particular coordinate frame.\n\
00081 # \n\
00082 # sequence ID: consecutively increasing ID \n\
00083 uint32 seq\n\
00084 #Two-integer timestamp that is expressed as:\n\
00085 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00086 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00087 # time-handling sugar is provided by the client library\n\
00088 time stamp\n\
00089 #Frame this data is associated with\n\
00090 # 0: no frame\n\
00091 # 1: global frame\n\
00092 string frame_id\n\
00093 \n\
00094 ================================================================================\n\
00095 MSG: geometry_msgs/Pose\n\
00096 # A representation of pose in free space, composed of postion and orientation. \n\
00097 Point position\n\
00098 Quaternion orientation\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: geometry_msgs/Point\n\
00102 # This contains the position of a point in free space\n\
00103 float64 x\n\
00104 float64 y\n\
00105 float64 z\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: geometry_msgs/Quaternion\n\
00109 # This represents an orientation in free space in quaternion form.\n\
00110 \n\
00111 float64 x\n\
00112 float64 y\n\
00113 float64 z\n\
00114 float64 w\n\
00115 \n\
00116 "; }
00117 public:
00118 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00119
00120 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00121
00122 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00123 {
00124 ros::serialization::OStream stream(write_ptr, 1000000000);
00125 ros::serialization::serialize(stream, header);
00126 ros::serialization::serialize(stream, id);
00127 ros::serialization::serialize(stream, origin);
00128 ros::serialization::serialize(stream, data);
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, id);
00137 ros::serialization::deserialize(stream, origin);
00138 ros::serialization::deserialize(stream, data);
00139 return stream.getData();
00140 }
00141
00142 ROS_DEPRECATED virtual uint32_t serializationLength() const
00143 {
00144 uint32_t size = 0;
00145 size += ros::serialization::serializationLength(header);
00146 size += ros::serialization::serializationLength(id);
00147 size += ros::serialization::serializationLength(origin);
00148 size += ros::serialization::serializationLength(data);
00149 return size;
00150 }
00151
00152 typedef boost::shared_ptr< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> > Ptr;
00153 typedef boost::shared_ptr< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> const> ConstPtr;
00154 };
00155 typedef ::octomap_ros::OctomapBinaryWithPose_<std::allocator<void> > OctomapBinaryWithPose;
00156
00157 typedef boost::shared_ptr< ::octomap_ros::OctomapBinaryWithPose> OctomapBinaryWithPosePtr;
00158 typedef boost::shared_ptr< ::octomap_ros::OctomapBinaryWithPose const> OctomapBinaryWithPoseConstPtr;
00159
00160
00161 template<typename ContainerAllocator>
00162 std::ostream& operator<<(std::ostream& s, const ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> & v)
00163 {
00164 ros::message_operations::Printer< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> >::stream(s, "", v);
00165 return s;}
00166
00167 }
00168
00169 namespace ros
00170 {
00171 namespace message_traits
00172 {
00173 template<class ContainerAllocator>
00174 struct MD5Sum< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "b8fb58fc8c87150ac05695a4df6e2250";
00178 }
00179
00180 static const char* value(const ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> &) { return value(); }
00181 static const uint64_t static_value1 = 0xb8fb58fc8c87150aULL;
00182 static const uint64_t static_value2 = 0xc05695a4df6e2250ULL;
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct DataType< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "octomap_ros/OctomapBinaryWithPose";
00190 }
00191
00192 static const char* value(const ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> &) { return value(); }
00193 };
00194
00195 template<class ContainerAllocator>
00196 struct Definition< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "# A 3D map in binary format, as Octree\n\
00200 Header header\n\
00201 int32 id\n\
00202 geometry_msgs/Pose origin\n\
00203 int8[] data\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: geometry_msgs/Pose\n\
00224 # A representation of pose in free space, composed of postion and orientation. \n\
00225 Point position\n\
00226 Quaternion orientation\n\
00227 \n\
00228 ================================================================================\n\
00229 MSG: geometry_msgs/Point\n\
00230 # This contains the position of a point in free space\n\
00231 float64 x\n\
00232 float64 y\n\
00233 float64 z\n\
00234 \n\
00235 ================================================================================\n\
00236 MSG: geometry_msgs/Quaternion\n\
00237 # This represents an orientation in free space in quaternion form.\n\
00238 \n\
00239 float64 x\n\
00240 float64 y\n\
00241 float64 z\n\
00242 float64 w\n\
00243 \n\
00244 ";
00245 }
00246
00247 static const char* value(const ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 template<class ContainerAllocator> struct HasHeader< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> > : public TrueType {};
00251 template<class ContainerAllocator> struct HasHeader< const ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> > : public TrueType {};
00252 }
00253 }
00254
00255 namespace ros
00256 {
00257 namespace serialization
00258 {
00259
00260 template<class ContainerAllocator> struct Serializer< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> >
00261 {
00262 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00263 {
00264 stream.next(m.header);
00265 stream.next(m.id);
00266 stream.next(m.origin);
00267 stream.next(m.data);
00268 }
00269
00270 ROS_DECLARE_ALLINONE_SERIALIZER;
00271 };
00272 }
00273 }
00274
00275 namespace ros
00276 {
00277 namespace message_operations
00278 {
00279
00280 template<class ContainerAllocator>
00281 struct Printer< ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> >
00282 {
00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::octomap_ros::OctomapBinaryWithPose_<ContainerAllocator> & v)
00284 {
00285 s << indent << "header: ";
00286 s << std::endl;
00287 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00288 s << indent << "id: ";
00289 Printer<int32_t>::stream(s, indent + " ", v.id);
00290 s << indent << "origin: ";
00291 s << std::endl;
00292 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.origin);
00293 s << indent << "data[]" << std::endl;
00294 for (size_t i = 0; i < v.data.size(); ++i)
00295 {
00296 s << indent << " data[" << i << "]: ";
00297 Printer<int8_t>::stream(s, indent + " ", v.data[i]);
00298 }
00299 }
00300 };
00301
00302
00303 }
00304 }
00305
00306 #endif // OCTOMAP_ROS_MESSAGE_OCTOMAPBINARYWITHPOSE_H
00307