I (used $apt-get install libfcl_dev) to installed fcl. The project named fcl could not be installed successfully.
But when I comiling path_planning, there are many errors about fcl thar I could`nt solve.
Seek for your help. How could you install fcl? Did you know how to solve this?
[ 66%] Built target traj_gen
[ 83%] Built target transform_pointcloud
In file included from /home/aaron/下载/catkin_path/src/path_planning-master/src/old_path_planning.cpp:41:0:
/usr/include/fcl/traversal/traversal_node_octree.h: In member function ‘bool fcl::OcTreeSolver::OcTreeShapeDistanceRecurse(const fcl::OcTree*, const OcTreeNode*, const fcl::AABB&, const S&, const fcl::AABB&, const fcl::Transform3f&, const fcl::Transform3f&) const’:
/usr/include/fcl/traversal/traversal_node_octree.h:267:50: error: ‘const OcTreeNode {aka const class octomap::OcTreeNode}’ has no member named ‘getChild’
const OcTree::OcTreeNode* child = root1->getChild(i);
^
In file included from /home/aaron/下载/catkin_path/src/path_planning-master/src/old_path_planning.cpp:41:0:
/usr/include/fcl/traversal/traversal_node_octree.h: In member function ‘bool fcl::OcTreeSolver::OcTreeShapeIntersectRecurse(const fcl::OcTree*, const OcTreeNode*, const fcl::AABB&, const S&, const fcl::OBB&, const fcl::Transform3f&, const fcl::Transform3f&) const’:
/usr/include/fcl/traversal/traversal_node_octree.h:404:50: error: ‘const OcTreeNode {aka const class octomap::OcTreeNode}’ has no member named ‘getChild’
const OcTree::OcTreeNode* child = root1->getChild(i);
…………
/usr/local/include/fcl/math/bv/AABB.h:136:8: error: ‘S’ was not declared in this scope
AABB& expand(const AABB& core, S ratio);
^
/usr/local/include/fcl/math/bv/AABB.h:136:3: error: ‘AABB< >’ does not name a type
AABB& expand(const AABB& core, S ratio);
^
/usr/local/include/fcl/math/bv/AABB.h:139:15: error: ‘AABB’ does not name a type
using AABBf = AABB;
^
/usr/local/include/fcl/math/bv/AABB.h:140:15: error: ‘AABB’ does not name a type
using AABBd = AABB;
^
/usr/local/include/fcl/math/bv/AABB.h:144:1: error: ‘AABB’ does not name a type
AABB translate(
^
/usr/local/include/fcl/math/bv/AABB.h:147:1: error: expected declaration before ‘}’ token
} // namespace fcl
^
path_planning-master/CMakeFiles/old_path_planning.dir/build.make:62: recipe for target 'path_planning-master/CMakeFiles/old_path_planning.dir/src/old_path_planning.cpp.o' failed
make[2]: *** [path_planning-master/CMakeFiles/old_path_planning.dir/src/old_path_planning.cpp.o] Error 1
CMakeFiles/Makefile2:2930: recipe for target 'path_planning-master/CMakeFiles/old_path_planning.dir/all' failed
make[1]: *** [path_planning-master/CMakeFiles/old_path_planning.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
path_planning-master/CMakeFiles/path_planning_node.dir/build.make:62: recipe for target 'path_planning-master/CMakeFiles/path_planning_node.dir/src/path_planning.cpp.o' failed
make[2]: *** [path_planning-master/CMakeFiles/path_planning_node.dir/src/path_planning.cpp.o] Error 1
CMakeFiles/Makefile2:1288: recipe for target 'path_planning-master/CMakeFiles/path_planning_node.dir/all' failed
make[1]: *** [path_planning-master/CMakeFiles/path_planning_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
I (used $apt-get install libfcl_dev) to installed fcl. The project named fcl could not be installed successfully.
But when I comiling path_planning, there are many errors about fcl thar I could`nt solve.
Seek for your help. How could you install fcl? Did you know how to solve this?
[ 66%] Built target traj_gen
[ 83%] Built target transform_pointcloud
In file included from /home/aaron/下载/catkin_path/src/path_planning-master/src/old_path_planning.cpp:41:0:
/usr/include/fcl/traversal/traversal_node_octree.h: In member function ‘bool fcl::OcTreeSolver::OcTreeShapeDistanceRecurse(const fcl::OcTree*, const OcTreeNode*, const fcl::AABB&, const S&, const fcl::AABB&, const fcl::Transform3f&, const fcl::Transform3f&) const’:
/usr/include/fcl/traversal/traversal_node_octree.h:267:50: error: ‘const OcTreeNode {aka const class octomap::OcTreeNode}’ has no member named ‘getChild’
const OcTree::OcTreeNode* child = root1->getChild(i);
^
In file included from /home/aaron/下载/catkin_path/src/path_planning-master/src/old_path_planning.cpp:41:0:
/usr/include/fcl/traversal/traversal_node_octree.h: In member function ‘bool fcl::OcTreeSolver::OcTreeShapeIntersectRecurse(const fcl::OcTree*, const OcTreeNode*, const fcl::AABB&, const S&, const fcl::OBB&, const fcl::Transform3f&, const fcl::Transform3f&) const’:
/usr/include/fcl/traversal/traversal_node_octree.h:404:50: error: ‘const OcTreeNode {aka const class octomap::OcTreeNode}’ has no member named ‘getChild’
const OcTree::OcTreeNode* child = root1->getChild(i);
…………
/usr/local/include/fcl/math/bv/AABB.h:136:8: error: ‘S’ was not declared in this scope
AABB
& expand(const AABB& core, S ratio);^
/usr/local/include/fcl/math/bv/AABB.h:136:3: error: ‘AABB< >’ does not name a type
AABB
& expand(const AABB& core, S ratio);^
/usr/local/include/fcl/math/bv/AABB.h:139:15: error: ‘AABB’ does not name a type
using AABBf = AABB;
^
/usr/local/include/fcl/math/bv/AABB.h:140:15: error: ‘AABB’ does not name a type
using AABBd = AABB;
^
/usr/local/include/fcl/math/bv/AABB.h:144:1: error: ‘AABB’ does not name a type
AABB
translate(^
/usr/local/include/fcl/math/bv/AABB.h:147:1: error: expected declaration before ‘}’ token
} // namespace fcl
^
path_planning-master/CMakeFiles/old_path_planning.dir/build.make:62: recipe for target 'path_planning-master/CMakeFiles/old_path_planning.dir/src/old_path_planning.cpp.o' failed
make[2]: *** [path_planning-master/CMakeFiles/old_path_planning.dir/src/old_path_planning.cpp.o] Error 1
CMakeFiles/Makefile2:2930: recipe for target 'path_planning-master/CMakeFiles/old_path_planning.dir/all' failed
make[1]: *** [path_planning-master/CMakeFiles/old_path_planning.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
path_planning-master/CMakeFiles/path_planning_node.dir/build.make:62: recipe for target 'path_planning-master/CMakeFiles/path_planning_node.dir/src/path_planning.cpp.o' failed
make[2]: *** [path_planning-master/CMakeFiles/path_planning_node.dir/src/path_planning.cpp.o] Error 1
CMakeFiles/Makefile2:1288: recipe for target 'path_planning-master/CMakeFiles/path_planning_node.dir/all' failed
make[1]: *** [path_planning-master/CMakeFiles/path_planning_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed