Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef COSTMAP_2D_FOOTPRINT_LAYER_H_
00039 #define COSTMAP_2D_FOOTPRINT_LAYER_H_
00040
00041 #include <ros/ros.h>
00042 #include <costmap_2d/layer.h>
00043 #include <costmap_2d/layered_costmap.h>
00044 #include <costmap_2d/costmap_math.h>
00045 #include <costmap_2d/GenericPluginConfig.h>
00046 #include <dynamic_reconfigure/server.h>
00047 #include <nav_msgs/OccupancyGrid.h>
00048 #include <geometry_msgs/Polygon.h>
00049 #include <geometry_msgs/PolygonStamped.h>
00050
00051 namespace costmap_2d
00052 {
00053
00054 class FootprintLayer : public Layer
00055 {
00056 public:
00057 virtual void onInitialize();
00058 virtual ~FootprintLayer();
00059
00060 virtual void updateBounds(double robot_x, double robot_y, double robot_yaw, double* min_x, double* min_y, double* max_x,
00061 double* max_y);
00062 virtual void updateCosts(costmap_2d::Costmap2D& master_grid, int min_i, int min_j, int max_i, int max_j);
00063
00064 private:
00065 geometry_msgs::PolygonStamped footprint_;
00066 void publishFootprint();
00067 void reconfigureCB(costmap_2d::GenericPluginConfig &config, uint32_t level);
00068 ros::Publisher footprint_pub_;
00069 dynamic_reconfigure::Server<costmap_2d::GenericPluginConfig> *dsrv_;
00070 };
00071
00072 }
00073
00074 #endif // COSTMAP_2D_FOOTPRINT_LAYER_H_
00075
costmap_2d
Author(s): Eitan Marder-Eppstein, David V. Lu!!, Dave Hershberger, contradict@gmail.com
autogenerated on Thu Aug 27 2015 14:06:55