Skip to content

Commit

Permalink
made fields readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Helena Jäger committed Dec 18, 2024
1 parent 5246d36 commit 1b04e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ impl ObstacleMapConfig {
#[pyclass(eq, str = "ObstacleMap(obstacles={obstacles:?})")]
#[derive(Debug, Clone, PartialEq)]
pub struct ObstacleMap {
#[pyo3(get, set)]
config: ObstacleMapConfig,
#[pyo3(get, set)]
obstacles: Vec<RoundObstacle>,
}

Expand Down
2 changes: 2 additions & 0 deletions src/obstacle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ pub trait Obstacle {
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct RoundObstacle {
/// The center of the obstacle
#[pyo3(get, set)]
center: (f64, f64),
/// The radius of the obstacle
#[pyo3(get, set)]
radius: f64,
}

Expand Down

0 comments on commit 1b04e65

Please # to comment.