public class OccupancyGridMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[][] |
cells |
private double |
freeThreshold |
private int |
height |
private double |
occupiedThreshold |
private double |
resolution |
private int |
width |
Constructor and Description |
---|
OccupancyGridMap(int width,
int height,
double freeThreshold,
double occupiedThreshold,
double resolution) |
Modifier and Type | Method and Description |
---|---|
double |
getFreeThreshold() |
int |
getHeight() |
int |
getOccupied(int x,
int y) |
double |
getOccupiedThreshold() |
double |
getResolution() |
int |
getWidth() |
boolean |
isFree(int x,
int y) |
boolean |
isOccupied(int x,
int y) |
void |
setOccupied(int x,
int y,
int occupied) |
private int width
private int height
private double freeThreshold
private double occupiedThreshold
private double resolution
private byte[][] cells
public OccupancyGridMap(int width, int height, double freeThreshold, double occupiedThreshold, double resolution)
public int getWidth()
public int getHeight()
public double getResolution()
public double getFreeThreshold()
public double getOccupiedThreshold()
public void setOccupied(int x, int y, int occupied)
public int getOccupied(int x, int y)
public boolean isOccupied(int x, int y)
public boolean isFree(int x, int y)