Skip to content

Commit

Permalink
remove linkWorldPoses cache (no longer needed)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <[email protected]>
  • Loading branch information
adlarkin committed Mar 12, 2021
1 parent fcd20a1 commit 4942e42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/systems/physics/Physics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,6 @@ class ignition::gazebo::systems::PhysicsPrivate
/// \brief Keep track of what entities are static (models and links).
public: std::unordered_set<Entity> staticEntities;

/// \brief Keep track of poses for links attached to non-static models.
/// This allows for skipping pose updates if a link's pose didn't change
/// after a physics step.
public: std::unordered_map<Entity, ignition::math::Pose3d> linkWorldPoses;

/// \brief A map between model entity ids in the ECM to whether its battery
/// has drained.
public: std::unordered_map<Entity, bool> entityOffMap;
Expand Down Expand Up @@ -1151,7 +1146,6 @@ void PhysicsPrivate::RemovePhysicsEntities(const EntityComponentManager &_ecm)
this->entityLinkMap.Remove(childLink);
this->topLevelModelMap.erase(childLink);
this->staticEntities.erase(childLink);
this->linkWorldPoses.erase(childLink);
}

for (const auto &childJoint :
Expand Down

0 comments on commit 4942e42

Please sign in to comment.