Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Jun 24, 2022
1 parent 331c6d6 commit 6572885
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/hpp/fcl/narrowphase/narrowphase.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#define HPP_FCL_NARROWPHASE_H

#include <limits>
#include <iostream>

#include <hpp/fcl/narrowphase/gjk.h>
#include <hpp/fcl/collision_data.h>
Expand Down Expand Up @@ -75,9 +76,10 @@ struct HPP_FCL_DLLAPI GJKSolver {
"GJKInitialGuess::BoundingVolumeGuess.",
std::logic_error);
}
guess.noalias() =
s1.aabb_center - (shape.oR1 * s2.aabb_center + shape.ot1);
guess.normalize();
std::cout << "guess: " << guess.transpose() << std::endl;
guess.noalias() = s1.aabb_local.center() -
(shape.oR1 * s2.aabb_local.center() + shape.ot1);
// guess.normalize();
support_hint.setZero();
break;
default:
Expand Down

0 comments on commit 6572885

Please sign in to comment.