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