Binary Occupancy Grid Implementation #23
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description: Binary Occupancy Grid Implementation
Overview
This PR introduces a
BinaryOccupancyGrid
class that provides a grid-based representation of the environment for autonomous vehicle path planning and simulation. The implementation supports obstacle modeling, clearance handling, and visualization, making it a robust foundational tool for tasks like path planning, collision avoidance, and trajectory generation.Key Features
1. Grid-Based Representation
x_lim
,y_lim
) and resolution.2. Obstacle Handling
(x, y)
, dimensions(length, width)
, and rotation (yaw
).3. Clearance Space
4. Visualization
.png
), JSON (.json
), or binary NumPy file (.npy
).5. Obstacle Modeling
yaw
).6. Map Saving
.npy
): For programmatic reloading.Usage Instructions
Input
Map Configuration:
x_lim
andy_lim
to specify map boundaries.Obstacles:
position
,length
,width
, andyaw
.ObstacleList
object.Example
Output