From 1016ec02edcbd03d6740c1db57996dc3a2dceb8c Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Wed, 20 Dec 2023 00:07:35 +0000 Subject: [PATCH] style, add includes Signed-off-by: Ian Chen --- dartsim/src/GzOdeCollisionDetector.cc | 9 +++++++-- dartsim/src/GzOdeCollisionDetector.hh | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dartsim/src/GzOdeCollisionDetector.cc b/dartsim/src/GzOdeCollisionDetector.cc index 43caadf0c..5e6200409 100644 --- a/dartsim/src/GzOdeCollisionDetector.cc +++ b/dartsim/src/GzOdeCollisionDetector.cc @@ -15,6 +15,9 @@ * */ +#include +#include + #include #include "GzOdeCollisionDetector.hh" @@ -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) { diff --git a/dartsim/src/GzOdeCollisionDetector.hh b/dartsim/src/GzOdeCollisionDetector.hh index fb4db5e35..bdb34e0d2 100644 --- a/dartsim/src/GzOdeCollisionDetector.hh +++ b/dartsim/src/GzOdeCollisionDetector.hh @@ -16,6 +16,8 @@ */ #include +#include + #include namespace dart {