Skip to content

Commit

Permalink
Updated occurances of InterfaceMOICalculator class with CustomInertia…
Browse files Browse the repository at this point in the history
…CalcProperties

Signed-off-by: Jasmeet Singh <[email protected]>
  • Loading branch information
jasmeet0915 committed Aug 17, 2023
1 parent e7938a4 commit d440184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gz/sim/MeshInertiaCalculator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <optional>

#include <sdf/sdf.hh>
#include <sdf/InterafaceMoiCalculator.hh>
#include <sdf/CustomInertiaCalcProperties.hh>

#include "gz/sim/Util.hh"

Expand Down Expand Up @@ -55,7 +55,7 @@ inline namespace GZ_SIM_VERSION_NAMESPACE
gz::math::Pose3d& centreOfMass);

public: std::optional<gz::math::Inertiald> operator()(sdf::Errors& _errors,
const sdf::InterfaceMoiCalculator& _calculatorParams);
const sdf::CustomInertiaCalcProperties& _calculatorParams);

//public: sdf::CustomMOICalculator customCalculator = CalculateMeshInertia;
};
Expand Down Expand Up @@ -187,7 +187,7 @@ inline namespace GZ_SIM_VERSION_NAMESPACE
}

std::optional<gz::math::Inertiald> MeshInertiaCalculator::operator()(sdf::Errors& _errors,
const sdf::InterfaceMoiCalculator& _calculatorParams)
const sdf::CustomInertiaCalcProperties& _calculatorParams)
{
const gz::common::Mesh *mesh = nullptr;
const double density = _calculatorParams.Density();
Expand Down

0 comments on commit d440184

Please sign in to comment.