Go to the documentation of this file.00001
00002 #ifndef OCCUPANCY_GRID_UTILS_MESSAGE_NAVIGATIONFUNCTION_H
00003 #define OCCUPANCY_GRID_UTILS_MESSAGE_NAVIGATIONFUNCTION_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 "nav_msgs/MapMetaData.h"
00018
00019 namespace occupancy_grid_utils
00020 {
00021 template <class ContainerAllocator>
00022 struct NavigationFunction_ {
00023 typedef NavigationFunction_<ContainerAllocator> Type;
00024
00025 NavigationFunction_()
00026 : info()
00027 , source(0)
00028 , valid()
00029 , back_pointers()
00030 , potential()
00031 {
00032 }
00033
00034 NavigationFunction_(const ContainerAllocator& _alloc)
00035 : info(_alloc)
00036 , source(0)
00037 , valid(_alloc)
00038 , back_pointers(_alloc)
00039 , potential(_alloc)
00040 {
00041 }
00042
00043 typedef ::nav_msgs::MapMetaData_<ContainerAllocator> _info_type;
00044 ::nav_msgs::MapMetaData_<ContainerAllocator> info;
00045
00046 typedef uint32_t _source_type;
00047 uint32_t source;
00048
00049 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _valid_type;
00050 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > valid;
00051
00052 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _back_pointers_type;
00053 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > back_pointers;
00054
00055 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _potential_type;
00056 std::vector<float, typename ContainerAllocator::template rebind<float>::other > potential;
00057
00058
00059 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::occupancy_grid_utils::NavigationFunction_<std::allocator<void> > NavigationFunction;
00064
00065 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction> NavigationFunctionPtr;
00066 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction const> NavigationFunctionConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "c75461ff4f50ec30d6191b0a4430e7ee";
00088 }
00089
00090 static const char* value(const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0xc75461ff4f50ec30ULL;
00092 static const uint64_t static_value2 = 0xd6191b0a4430e7eeULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "occupancy_grid_utils/NavigationFunction";
00100 }
00101
00102 static const char* value(const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "nav_msgs/MapMetaData info\n\
00110 uint32 source\n\
00111 bool[] valid\n\
00112 uint32[] back_pointers\n\
00113 float32[] potential\n\
00114 ================================================================================\n\
00115 MSG: nav_msgs/MapMetaData\n\
00116 # This hold basic information about the characterists of the OccupancyGrid\n\
00117 \n\
00118 # The time at which the map was loaded\n\
00119 time map_load_time\n\
00120 # The map resolution [m/cell]\n\
00121 float32 resolution\n\
00122 # Map width [cells]\n\
00123 uint32 width\n\
00124 # Map height [cells]\n\
00125 uint32 height\n\
00126 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00127 # cell (0,0) in the map.\n\
00128 geometry_msgs/Pose origin\n\
00129 ================================================================================\n\
00130 MSG: geometry_msgs/Pose\n\
00131 # A representation of pose in free space, composed of postion and orientation. \n\
00132 Point position\n\
00133 Quaternion orientation\n\
00134 \n\
00135 ================================================================================\n\
00136 MSG: geometry_msgs/Point\n\
00137 # This contains the position of a point in free space\n\
00138 float64 x\n\
00139 float64 y\n\
00140 float64 z\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: geometry_msgs/Quaternion\n\
00144 # This represents an orientation in free space in quaternion form.\n\
00145 \n\
00146 float64 x\n\
00147 float64 y\n\
00148 float64 z\n\
00149 float64 w\n\
00150 \n\
00151 ";
00152 }
00153
00154 static const char* value(const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164
00165 template<class ContainerAllocator> struct Serializer< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> >
00166 {
00167 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168 {
00169 stream.next(m.info);
00170 stream.next(m.source);
00171 stream.next(m.valid);
00172 stream.next(m.back_pointers);
00173 stream.next(m.potential);
00174 }
00175
00176 ROS_DECLARE_ALLINONE_SERIALIZER;
00177 };
00178 }
00179 }
00180
00181 namespace ros
00182 {
00183 namespace message_operations
00184 {
00185
00186 template<class ContainerAllocator>
00187 struct Printer< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> >
00188 {
00189 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> & v)
00190 {
00191 s << indent << "info: ";
00192 s << std::endl;
00193 Printer< ::nav_msgs::MapMetaData_<ContainerAllocator> >::stream(s, indent + " ", v.info);
00194 s << indent << "source: ";
00195 Printer<uint32_t>::stream(s, indent + " ", v.source);
00196 s << indent << "valid[]" << std::endl;
00197 for (size_t i = 0; i < v.valid.size(); ++i)
00198 {
00199 s << indent << " valid[" << i << "]: ";
00200 Printer<uint8_t>::stream(s, indent + " ", v.valid[i]);
00201 }
00202 s << indent << "back_pointers[]" << std::endl;
00203 for (size_t i = 0; i < v.back_pointers.size(); ++i)
00204 {
00205 s << indent << " back_pointers[" << i << "]: ";
00206 Printer<uint32_t>::stream(s, indent + " ", v.back_pointers[i]);
00207 }
00208 s << indent << "potential[]" << std::endl;
00209 for (size_t i = 0; i < v.potential.size(); ++i)
00210 {
00211 s << indent << " potential[" << i << "]: ";
00212 Printer<float>::stream(s, indent + " ", v.potential[i]);
00213 }
00214 }
00215 };
00216
00217
00218 }
00219 }
00220
00221 #endif // OCCUPANCY_GRID_UTILS_MESSAGE_NAVIGATIONFUNCTION_H
00222