Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for Box-Plane and Box-Halfspace collisions #525

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion include/hpp/fcl/collision_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ struct HPP_FCL_DLLAPI Contact {
/// TODO (louis): rename `nearest_points` to `witness_points`.
std::array<Vec3f, 2> nearest_points;

/// @brief contact position, in world space
/// @brief contact position, in world space.
/// The position is the middle point of the segment [p1, p2] where
/// p1 and p1 are the nearest points (i.e. neareast_points[0] and
/// nearest_points[1] respectively). Thus we always have pos = (p1 + p2)/2.
Vec3f pos;

/// @brief penetration depth
Expand Down
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ SET_TESTS_PROPERTIES(frontlist PROPERTIES TIMEOUT 7200)
add_fcl_test(capsule_capsule capsule_capsule.cpp)
add_fcl_test(box_box_distance box_box_distance.cpp)
add_fcl_test(box_box_collision box_box_collision.cpp)
add_fcl_test(box_plane box_plane.cpp)
add_fcl_test(box_halfspace box_halfspace.cpp)
add_fcl_test(simple simple.cpp)
add_fcl_test(capsule_box_1 capsule_box_1.cpp)
add_fcl_test(capsule_box_2 capsule_box_2.cpp)
Expand Down
Loading
Loading