Skip to content

Commit 1b04e65

Browse files
author
Helena Jäger
committed
made fields readable
1 parent 5246d36 commit 1b04e65

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ impl ObstacleMapConfig {
3333
#[pyclass(eq, str = "ObstacleMap(obstacles={obstacles:?})")]
3434
#[derive(Debug, Clone, PartialEq)]
3535
pub struct ObstacleMap {
36+
#[pyo3(get, set)]
3637
config: ObstacleMapConfig,
38+
#[pyo3(get, set)]
3739
obstacles: Vec<RoundObstacle>,
3840
}
3941

src/obstacle.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ pub trait Obstacle {
1717
#[derive(Debug, Clone, Copy, PartialEq)]
1818
pub struct RoundObstacle {
1919
/// The center of the obstacle
20+
#[pyo3(get, set)]
2021
center: (f64, f64),
2122
/// The radius of the obstacle
23+
#[pyo3(get, set)]
2224
radius: f64,
2325
}
2426

0 commit comments

Comments
 (0)