We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2b20b commit 5246d36Copy full SHA for 5246d36
src/lib.rs
@@ -1,18 +1,15 @@
1
+use map::{ObstacleMap, ObstacleMapConfig};
2
+use obstacle::RoundObstacle;
3
use pyo3::prelude::*;
4
5
mod map;
6
mod obstacle;
7
mod planner;
8
-/// Formats the sum of two numbers as string.
-#[pyfunction]
9
-fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
10
- Ok((a + b).to_string())
11
-}
12
-
13
-/// A Python module implemented in Rust.
14
#[pymodule]
15
fn bitbots_pathplanning_rust(m: &Bound<'_, PyModule>) -> PyResult<()> {
16
- m.add_function(wrap_pyfunction!(sum_as_string, m)?)?;
+ m.add_class::<RoundObstacle>()?;
+ m.add_class::<ObstacleMap>()?;
+ m.add_class::<ObstacleMapConfig>()?;
17
Ok(())
18
}
0 commit comments