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