pub struct PointCloudSceneGraphBuilder { /* private fields */ }Expand description
Builds SceneGraph instances from point clouds or pre-classified
object lists using spatial-hash clustering with union-find.
Implementations§
Source§impl PointCloudSceneGraphBuilder
impl PointCloudSceneGraphBuilder
Sourcepub fn new(config: SceneGraphConfig) -> Self
pub fn new(config: SceneGraphConfig) -> Self
Create a new builder with the given configuration.
Sourcepub fn build_from_point_cloud(&self, cloud: &PointCloud) -> SceneGraph
pub fn build_from_point_cloud(&self, cloud: &PointCloud) -> SceneGraph
Build a scene graph by clustering a raw point cloud.
- Points are discretised into a spatial hash grid.
- Adjacent cells are merged via union-find.
- Each cluster above
min_cluster_sizebecomes aSceneObject. - Edges are created between objects whose centres are within
edge_distance_threshold.
Sourcepub fn build_from_objects(&self, objects: &[SceneObject]) -> SceneGraph
pub fn build_from_objects(&self, objects: &[SceneObject]) -> SceneGraph
Build a scene graph from a pre-existing list of objects.
Edges are created between objects whose centres are within
edge_distance_threshold.
Sourcepub fn merge_scenes(&self, scenes: &[SceneGraph]) -> SceneGraph
pub fn merge_scenes(&self, scenes: &[SceneGraph]) -> SceneGraph
Merge multiple scene graphs into one, deduplicating objects that share
the same id.
Trait Implementations§
Source§impl Clone for PointCloudSceneGraphBuilder
impl Clone for PointCloudSceneGraphBuilder
Source§fn clone(&self) -> PointCloudSceneGraphBuilder
fn clone(&self) -> PointCloudSceneGraphBuilder
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 moreAuto Trait Implementations§
impl Freeze for PointCloudSceneGraphBuilder
impl RefUnwindSafe for PointCloudSceneGraphBuilder
impl Send for PointCloudSceneGraphBuilder
impl Sync for PointCloudSceneGraphBuilder
impl Unpin for PointCloudSceneGraphBuilder
impl UnsafeUnpin for PointCloudSceneGraphBuilder
impl UnwindSafe for PointCloudSceneGraphBuilder
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