From bed2a52547d0f22639f355ed1fe200e5ab3b831c Mon Sep 17 00:00:00 2001 From: Levi Armstrong Date: Fri, 31 May 2024 11:44:08 -0500 Subject: [PATCH] Fix incorrect assert in collision term single time step weighted method --- trajopt/src/collision_terms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trajopt/src/collision_terms.cpp b/trajopt/src/collision_terms.cpp index 0595f35e..8f372cfb 100644 --- a/trajopt/src/collision_terms.cpp +++ b/trajopt/src/collision_terms.cpp @@ -799,7 +799,7 @@ void CollisionEvaluator::CalcDistExpressionsSingleTimeStepW(const DblVec& x, { ContactResultMapConstPtr dist_results = GetContactResultMapCached(x); CollisionsToDistanceExpressionsW(exprs, exprs_data, *dist_results, vars0_, x, false); - assert(dist_results->count() == exprs.size()); + assert(dist_results->size() == exprs.size()); for (auto& expr : exprs) expr = sco::cleanupAff(expr);