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