Nav2 Navigation Stack - rolling  main
ROS 2 Navigation Stack
Public Member Functions | Protected Attributes | List of all members
nav2_map_server::MapAction Class Reference

Functor class used in raytraceLine algorithm. More...

#include <nav2_map_server/include/nav2_map_server/vector_object_utils.hpp>

Public Member Functions

 MapAction (nav_msgs::msg::OccupancyGrid::SharedPtr map, int8_t value, OverlayType overlay_type)
 MapAction constructor. More...
 
void operator() (unsigned int offset)
 Map' cell updating operator. More...
 

Protected Attributes

nav_msgs::msg::OccupancyGrid::SharedPtr map_
 Output map pointer.
 
int8_t value_
 Value to put on map.
 
OverlayType overlay_type_
 Overlay type.
 

Detailed Description

Functor class used in raytraceLine algorithm.

Definition at line 107 of file vector_object_utils.hpp.

Constructor & Destructor Documentation

◆ MapAction()

nav2_map_server::MapAction::MapAction ( nav_msgs::msg::OccupancyGrid::SharedPtr  map,
int8_t  value,
OverlayType  overlay_type 
)
inline

MapAction constructor.

Parameters
mapPointer to output map
valueValue to put on map
overlay_typeOverlay type

Definition at line 116 of file vector_object_utils.hpp.

Member Function Documentation

◆ operator()()

void nav2_map_server::MapAction::operator() ( unsigned int  offset)
inline

Map' cell updating operator.

Parameters
offsetOffset on the map where the cell to be changed

Definition at line 126 of file vector_object_utils.hpp.

References map_, overlay_type_, and value_.


The documentation for this class was generated from the following file: