Undefined reference to moveit::planning_interface [closed]

asked 2020-03-24 06:44:54 -0600

Rahul K R gravatar image

updated 2022-05-01 13:07:21 -0600

lucasw gravatar image

I get linker error when I do 'catkin_make' in my workspace folder. I have feeling this has something to do with m CMakeLists.txt file.

I'm using ROS Melodic on Ubuntu 18.04 This is my error:

`Base path: /home/rahul/Desktop/Robot_Arm/catkin_ws2
Source space: /home/rahul/Desktop/Robot_Arm/catkin_ws2/src
Build space: /home/rahul/Desktop/Robot_Arm/catkin_ws2/build
Devel space: /home/rahul/Desktop/Robot_Arm/catkin_ws2/devel
Install space: /home/rahul/Desktop/Robot_Arm/catkin_ws2/install
####
#### Running command: "make cmake_check_build_system" in "/home/rahul/Desktop/Robot_Arm/catkin_ws2/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/rahul/Desktop/Robot_Arm/catkin_ws2/devel
-- Using CMAKE_PREFIX_PATH: /home/rahul/Desktop/Robot_Arm/catkin_ws2/devel;/opt/ros/melodic;/home/rahul/Desktop/Robot_Arm/catkin_ws1/devel
-- This workspace overlays: /home/rahul/Desktop/Robot_Arm/catkin_ws2/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/rahul/Desktop/Robot_Arm/catkin_ws2/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.23
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 34 packages in topological order:
-- ~~  - moveit (metapackage)
-- ~~  - moveit_planners (metapackage)
-- ~~  - moveit_plugins (metapackage)
-- ~~  - moveit_ros (metapackage)
-- ~~  - moveit_runtime (metapackage)
-- ~~  - panda_moveit_config
-- ~~  - geometric_shapes
-- ~~  - package1
-- ~~  - moveit_msgs
-- ~~  - moveit_commander
-- ~~  - rviz_visual_tools
-- ~~  - moveit_core
-- ~~  - chomp_motion_planner
-- ~~  - moveit_chomp_optimizer_adapter
-- ~~  - moveit_ros_occupancy_map_monitor
-- ~~  - moveit_ros_perception
-- ~~  - moveit_ros_planning
-- ~~  - moveit_fake_controller_manager
-- ~~  - moveit_kinematics
-- ~~  - moveit_planners_ompl
-- ~~  - moveit_ros_move_group
-- ~~  - moveit_ros_manipulation
-- ~~  - moveit_ros_robot_interaction
-- ~~  - moveit_simple_controller_manager
-- ~~  - moveit_ros_control_interface
-- ~~  - moveit_visual_tools
-- ~~  - moveit_ros_warehouse
-- ~~  - moveit_ros_benchmarks
-- ~~  - moveit_ros_planning_interface
-- ~~  - moveit_jog_arm
-- ~~  - moveit_planners_chomp
-- ~~  - moveit_ros_visualization
-- ~~  - moveit_setup_assistant
-- ~~  - moveit_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- Configuring done
CMake Warning (dev) at package1/CMakeLists.txt:212 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "package1_generate_messages_cpp" of target "test"
  does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/rahul/Desktop/Robot_Arm/catkin_ws2/build
####
#### Running command: "make -j8 -l8" in "/home/rahul/Desktop/Robot_Arm/catkin_ws2/build"
####
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target shape_msgs_generate_messages_lisp
[  0%] Built target geometry_msgs_generate_messages_lisp
[  0%] Linking CXX executable /home/rahul/Desktop/Robot_Arm/catkin_ws2/devel/lib/package1/test
[  0%] Built target _moveit_msgs_generate_messages_check_deps_MoveGroupGoal
[  1%] Built target geometric_shapes
[  1%] Built target _moveit_msgs_generate_messages_check_deps_SaveRobotStateToWarehouse
[  1%] Built target _moveit_msgs_generate_messages_check_deps_DisplayTrajectory
[  1%] Built target _moveit_msgs_generate_messages_check_deps_PickupActionFeedback
[  1%] Built target _moveit_msgs_generate_messages_check_deps_PlaceActionGoal
[  1%] Built target _moveit_msgs_generate_messages_check_deps_ContactInformation
[  1%] Built target _moveit_msgs_generate_messages_check_deps_ApplyPlanningScene
[  1%] Built target _moveit_msgs_generate_messages_check_deps_PositionIKRequest
[  1%] Built target _moveit_msgs_generate_messages_check_deps_CartesianPoint
[  1%] Built target _moveit_msgs_generate_messages_check_deps_PlaceActionFeedback
[  1%] Built target _moveit_msgs_generate_messages_check_deps_CartesianTrajectory
[  1%] Built target _moveit_msgs_generate_messages_check_deps_SaveMap
[  1%] Built target _moveit_msgs_generate_messages_check_deps_DisplayRobotState
[  1%] Built target _moveit_msgs_generate_messages_check_deps_QueryPlannerInterfaces
[  1%] Built target _moveit_msgs_generate_messages_check_deps_ChangeDriftDimensions
[  1%] Built target _moveit_msgs_generate_messages_check_deps_ExecuteKnownTrajectory
[  1%] Built target _moveit_msgs_generate_messages_check_deps_PlaceGoal
[  1%] Built target _moveit_msgs_generate_messages_check_deps_Grasp
[  1%] Built target _moveit_msgs_generate_messages_check_deps_GetMotionPlan
[  1%] Built target _moveit_msgs_generate_messages_check_deps_CostSource
CMakeFiles/test.dir/src/test.cpp.o: In function `pick(moveit::planning_interface::MoveGroupInterface&)':
test.cpp:(.text+0x67c): undefined reference to `moveit::planning_interface::MoveGroupInterface::setSupportSurfaceName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
test.cpp:(.text+0x6dc): undefined reference to ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2021-10-15 09:28:28.123994

Comments

Duplicate of this question, which has been answered now. :+1:

https://answers.ros.org/question/2827...

AndyZe gravatar image AndyZe  ( 2021-10-15 09:27:26 -0600 )edit