Skip to content

Commit c42f4c9

Browse files
committed
Merge branch 'main' of github.com:bit-bots/bitbots_rust_nav
2 parents 43c9f7d + 648432e commit c42f4c9

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
# bitbots_rust_nav
22

3-
A best-effort A*-on-visibility-graph implementation for pathplanning in obstacles maps where obstacles and the robot itself are assumed to be round.
3+
A best-effort A*-on-visibility-graph implementation for path planning in obstacles maps where obstacles and the robot itself are assumed to be round.
4+
5+
## Installation
6+
7+
```bash
8+
pip install git+https://github.com/bit-bots/bitbots_rust_nav
9+
```
10+
11+
## API
412

513
It exports three classes
614

7-
## `RoundObstacle`
15+
### `RoundObstacle`
816

917
Represents a round obstacle with public fields `center: (float, float)` and `radius: float`. Can be created with the constructor `RoundObstacle(center, radius)`
1018

11-
## `ObstacleMapConfig`
19+
### `ObstacleMapConfig`
1220

1321
Represents all configuration values for how obstacles should be treated with public fields `dilate: float` - the value by which the radii of the obstacles should be dilated (this should be set to approximately your own radius) - and `num_vertices` - the number of vertices the polygons approximating the round obstacles should have. Can be created with the constructor `ObstacleMapConfig(dilate, num_vertices)`
1422

15-
## `ObstacleMap`
23+
### `ObstacleMap`
1624

17-
Represents a set of obstacles on a plane with a given config. This has two fields: `config: ObstacleMapConfig` and `obstacles: [RoundObstacle]`. Can be created with the constructor `ObstacleMap(config, obstacles)`
25+
Represents a set of obstacles on a plane with a given config. This has two fields: `config: ObstacleMapConfig` and `obstacles: [RoundObstacle]`. Can be created with the constructor `ObstacleMap(config, obstacles)`

0 commit comments

Comments
 (0)