sniekum / dmp

This ROS package is a general, robot-agnostic implementation of dynamic movement primitives (DMPs).
www.ros.org/wiki/dmp
93 stars 74 forks source link

The problem less the .h file in the include folder #10

Open TFLQW opened 5 years ago

TFLQW commented 5 years ago

When i catkin_make the package, i found the error is that in the dmp/include folder i cannot find these two .h files

include "dmp/LearnDMPFromDemo.h"

include "dmp/GetDMPPlan.h"

jack2200 commented 5 years ago

me too

JiyGuo commented 4 years ago

When i catkin_make the package, i found the error is that in the dmp/include folder i cannot find these two .h files

include "dmp/LearnDMPFromDemo.h"

include "dmp/GetDMPPlan.h"

I think I have solved the problem.When you catkin_make the package,the msg and srv will generate xxx.h in ../../devel/include but the cmakelist don't include it. So just add ../../devel/include into include_directories in cmakelist.txt and catkin_make your package again.

Izan00 commented 1 year ago

For me, it worked by just adding the following code below line 43 of the cmakelist.txt file.

add_dependencies(dmp ${catkin_EXPORTED_TARGETS})