Skip to content

Commit

Permalink
style, add includes
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Dec 20, 2023
1 parent 9cc40ae commit 1016ec0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dartsim/src/GzOdeCollisionDetector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*
*/

#include <memory>
#include <unordered_map>

#include <dart/collision/CollisionObject.hpp>

#include "GzOdeCollisionDetector.hh"
Expand Down Expand Up @@ -94,9 +97,11 @@ void GzOdeCollisionDetector::LimitMaxContacts(

for (auto &contact : allContacts)
{
auto &count = contactMap[contact.collisionObject1][contact.collisionObject2];
auto &count =
contactMap[contact.collisionObject1][contact.collisionObject2];
count++;
auto &otherCount = contactMap[contact.collisionObject2][contact.collisionObject1];
auto &otherCount =
contactMap[contact.collisionObject2][contact.collisionObject1];
std::size_t total = count + otherCount;
if (total <= this->maxCollisionPairContacts)
{
Expand Down
2 changes: 2 additions & 0 deletions dartsim/src/GzOdeCollisionDetector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/

#include <limits>
#include <memory>

#include <dart/collision/ode/OdeCollisionDetector.hpp>

namespace dart {
Expand Down

0 comments on commit 1016ec0

Please sign in to comment.