Class AgentVisibilityLayer

Inheritance Relationships

Base Type

Class Documentation

class AgentVisibilityLayer : public cohan_layers::AgentLayer

Public Functions

inline AgentVisibilityLayer()
void onInitialize() override

Initializes the AgentVisibilityLayer and sets up ROS communication.

virtual void updateBoundsFromAgents(double *min_x, double *min_y, double *max_x, double *max_y) override

Updates the bounds of the costmap based on agent positions.

Parameters:
  • min_x – Minimum x-coordinate of the bounds

  • min_y – Minimum y-coordinate of the bounds

  • max_x – Maximum x-coordinate of the bounds

  • max_y – Maximum y-coordinate of the bounds

virtual void updateCosts(costmap_2d::Costmap2D &master_grid, int min_i, int min_j, int max_i, int max_j) override

Updates the costmap with agent visibility information.

Parameters:
  • master_grid – Reference to the master costmap grid

  • min_i – Minimum i-index of the grid

  • min_j – Minimum j-index of the grid

  • max_i – Maximum i-index of the grid

  • max_j – Maximum j-index of the grid

Protected Functions

void configure(AgentVisibilityLayerConfig &config, uint32_t level)

Configures the AgentVisibilityLayer using dynamic reconfigure.

Parameters:
  • config – Configuration parameters for the layer

  • level – Reconfiguration level

Protected Attributes

dynamic_reconfigure::Server<AgentVisibilityLayerConfig> *server_

Dynamic reconfigure server for AgentVisibilityLayer.

dynamic_reconfigure::Server<AgentVisibilityLayerConfig>::CallbackType f_

Callback type for dynamic reconfigure server.