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 <ashton@openrobotics.org>
  • Loading branch information
adlarkin committed Mar 15, 2021
1 parent f767938 commit 2e844bf
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 @@ -219,11 +219,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 @@ -1152,7 +1147,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 2e844bf

Please sign in to comment.