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