Skip to content

Commit 6572885

Browse files
committed
debug
1 parent 331c6d6 commit 6572885

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/hpp/fcl/narrowphase/narrowphase.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define HPP_FCL_NARROWPHASE_H
4242

4343
#include <limits>
44+
#include <iostream>
4445

4546
#include <hpp/fcl/narrowphase/gjk.h>
4647
#include <hpp/fcl/collision_data.h>
@@ -75,9 +76,10 @@ struct HPP_FCL_DLLAPI GJKSolver {
7576
"GJKInitialGuess::BoundingVolumeGuess.",
7677
std::logic_error);
7778
}
78-
guess.noalias() =
79-
s1.aabb_center - (shape.oR1 * s2.aabb_center + shape.ot1);
80-
guess.normalize();
79+
std::cout << "guess: " << guess.transpose() << std::endl;
80+
guess.noalias() = s1.aabb_local.center() -
81+
(shape.oR1 * s2.aabb_local.center() + shape.ot1);
82+
// guess.normalize();
8183
support_hint.setZero();
8284
break;
8385
default:

0 commit comments

Comments
 (0)