ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Costuz's profile - activity

2019-08-13 12:14:05 -0500 commented question Validity Checker declaration error

Oh you're right! Thank you!

2019-08-13 12:13:42 -0500 received badge  Famous Question (source)
2019-08-13 11:06:43 -0500 commented question Validity Checker declaration error

Now i get 2 errors: error: prototype for ‘double ValidityChecker::clearance(const ompl::base::State*)’ does not match a

2019-08-13 11:02:02 -0500 commented question Validity Checker declaration error

Now i get 2 errors: error: prototype for ‘double ValidityChecker::clearance(const ompl::base::State*)’ does not match a

2019-08-13 10:27:37 -0500 asked a question Validity Checker declaration error

Validity Checker declaration error I'm having a problem with my code. It was working but when i decided to separate it i

2019-04-14 17:57:18 -0500 received badge  Notable Question (source)
2019-04-14 16:11:22 -0500 marked best answer Can't convert OcTree to Fcl

Hello everyone,

I'm trying to create a code for 2D collision checking using fcl and octomap.

Here i'm trying to convert the octomap::octree to fcl::octree so that i can use the function: "generateBoxesFromOctomap".

I am following this program as a guide: link

I'm using ROS kinetic on Ubuntu 16.04, fcl is version 0.6.

This is my code:

   OcTree* octTree = new OcTree(0.1);
   Pointcloud octPointCloud;

   for (int x=-20; x<20; x++) {
   for (int y=-20; y<20; y++) {
   point3d endpoint ((float) x*0.05f, (float) y*0.05f, (float) 0.0);
   if (endpoint.x() < 0.7 && endpoint.x() > 0.3 && endpoint.y()< 0.6 && endpoint.y() > 0.8)          //size of the obstacle
   octPointCloud.push_back(endpoint); 
      } 
    }
  point3d origin(0.0,0.0,0.0);
  octTree->insertPointCloud(octPointCloud,origin);
  octTree->updateInnerOccupancy();     

  //convert the octomap 
  fcl::OcTree<double>* tree2 = new fcl::OcTree(boost::shared_ptr<const octomap::OcTree>(octTree));
  std::vector<fcl::CollisionObject<double>*> boxes;
  generateBoxesFromOctomap(boxes, *tree2);

but i get this error:

error: expected type-specifier
  fcl::OcTree<double>* tree2 = new fcl::OcTree(boost::shared_ptr<const octomap::OcTree>(octTree))

What can i do?

2019-04-14 16:11:22 -0500 received badge  Scholar (source)
2019-04-14 15:55:39 -0500 commented question Can't convert OcTree to Fcl

Yes, now it works Thanks for your help!

2019-04-14 15:47:39 -0500 received badge  Popular Question (source)
2019-04-14 15:41:06 -0500 edited question Can't convert OcTree to Fcl

Can't convert OcTree to Fcl Hello everyone, I'm trying to create a code for 2D collision checking using fcl and octomap

2019-04-14 15:25:52 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 15:25:46 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 15:25:38 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 15:25:17 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 15:25:03 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 15:22:30 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 15:21:34 -0500 commented question Can't convert OcTree to Fcl

Now it gives me two more error: error: missing template arguments before ‘*’ token fcl::OcTree* tree2 = new fc

2019-04-14 10:02:34 -0500 asked a question Can't convert OcTree to Fcl

Can't convert OcTree to Fcl Hello everyone, I'm trying to create a code for 2D collision checking using fcl and octomap