OccupancyGrid Struct Reference

#include <ArmarXSimulation/components/LaserScannerSimulation/OccupancyGrid.h>

Public Member Functions

float computeDistance (Eigen::Vector2f pos, Eigen::Vector2f dir)
 
Eigen::Vector2f getCentralPosition (std::size_t indexX, std::size_t indexY) const
 
void init (std::size_t gridSizeX, std::size_t gridSizeY, float originX, float originY, float gridStepSize)
 
bool isInBounds (float posX, float posY) const
 
bool isOccupied (float posX, float posY) const
 
bool isOccupied (std::size_t indexX, std::size_t indexY) const
 
void setOccupied (std::size_t indexX, std::size_t indexY, bool posOccupied)
 

Public Attributes

boost::dynamic_bitset< std::size_t > occupied
 
float originX = 0.0f
 
float originY = 0.0f
 
std::size_t sizeX = 0
 
std::size_t sizeY = 0
 
float stepSize = 0.0f
 

Detailed Description

Definition at line 32 of file OccupancyGrid.h.

Member Function Documentation

◆ computeDistance()

float computeDistance ( Eigen::Vector2f  pos,
Eigen::Vector2f  dir 
)
inline

Definition at line 91 of file OccupancyGrid.h.

◆ getCentralPosition()

Eigen::Vector2f getCentralPosition ( std::size_t  indexX,
std::size_t  indexY 
) const
inline

Definition at line 69 of file OccupancyGrid.h.

◆ init()

void init ( std::size_t  gridSizeX,
std::size_t  gridSizeY,
float  originX,
float  originY,
float  gridStepSize 
)
inline

Definition at line 34 of file OccupancyGrid.h.

◆ isInBounds()

bool isInBounds ( float  posX,
float  posY 
) const
inline

Definition at line 83 of file OccupancyGrid.h.

+ Here is the call graph for this function:

◆ isOccupied() [1/2]

bool isOccupied ( float  posX,
float  posY 
) const
inline

Definition at line 76 of file OccupancyGrid.h.

+ Here is the call graph for this function:

◆ isOccupied() [2/2]

bool isOccupied ( std::size_t  indexX,
std::size_t  indexY 
) const
inline

Definition at line 50 of file OccupancyGrid.h.

+ Here is the caller graph for this function:

◆ setOccupied()

void setOccupied ( std::size_t  indexX,
std::size_t  indexY,
bool  posOccupied 
)
inline

Definition at line 60 of file OccupancyGrid.h.

Member Data Documentation

◆ occupied

boost::dynamic_bitset<std::size_t> occupied

Definition at line 146 of file OccupancyGrid.h.

◆ originX

float originX = 0.0f

Definition at line 143 of file OccupancyGrid.h.

◆ originY

float originY = 0.0f

Definition at line 144 of file OccupancyGrid.h.

◆ sizeX

std::size_t sizeX = 0

Definition at line 141 of file OccupancyGrid.h.

◆ sizeY

std::size_t sizeY = 0

Definition at line 142 of file OccupancyGrid.h.

◆ stepSize

float stepSize = 0.0f

Definition at line 145 of file OccupancyGrid.h.


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