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 <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 "nav_msgs/MapMetaData.h"
00014
00015 namespace occupancy_grid_utils
00016 {
00017 template <class ContainerAllocator>
00018 struct NavigationFunction_ : public ros::Message
00019 {
00020 typedef NavigationFunction_<ContainerAllocator> Type;
00021
00022 NavigationFunction_()
00023 : info()
00024 , source(0)
00025 , valid()
00026 , back_pointers()
00027 , potential()
00028 {
00029 }
00030
00031 NavigationFunction_(const ContainerAllocator& _alloc)
00032 : info(_alloc)
00033 , source(0)
00034 , valid(_alloc)
00035 , back_pointers(_alloc)
00036 , potential(_alloc)
00037 {
00038 }
00039
00040 typedef ::nav_msgs::MapMetaData_<ContainerAllocator> _info_type;
00041 ::nav_msgs::MapMetaData_<ContainerAllocator> info;
00042
00043 typedef uint32_t _source_type;
00044 uint32_t source;
00045
00046 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _valid_type;
00047 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > valid;
00048
00049 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _back_pointers_type;
00050 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > back_pointers;
00051
00052 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _potential_type;
00053 std::vector<float, typename ContainerAllocator::template rebind<float>::other > potential;
00054
00055
00056 ROS_DEPRECATED uint32_t get_valid_size() const { return (uint32_t)valid.size(); }
00057 ROS_DEPRECATED void set_valid_size(uint32_t size) { valid.resize((size_t)size); }
00058 ROS_DEPRECATED void get_valid_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->valid; }
00059 ROS_DEPRECATED void set_valid_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->valid = vec; }
00060 ROS_DEPRECATED uint32_t get_back_pointers_size() const { return (uint32_t)back_pointers.size(); }
00061 ROS_DEPRECATED void set_back_pointers_size(uint32_t size) { back_pointers.resize((size_t)size); }
00062 ROS_DEPRECATED void get_back_pointers_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->back_pointers; }
00063 ROS_DEPRECATED void set_back_pointers_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->back_pointers = vec; }
00064 ROS_DEPRECATED uint32_t get_potential_size() const { return (uint32_t)potential.size(); }
00065 ROS_DEPRECATED void set_potential_size(uint32_t size) { potential.resize((size_t)size); }
00066 ROS_DEPRECATED void get_potential_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->potential; }
00067 ROS_DEPRECATED void set_potential_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->potential = vec; }
00068 private:
00069 static const char* __s_getDataType_() { return "occupancy_grid_utils/NavigationFunction"; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00072
00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00074
00075 private:
00076 static const char* __s_getMD5Sum_() { return "c75461ff4f50ec30d6191b0a4430e7ee"; }
00077 public:
00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00079
00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00081
00082 private:
00083 static const char* __s_getMessageDefinition_() { return "nav_msgs/MapMetaData info\n\
00084 uint32 source\n\
00085 bool[] valid\n\
00086 uint32[] back_pointers\n\
00087 float32[] potential\n\
00088 ================================================================================\n\
00089 MSG: nav_msgs/MapMetaData\n\
00090 # This hold basic information about the characterists of the OccupancyGrid\n\
00091 \n\
00092 # The time at which the map was loaded\n\
00093 time map_load_time\n\
00094 # The map resolution [m/cell]\n\
00095 float32 resolution\n\
00096 # Map width [cells]\n\
00097 uint32 width\n\
00098 # Map height [cells]\n\
00099 uint32 height\n\
00100 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00101 # cell (0,0) in the map.\n\
00102 geometry_msgs/Pose origin\n\
00103 ================================================================================\n\
00104 MSG: geometry_msgs/Pose\n\
00105 # A representation of pose in free space, composed of postion and orientation. \n\
00106 Point position\n\
00107 Quaternion orientation\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: geometry_msgs/Point\n\
00111 # This contains the position of a point in free space\n\
00112 float64 x\n\
00113 float64 y\n\
00114 float64 z\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: geometry_msgs/Quaternion\n\
00118 # This represents an orientation in free space in quaternion form.\n\
00119 \n\
00120 float64 x\n\
00121 float64 y\n\
00122 float64 z\n\
00123 float64 w\n\
00124 \n\
00125 "; }
00126 public:
00127 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00128
00129 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00130
00131 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00132 {
00133 ros::serialization::OStream stream(write_ptr, 1000000000);
00134 ros::serialization::serialize(stream, info);
00135 ros::serialization::serialize(stream, source);
00136 ros::serialization::serialize(stream, valid);
00137 ros::serialization::serialize(stream, back_pointers);
00138 ros::serialization::serialize(stream, potential);
00139 return stream.getData();
00140 }
00141
00142 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00143 {
00144 ros::serialization::IStream stream(read_ptr, 1000000000);
00145 ros::serialization::deserialize(stream, info);
00146 ros::serialization::deserialize(stream, source);
00147 ros::serialization::deserialize(stream, valid);
00148 ros::serialization::deserialize(stream, back_pointers);
00149 ros::serialization::deserialize(stream, potential);
00150 return stream.getData();
00151 }
00152
00153 ROS_DEPRECATED virtual uint32_t serializationLength() const
00154 {
00155 uint32_t size = 0;
00156 size += ros::serialization::serializationLength(info);
00157 size += ros::serialization::serializationLength(source);
00158 size += ros::serialization::serializationLength(valid);
00159 size += ros::serialization::serializationLength(back_pointers);
00160 size += ros::serialization::serializationLength(potential);
00161 return size;
00162 }
00163
00164 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > Ptr;
00165 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> const> ConstPtr;
00166 };
00167 typedef ::occupancy_grid_utils::NavigationFunction_<std::allocator<void> > NavigationFunction;
00168
00169 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction> NavigationFunctionPtr;
00170 typedef boost::shared_ptr< ::occupancy_grid_utils::NavigationFunction const> NavigationFunctionConstPtr;
00171
00172
00173 template<typename ContainerAllocator>
00174 std::ostream& operator<<(std::ostream& s, const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> & v)
00175 {
00176 ros::message_operations::Printer< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> >::stream(s, "", v);
00177 return s;}
00178
00179 }
00180
00181 namespace ros
00182 {
00183 namespace message_traits
00184 {
00185 template<class ContainerAllocator>
00186 struct MD5Sum< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "c75461ff4f50ec30d6191b0a4430e7ee";
00190 }
00191
00192 static const char* value(const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> &) { return value(); }
00193 static const uint64_t static_value1 = 0xc75461ff4f50ec30ULL;
00194 static const uint64_t static_value2 = 0xd6191b0a4430e7eeULL;
00195 };
00196
00197 template<class ContainerAllocator>
00198 struct DataType< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > {
00199 static const char* value()
00200 {
00201 return "occupancy_grid_utils/NavigationFunction";
00202 }
00203
00204 static const char* value(const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> &) { return value(); }
00205 };
00206
00207 template<class ContainerAllocator>
00208 struct Definition< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "nav_msgs/MapMetaData info\n\
00212 uint32 source\n\
00213 bool[] valid\n\
00214 uint32[] back_pointers\n\
00215 float32[] potential\n\
00216 ================================================================================\n\
00217 MSG: nav_msgs/MapMetaData\n\
00218 # This hold basic information about the characterists of the OccupancyGrid\n\
00219 \n\
00220 # The time at which the map was loaded\n\
00221 time map_load_time\n\
00222 # The map resolution [m/cell]\n\
00223 float32 resolution\n\
00224 # Map width [cells]\n\
00225 uint32 width\n\
00226 # Map height [cells]\n\
00227 uint32 height\n\
00228 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00229 # cell (0,0) in the map.\n\
00230 geometry_msgs/Pose origin\n\
00231 ================================================================================\n\
00232 MSG: geometry_msgs/Pose\n\
00233 # A representation of pose in free space, composed of postion and orientation. \n\
00234 Point position\n\
00235 Quaternion orientation\n\
00236 \n\
00237 ================================================================================\n\
00238 MSG: geometry_msgs/Point\n\
00239 # This contains the position of a point in free space\n\
00240 float64 x\n\
00241 float64 y\n\
00242 float64 z\n\
00243 \n\
00244 ================================================================================\n\
00245 MSG: geometry_msgs/Quaternion\n\
00246 # This represents an orientation in free space in quaternion form.\n\
00247 \n\
00248 float64 x\n\
00249 float64 y\n\
00250 float64 z\n\
00251 float64 w\n\
00252 \n\
00253 ";
00254 }
00255
00256 static const char* value(const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> &) { return value(); }
00257 };
00258
00259 }
00260 }
00261
00262 namespace ros
00263 {
00264 namespace serialization
00265 {
00266
00267 template<class ContainerAllocator> struct Serializer< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> >
00268 {
00269 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00270 {
00271 stream.next(m.info);
00272 stream.next(m.source);
00273 stream.next(m.valid);
00274 stream.next(m.back_pointers);
00275 stream.next(m.potential);
00276 }
00277
00278 ROS_DECLARE_ALLINONE_SERIALIZER;
00279 };
00280 }
00281 }
00282
00283 namespace ros
00284 {
00285 namespace message_operations
00286 {
00287
00288 template<class ContainerAllocator>
00289 struct Printer< ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> >
00290 {
00291 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::occupancy_grid_utils::NavigationFunction_<ContainerAllocator> & v)
00292 {
00293 s << indent << "info: ";
00294 s << std::endl;
00295 Printer< ::nav_msgs::MapMetaData_<ContainerAllocator> >::stream(s, indent + " ", v.info);
00296 s << indent << "source: ";
00297 Printer<uint32_t>::stream(s, indent + " ", v.source);
00298 s << indent << "valid[]" << std::endl;
00299 for (size_t i = 0; i < v.valid.size(); ++i)
00300 {
00301 s << indent << " valid[" << i << "]: ";
00302 Printer<uint8_t>::stream(s, indent + " ", v.valid[i]);
00303 }
00304 s << indent << "back_pointers[]" << std::endl;
00305 for (size_t i = 0; i < v.back_pointers.size(); ++i)
00306 {
00307 s << indent << " back_pointers[" << i << "]: ";
00308 Printer<uint32_t>::stream(s, indent + " ", v.back_pointers[i]);
00309 }
00310 s << indent << "potential[]" << std::endl;
00311 for (size_t i = 0; i < v.potential.size(); ++i)
00312 {
00313 s << indent << " potential[" << i << "]: ";
00314 Printer<float>::stream(s, indent + " ", v.potential[i]);
00315 }
00316 }
00317 };
00318
00319
00320 }
00321 }
00322
00323 #endif // OCCUPANCY_GRID_UTILS_MESSAGE_NAVIGATIONFUNCTION_H
00324