Skip to content

Commit

Permalink
Fix incorrect assert in collision term single time step weighted method
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed May 31, 2024
1 parent c4d3f03 commit bed2a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trajopt/src/collision_terms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bed2a52

Please sign in to comment.