Closed tejalbarnwal closed 1 year ago
Hey, I was able to solve it with the following code.
std::shared_ptr<const octomap::OcTree> sharedTree = std::make_shared<const octomap::OcTree>(temp_tree);
fcl::OcTree<float>* tree = new fcl::OcTree<float>(sharedTree);
Thank you
Hi, I am actually trying to use FCL to detect collision between octree and a robot. For this, I created a sample cpp file. It can be found below
I was actually getting output as
I havent used
valgrind
before, so i thought to use it. With that I was able to know that the error is coming from the linefcl::CollisionObject<float> treeCollisionObj((std::shared_ptr<fcl::CollisionGeometry<float>>(tree)));
but i wasnt able to debug it. Please help me. For your reference I have attached the valgrind output belowValgring Output