You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am encountering an access violation exception when using fcl::distance with an fcl::Halfspacef object. The exception occurs consistently whenever I attempt to calculate the distance between an fcl::Boxf and an fcl::Halfspacef.
What i did :
Create a fcl::Boxf object and an fcl::Halfspacef object.
Set up fcl::CollisionObjectf instances for both geometries with identity transforms.
Attempt to compute the distance using fcl::distance.
The program crashes with an access violation exception.
Code Snippet :
Eigen::Vector3f right_normal(1.0f, 0.0f, 0.0f); // X-axis aligned
float offset = 0.0f;
auto right_halfspace = std::make_shared<fcl::Halfspacef>(right_normal, offset);
// Create the box with dimensions
float len = 4.0f;
auto box = std::make_shared<fcl::Boxf>(len, len, len);
// Set up collision objects with identity transforms
fcl::CollisionObjectf halfspace_obj(right_halfspace, fcl::Transform3f::Identity());
fcl::CollisionObjectf box_obj(box, fcl::Transform3f::Identity());
// Prepare distance request and result structures
fcl::DistanceRequestf request;
fcl::DistanceResultf result;
// Compute the distance
fcl::distance(&box_obj, &halfspace_obj, request, result);
// Retrieve the minimum distance
auto min_dist = result.min_distance;
Questions:
Does this imply that fcl::distance does not support fcl::Halfspacef?
Best Regards,
The text was updated successfully, but these errors were encountered:
Hi,
I am encountering an access violation exception when using fcl::distance with an fcl::Halfspacef object. The exception occurs consistently whenever I attempt to calculate the distance between an fcl::Boxf and an fcl::Halfspacef.
What i did :
Code Snippet :
Questions:
Does this imply that fcl::distance does not support fcl::Halfspacef?
Best Regards,
The text was updated successfully, but these errors were encountered: