-
Notifications
You must be signed in to change notification settings - Fork 94
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
Can't register Plane or Halfplane to DynamicAABBTreeCollisionManager #514
Comments
Could you share a reproducible example please? |
Did some tests:
Multiple inflated spheres are ok. But planes don't work together with inflated spheres. Perhaps is there a problem with using the copy constructor of Sphere? #include <hpp/fcl/shape/geometric_shapes.h>
#include <hpp/fcl/collision.h>
#include <hpp/fcl/broadphase/broadphase.h>
using hpp::fcl::DynamicAABBTreeCollisionManager;
using hpp::fcl::Vec3f;
using hpp::fcl::CollisionObject;
using hpp::fcl::Sphere;
using hpp::fcl::Plane;
int main()
{
DynamicAABBTreeCollisionManager collision_manager;
std::vector<CollisionObject*> collision_objects;
// auto o1 = new CollisionObject(hpp::fcl::make_shared<Sphere>(0.1));
// o1->setTranslation(Vec3f(0.2, 0.1, 0.4));
// o1->computeAABB();
// collision_objects.push_back(o1);
// auto o2 = new CollisionObject(hpp::fcl::make_shared<Sphere>(0.2));
// o2->setTranslation(Vec3f(0.3, 0.2, 0.4));
// o2->computeAABB();
// collision_objects.push_back(o2);
auto o3 = new CollisionObject(hpp::fcl::make_shared<Plane>(0.0, 0.0, 1.0, 0.0));
o3->computeAABB();
collision_objects.push_back(o3);
auto o4 = new CollisionObject(hpp::fcl::make_shared<Sphere>(Sphere(0.05).inflated(0.05).first));
o4->setTranslation(Vec3f(0.1, 0.3, 0.4));
o4->computeAABB();
collision_objects.push_back(o4);
collision_manager.registerObjects(collision_objects);
collision_manager.update();
} AddressSanitizer output:
|
Hi @salihmarangoz, |
Solved via #515 |
nim65s
added a commit
to nim65s/robotpkg
that referenced
this issue
Jan 27, 2024
Upstream changes: ## [2.4.1] - 2024-01-23 ### Fixed - CachedMeshLoader checks file last modification time. - Fix call to clear methods for {Collision,Distance}Data inside init function (coal-library/coal#509) - CMake: fix submodule use in bindings in (coal-library/coal#512) - Fix bug in DynamicAABBTreeCollisionManager (see coal-library/coal#514) in (coal-library/coal#515) Packaging changes: - added patch-522 to fix assimp detection
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DynamicAABBTreeCollisionManager works well with spheres but when I try it with Plane or Halfplane the process crashes. Looks similar to flexible-collision-library/fcl#455
Package version (ROS Noetic): 2.4.0-1focal.20231204.185100
Output of AddressSanitizer:
The text was updated successfully, but these errors were encountered: