pub struct SceneGraphBuilder { /* private fields */ }Expand description
Builds a SceneGraph from detected obstacles or raw point clouds.
The builder clusters scene objects, computes spatial edges between nearby objects, and produces a timestamped scene graph.
Implementations§
Source§impl SceneGraphBuilder
impl SceneGraphBuilder
Sourcepub fn new(edge_distance_threshold: f64, max_objects: usize) -> Self
pub fn new(edge_distance_threshold: f64, max_objects: usize) -> Self
Create a new builder with explicit parameters.
Sourcepub fn build(&self, objects: Vec<SceneObject>, timestamp: i64) -> SceneGraph
pub fn build(&self, objects: Vec<SceneObject>, timestamp: i64) -> SceneGraph
Build a scene graph from a list of SceneObjects.
Edges are created between every pair of objects whose centers are within
edge_distance_threshold.
Sourcepub fn build_from_obstacles(
&self,
obstacles: &[DetectedObstacle],
timestamp: i64,
) -> SceneGraph
pub fn build_from_obstacles( &self, obstacles: &[DetectedObstacle], timestamp: i64, ) -> SceneGraph
Build a scene graph from detected obstacles.
Sourcepub fn merge(&self, a: &SceneGraph, b: &SceneGraph) -> SceneGraph
pub fn merge(&self, a: &SceneGraph, b: &SceneGraph) -> SceneGraph
Merge two scene graphs into one, re-computing edges.
Trait Implementations§
Source§impl Clone for SceneGraphBuilder
impl Clone for SceneGraphBuilder
Source§fn clone(&self) -> SceneGraphBuilder
fn clone(&self) -> SceneGraphBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneGraphBuilder
impl Debug for SceneGraphBuilder
Auto Trait Implementations§
impl Freeze for SceneGraphBuilder
impl RefUnwindSafe for SceneGraphBuilder
impl Send for SceneGraphBuilder
impl Sync for SceneGraphBuilder
impl Unpin for SceneGraphBuilder
impl UnsafeUnpin for SceneGraphBuilder
impl UnwindSafe for SceneGraphBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more