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

Revision history [back]

click to hide/show revision 1
initial version

The undefined reference error suggests there is a problem with linking. You are including the correct header but you are not linking it.

If you change the following in your CMakeLists.txt

find_package(catkin REQUIRED COMPONENTS
  pluginlib
  roscpp
  moveit_core
)

and change the header to include

#include <moveit/kinematics_base/kinematics_base.h>

you should be all set. Changing the include ensures that your system will be able to find the right header, even if the location might move (or should you use another ros distro).