ayushgaud / path_planning

Quadcopter path planning using RRT* and minimum jerk trajectory generation
337 stars 99 forks source link

catkin_make error #3

Open kevinchow1993 opened 6 years ago

kevinchow1993 commented 6 years ago

/usr/bin/ld: warning: liboctomath.so.1.8, needed by /opt/ros/kinetic/lib/liboctomap.so, may conflict with liboctomath.so.1.6 CMakeFiles/path_planning_node.dir/src/path_planning.cpp.o:在函数‘planner::planner()’中: /home/kevin/caktin_ware/src/path_planning/src/path_planning.cpp:122:对‘ompl::base::SpaceInformation::SpaceInformation(std::shared_ptr const&)’未定义的引用 /home/kevin/caktin_ware/src/path_planning/src/path_planning.cpp:139:对‘ompl::base::ProblemDefinition::ProblemDefinition(std::shared_ptr const&)’未定义的引用 CMakeFiles/path_planning_node.dir/src/path_planning.cpp.o:在函数‘planner::plan()’中: /home/kevin/caktin_ware/src/path_planning/src/path_planning.cpp:248:对‘ompl::geometric::PathSimplifier::PathSimplifier(std::shared_ptr const&, std::shared_ptr const&)’未定义的引用 collect2: error: ld returned 1 exit status path_planning/CMakeFiles/path_planning_node.dir/build.make:539: recipe for target '/home/kevin/caktin_ware/devel/lib/path_planning/path_planning_node' failed make[2]: [/home/kevin/caktin_ware/devel/lib/path_planning/path_planning_node] Error 1 CMakeFiles/Makefile2:11678: recipe for target 'path_planning/CMakeFiles/path_planning_node.dir/all' failed make[1]: [path_planning/CMakeFiles/path_planning_node.dir/all] Error 2 Makefile:138: recipe for target 'all' failed

i think it because i use wrong version of ompl, could you tell me which version do you use?

ayushgaud commented 6 years ago

You may try this ros-kinetic-ompl If it still doesn't work I'll check again or update the code.

Robinaoko commented 4 years ago

@kevinchow1993 I met the same problem. Have you solved it?

jkdxg commented 3 years ago

I met the similar error with ROS-melodic. CMakeFiles/offline_planner_R2.dir/src/offline_planner_R2.cpp.o:在函数‘OfflinePlannerR2::planWithSimpleSetup(std::vector<double, std::allocator >, std::vector<double, std::allocator >, autonomous_explore_mapplan::FindPathToGoalResponse<std::allocator >&)’中: offline_planner_R2.cpp:(.text+0xbdd):对‘ompl::geometric::RRT::RRT(std::shared_ptr const&)’未定义的引用 offline_planner_R2.cpp:(.text+0xce3):对‘ompl::geometric::RRTConnect::RRTConnect(std::shared_ptr const&)’未定义的引用 offline_planner_R2.cpp:(.text+0xecc):对‘ompl::geometric::RRT::RRT(std::shared_ptr const&)’未定义的引用 CMakeFiles/offline_planner_R2.dir/src/offline_planner_R2.cpp.o:在函数‘OfflinePlannerR2::visualizeRRT(ompl::geometric::PathGeometric)’中: offline_planner_R2.cpp:(.text+0x1b6b):对‘ompl::base::PlannerData::PlannerData(std::shared_ptr const&)’未定义的引用 collect2: error: ld returned 1 exit status Have you solved it?