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