From d440184dd10764c05323e95900d3d7e8a2a4cc2c Mon Sep 17 00:00:00 2001 From: Jasmeet Singh Date: Wed, 16 Aug 2023 16:31:42 +0530 Subject: [PATCH] Updated occurances of InterfaceMOICalculator class with CustomInertiaCalcProperties Signed-off-by: Jasmeet Singh --- include/gz/sim/MeshInertiaCalculator.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gz/sim/MeshInertiaCalculator.hh b/include/gz/sim/MeshInertiaCalculator.hh index f0bbcb36d96..7b0ccd84b23 100644 --- a/include/gz/sim/MeshInertiaCalculator.hh +++ b/include/gz/sim/MeshInertiaCalculator.hh @@ -21,7 +21,7 @@ #include #include -#include +#include #include "gz/sim/Util.hh" @@ -55,7 +55,7 @@ inline namespace GZ_SIM_VERSION_NAMESPACE gz::math::Pose3d& centreOfMass); public: std::optional operator()(sdf::Errors& _errors, - const sdf::InterfaceMoiCalculator& _calculatorParams); + const sdf::CustomInertiaCalcProperties& _calculatorParams); //public: sdf::CustomMOICalculator customCalculator = CalculateMeshInertia; }; @@ -187,7 +187,7 @@ inline namespace GZ_SIM_VERSION_NAMESPACE } std::optional MeshInertiaCalculator::operator()(sdf::Errors& _errors, - const sdf::InterfaceMoiCalculator& _calculatorParams) + const sdf::CustomInertiaCalcProperties& _calculatorParams) { const gz::common::Mesh *mesh = nullptr; const double density = _calculatorParams.Density();