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 Jun 1, 2024
1 parent 31386db commit cf2b8c8
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 cf2b8c8

Please sign in to comment.