00001
00002 #ifndef TOPOLOGICAL_NAV_MSGS_MESSAGE_TOPOLOGICALMAPNODE_H
00003 #define TOPOLOGICAL_NAV_MSGS_MESSAGE_TOPOLOGICALMAPNODE_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
00014 namespace topological_nav_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct TopologicalMapNode_ : public ros::Message
00018 {
00019 typedef TopologicalMapNode_<ContainerAllocator> Type;
00020
00021 TopologicalMapNode_()
00022 : id(0)
00023 , x_size(0.0)
00024 , y_size(0.0)
00025 , resolution(0.0)
00026 {
00027 }
00028
00029 TopologicalMapNode_(const ContainerAllocator& _alloc)
00030 : id(0)
00031 , x_size(0.0)
00032 , y_size(0.0)
00033 , resolution(0.0)
00034 {
00035 }
00036
00037 typedef uint32_t _id_type;
00038 uint32_t id;
00039
00040 typedef float _x_size_type;
00041 float x_size;
00042
00043 typedef float _y_size_type;
00044 float y_size;
00045
00046 typedef float _resolution_type;
00047 float resolution;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "topological_nav_msgs/TopologicalMapNode"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "4196506e57100b9489aeb84217464d1a"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "# Info stored with a node in a 2d topological map\n\
00066 \n\
00067 # Id of this node in the topological map\n\
00068 uint32 id\n\
00069 \n\
00070 # Dimensions of local grid. The local grid covers the rectangle between\n\
00071 # (0,0) and (x_size, y_size) in the grid's frame\n\
00072 float32 x_size\n\
00073 float32 y_size\n\
00074 \n\
00075 # Resolution of the local occupancy grid\n\
00076 float32 resolution\n\
00077 \n\
00078 \n\
00079 "; }
00080 public:
00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00084
00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00086 {
00087 ros::serialization::OStream stream(write_ptr, 1000000000);
00088 ros::serialization::serialize(stream, id);
00089 ros::serialization::serialize(stream, x_size);
00090 ros::serialization::serialize(stream, y_size);
00091 ros::serialization::serialize(stream, resolution);
00092 return stream.getData();
00093 }
00094
00095 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00096 {
00097 ros::serialization::IStream stream(read_ptr, 1000000000);
00098 ros::serialization::deserialize(stream, id);
00099 ros::serialization::deserialize(stream, x_size);
00100 ros::serialization::deserialize(stream, y_size);
00101 ros::serialization::deserialize(stream, resolution);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint32_t serializationLength() const
00106 {
00107 uint32_t size = 0;
00108 size += ros::serialization::serializationLength(id);
00109 size += ros::serialization::serializationLength(x_size);
00110 size += ros::serialization::serializationLength(y_size);
00111 size += ros::serialization::serializationLength(resolution);
00112 return size;
00113 }
00114
00115 typedef boost::shared_ptr< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> > Ptr;
00116 typedef boost::shared_ptr< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> const> ConstPtr;
00117 };
00118 typedef ::topological_nav_msgs::TopologicalMapNode_<std::allocator<void> > TopologicalMapNode;
00119
00120 typedef boost::shared_ptr< ::topological_nav_msgs::TopologicalMapNode> TopologicalMapNodePtr;
00121 typedef boost::shared_ptr< ::topological_nav_msgs::TopologicalMapNode const> TopologicalMapNodeConstPtr;
00122
00123
00124 template<typename ContainerAllocator>
00125 std::ostream& operator<<(std::ostream& s, const ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> & v)
00126 {
00127 ros::message_operations::Printer< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> >::stream(s, "", v);
00128 return s;}
00129
00130 }
00131
00132 namespace ros
00133 {
00134 namespace message_traits
00135 {
00136 template<class ContainerAllocator>
00137 struct MD5Sum< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "4196506e57100b9489aeb84217464d1a";
00141 }
00142
00143 static const char* value(const ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> &) { return value(); }
00144 static const uint64_t static_value1 = 0x4196506e57100b94ULL;
00145 static const uint64_t static_value2 = 0x89aeb84217464d1aULL;
00146 };
00147
00148 template<class ContainerAllocator>
00149 struct DataType< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> > {
00150 static const char* value()
00151 {
00152 return "topological_nav_msgs/TopologicalMapNode";
00153 }
00154
00155 static const char* value(const ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 template<class ContainerAllocator>
00159 struct Definition< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> > {
00160 static const char* value()
00161 {
00162 return "# Info stored with a node in a 2d topological map\n\
00163 \n\
00164 # Id of this node in the topological map\n\
00165 uint32 id\n\
00166 \n\
00167 # Dimensions of local grid. The local grid covers the rectangle between\n\
00168 # (0,0) and (x_size, y_size) in the grid's frame\n\
00169 float32 x_size\n\
00170 float32 y_size\n\
00171 \n\
00172 # Resolution of the local occupancy grid\n\
00173 float32 resolution\n\
00174 \n\
00175 \n\
00176 ";
00177 }
00178
00179 static const char* value(const ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> &) { return value(); }
00180 };
00181
00182 template<class ContainerAllocator> struct IsFixedSize< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> > : public TrueType {};
00183 }
00184 }
00185
00186 namespace ros
00187 {
00188 namespace serialization
00189 {
00190
00191 template<class ContainerAllocator> struct Serializer< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> >
00192 {
00193 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00194 {
00195 stream.next(m.id);
00196 stream.next(m.x_size);
00197 stream.next(m.y_size);
00198 stream.next(m.resolution);
00199 }
00200
00201 ROS_DECLARE_ALLINONE_SERIALIZER;
00202 };
00203 }
00204 }
00205
00206 namespace ros
00207 {
00208 namespace message_operations
00209 {
00210
00211 template<class ContainerAllocator>
00212 struct Printer< ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> >
00213 {
00214 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::topological_nav_msgs::TopologicalMapNode_<ContainerAllocator> & v)
00215 {
00216 s << indent << "id: ";
00217 Printer<uint32_t>::stream(s, indent + " ", v.id);
00218 s << indent << "x_size: ";
00219 Printer<float>::stream(s, indent + " ", v.x_size);
00220 s << indent << "y_size: ";
00221 Printer<float>::stream(s, indent + " ", v.y_size);
00222 s << indent << "resolution: ";
00223 Printer<float>::stream(s, indent + " ", v.resolution);
00224 }
00225 };
00226
00227
00228 }
00229 }
00230
00231 #endif // TOPOLOGICAL_NAV_MSGS_MESSAGE_TOPOLOGICALMAPNODE_H
00232