#include <layer.h>
|
virtual void | activate () |
| Restart publishers if they've been stopped. More...
|
|
virtual void | deactivate () |
| Stop publishers. More...
|
|
const std::vector< geometry_msgs::Point > & | getFootprint () const |
| Convenience function for layered_costmap_->getFootprint(). More...
|
|
std::string | getName () const |
|
void | initialize (LayeredCostmap *parent, std::string name, tf2_ros::Buffer *tf) |
|
bool | isCurrent () const |
| Check to make sure all the data in the layer is up to date. If the layer is not up to date, then it may be unsafe to plan using the data from this layer, and the planner may need to know. More...
|
|
| Layer () |
|
virtual void | matchSize () |
| Implement this to make this layer match the size of the parent costmap. More...
|
|
virtual void | onFootprintChanged () |
| LayeredCostmap calls this whenever the footprint there changes (via LayeredCostmap::setFootprint()). Override to be notified of changes to the robot's footprint. More...
|
|
virtual void | reset () |
|
virtual void | updateBounds (double robot_x, double robot_y, double robot_yaw, double *min_x, double *min_y, double *max_x, double *max_y) |
| This is called by the LayeredCostmap to poll this plugin as to how much of the costmap it needs to update. Each layer can increase the size of this bounds. More...
|
|
virtual void | updateCosts (Costmap2D &master_grid, int min_i, int min_j, int max_i, int max_j) |
| Actually update the underlying costmap, only within the bounds calculated during UpdateBounds(). More...
|
|
virtual | ~Layer () |
|
Definition at line 49 of file layer.h.
◆ Layer()
costmap_2d::Layer::Layer |
( |
| ) |
|
◆ ~Layer()
virtual costmap_2d::Layer::~Layer |
( |
| ) |
|
|
inlinevirtual |
◆ activate()
virtual void costmap_2d::Layer::activate |
( |
| ) |
|
|
inlinevirtual |
◆ deactivate()
virtual void costmap_2d::Layer::deactivate |
( |
| ) |
|
|
inlinevirtual |
◆ getFootprint()
◆ getName()
std::string costmap_2d::Layer::getName |
( |
| ) |
const |
|
inline |
◆ initialize()
◆ isCurrent()
bool costmap_2d::Layer::isCurrent |
( |
| ) |
const |
|
inline |
Check to make sure all the data in the layer is up to date. If the layer is not up to date, then it may be unsafe to plan using the data from this layer, and the planner may need to know.
A layer's current state should be managed by the protected variable current_.
- Returns
- Whether the data in the layer is up to date.
Definition at line 93 of file layer.h.
◆ matchSize()
virtual void costmap_2d::Layer::matchSize |
( |
| ) |
|
|
inlinevirtual |
◆ onFootprintChanged()
virtual void costmap_2d::Layer::onFootprintChanged |
( |
| ) |
|
|
inlinevirtual |
◆ onInitialize()
virtual void costmap_2d::Layer::onInitialize |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ reset()
virtual void costmap_2d::Layer::reset |
( |
| ) |
|
|
inlinevirtual |
◆ updateBounds()
virtual void costmap_2d::Layer::updateBounds |
( |
double |
robot_x, |
|
|
double |
robot_y, |
|
|
double |
robot_yaw, |
|
|
double * |
min_x, |
|
|
double * |
min_y, |
|
|
double * |
max_x, |
|
|
double * |
max_y |
|
) |
| |
|
inlinevirtual |
◆ updateCosts()
virtual void costmap_2d::Layer::updateCosts |
( |
Costmap2D & |
master_grid, |
|
|
int |
min_i, |
|
|
int |
min_j, |
|
|
int |
max_i, |
|
|
int |
max_j |
|
) |
| |
|
inlinevirtual |
◆ current_
bool costmap_2d::Layer::current_ |
|
protected |
◆ enabled_
bool costmap_2d::Layer::enabled_ |
|
protected |
Currently this var is managed by subclasses. TODO: make this managed by this class and/or container class.
Definition at line 123 of file layer.h.
◆ footprint_spec_
◆ layered_costmap_
◆ name_
std::string costmap_2d::Layer::name_ |
|
protected |
◆ tf_
The documentation for this class was generated from the following files:
costmap_2d
Author(s): Eitan Marder-Eppstein, David V. Lu!!, Dave Hershberger, contradict@gmail.com
autogenerated on Wed Jun 22 2022 02:07:03