Robotics::Navigation::OccupancyGrid
Inherits Reference < Object
Grid-based map for navigation
Constructors
new(width : Int32, height : Int32, resolution : Float64 = 0.1)
Instance methods
clear_obstacle(x : Int32, y : Int32)
grid_to_world(gx : Int32, gy : Int32) : SpatialReasoning::Position
Convert grid coordinates to world position
height
obstacle?(x : Int32, y : Int32) : Bool
resolution
set_obstacle(x : Int32, y : Int32)
valid?(x : Int32, y : Int32) : Bool
width
world_to_grid(pos : SpatialReasoning::Position) : Tuple(Int32, Int32)
Convert world position to grid coordinates