Skip to content

Commit 39b3123

Browse files
committed
feat: add DistanceMap doc
1 parent f057b9a commit 39b3123

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

docs/modules/5_path_planning/path_planning_main.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ Path planning is the ability of a robot to search feasible and efficient path to
3131
hybridastar/hybridastar
3232
frenet_frame_path/frenet_frame_path
3333
coverage_path/coverage_path
34+
distance_map/distance_map
31.9 KB
Loading
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Distance Map
2+
------------
3+
4+
This is an implementation of the Distance Map algorithm for path planning.
5+
6+
The Distance Map algorithm computes the unsigned distance field (UDF) and signed distance field (SDF) from a boolean field representing obstacles.
7+
8+
The UDF gives the distance from each point to the nearest obstacle. The SDF gives positive distances for points outside obstacles and negative distances for points inside obstacles.
9+
10+
Example
11+
~~~~~~~
12+
13+
The algorithm is demonstrated on a simple 2D grid with obstacles:
14+
15+
.. image:: distance_map.png
16+
17+
API
18+
~~~
19+
20+
.. autofunction:: PathPlanning.DistanceMap.distance_map.compute_sdf
21+
22+
.. autofunction:: PathPlanning.DistanceMap.distance_map.compute_udf
23+
24+
References
25+
~~~~~~~~~~
26+
27+
- `Distance Transforms of Sampled Functions <https://cs.brown.edu/people/pfelzens/papers/dt-final.pdf>`_ paper by Pedro F. Felzenszwalb and Daniel P. Huttenlocher.

0 commit comments

Comments
 (0)