Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Added: set/get_eps_angle and set/get_axis to SACSegmentation classes #314

Open
aclapes wants to merge 2 commits intostrawlab:masterfrom
aclapes:development
Open

Added: set/get_eps_angle and set/get_axis to SACSegmentation classes #314
aclapes wants to merge 2 commits intostrawlab:masterfrom
aclapes:development

Conversation

@aclapes
Copy link

@aclapes aclapes commented Aug 13, 2019

I needed to use this piece of code in the project I'm working on:

    seg = cloud.make_segmenter()
    seg.set_optimize_coefficients(True)
    seg.set_model_type(pcl.SACMODEL_PERPENDICULAR_PLANE)
    seg.set_method_type(pcl.SAC_RANSAC)
    seg.set_axis(0., 1.0, 1.0)
    seg.set_eps_angle(math.pi/4)
    seg.set_distance_threshold(0.1)
    indices, coefficients = seg.segment()

But I found seg.set_axis(...) and seg.set_eps_angle(...) where non-existing, so I added them to pcl/pxi/Segmentation.pxi (and to the rest of Segmentation_*.pxi).

Cheers :)


This change is Reviewable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant