Skip to content

Commit

Permalink
Remove RelativeGravityType GetGravity API
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Peters <[email protected]>
  • Loading branch information
scpeters committed Jul 14, 2021
1 parent 5324195 commit 7fa6ab2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion dartsim/src/LinkFeatures_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ TEST_F(LinkFeaturesFixture, LinkForceTorque)
{
AssertVectorApprox vectorPredicate(1e-10);
EXPECT_PRED_FORMAT2(vectorPredicate, Eigen::Vector3d::Zero(),
world->GetGravity(physics::FrameID::World()));
world->GetGravity());
}

// Add a sphere
Expand Down
6 changes: 0 additions & 6 deletions include/ignition/physics/World.hh
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ namespace ignition
const LinearVectorType &_gravity,
const FrameID &_forceInCoordinatesOf = FrameID::World());

/// \brief Get the World gravity vector as a Relative Gravity
/// (a quantity that contains information about the coordinates
/// in which it is expressed).
/// \return Relative Gravity vector.
public: RelativeGravityType GetGravity() const;

/// \brief Get the World gravity vector. Optionally, you may specify
/// the frame whose coordinates are used to express the gravity vector.
/// The World frame is used as a default if no frame is specified.
Expand Down
11 changes: 0 additions & 11 deletions include/ignition/physics/detail/World.hh
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,6 @@ void Gravity::World<PolicyT, FeaturesT>::SetGravity(
}
}

/////////////////////////////////////////////////
template <typename PolicyT, typename FeaturesT>
auto Gravity::World<PolicyT, FeaturesT>::GetGravity() const
-> RelativeGravityType
{
return RelativeGravityType(
FrameID::World(),
this->template Interface<Gravity>()
->GetWorldGravity(this->identity));
}

/////////////////////////////////////////////////
template <typename PolicyT, typename FeaturesT>
auto Gravity::World<PolicyT, FeaturesT>::GetGravity(
Expand Down

0 comments on commit 7fa6ab2

Please sign in to comment.