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

Commit

Permalink
Add compute() on MomentOfInertiaEstimation (#135)
Browse files Browse the repository at this point in the history
Thanks for the PR. 

About test code.
0.3 At the time of release, we will implement it at once.
  • Loading branch information
vlobanov authored and Sirokujira committed Nov 22, 2017
1 parent c388674 commit 04154d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ cdef class MomentOfInertiaEstimation:
def __dealloc__(self):
del self.me

# feature_extractor.compute ();
# feature_extractor.getMomentOfInertia (moment_of_inertia);
# feature_extractor.getEccentricity (eccentricity);
# feature_extractor.getAABB (min_point_AABB, max_point_AABB);
# feature_extractor.getOBB (min_point_OBB, max_point_OBB, position_OBB, rotational_matrix_OBB);
# feature_extractor.getEigenValues (major_value, middle_value, minor_value);
# feature_extractor.getEigenVectors (major_vector, middle_vector, minor_vector);
# feature_extractor.getMassCenter (mass_center);
def compute (self):
self.me.compute()

def get_MomentOfInertia (self):
cdef vector[float] moment_of_inertia
self.me.getMomentOfInertia(moment_of_inertia)
Expand Down
4 changes: 4 additions & 0 deletions pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ cdef class MomentOfInertiaEstimation:
def __dealloc__(self):
del self.me

# feature_extractor.compute ();
# feature_extractor.getMomentOfInertia (moment_of_inertia);
# feature_extractor.getEccentricity (eccentricity);
# feature_extractor.getAABB (min_point_AABB, max_point_AABB);
# feature_extractor.getOBB (min_point_OBB, max_point_OBB, position_OBB, rotational_matrix_OBB);
# feature_extractor.getEigenValues (major_value, middle_value, minor_value);
# feature_extractor.getEigenVectors (major_vector, middle_vector, minor_vector);
# feature_extractor.getMassCenter (mass_center);
def compute (self):
self.me.compute()

def get_MomentOfInertia (self):
cdef vector[float] moment_of_inertia
self.me.getMomentOfInertia(moment_of_inertia)
Expand Down

0 comments on commit 04154d9

Please sign in to comment.