How catkin compile with rosbuild package?
I write the following code in catkin package :
#include <ros/ros.h>
#include <pr2_controllers_msgs/JointTrajectoryAction.h>
#include "actionlib/client/simple_action_client.h"
#include <stdlib.h>
using namespace cv;
using namespace std;
When I compile, it shows:
/home/ira/code/ros_groovy/src/sam_pr2_lab_auto_scene_4/src/pr2_lab_auto_scene_4.cpp:8:56: fatal error: pr2_controllers_msgs/JointTrajectoryAction.h: No such file or directory
compilation terminated.
make[2]: *** [sam_pr2_lab_auto_scene_4/CMakeFiles/pr2_lab_auto_scene_4.dir/src/pr2_lab_auto_scene_4.cpp.o] Error 1
make[1]: *** [sam_pr2_lab_auto_scene_4/CMakeFiles/pr2_lab_auto_scene_4.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
I found that pr2_controllers_msgs package is based on rosbuild.
ira@ira:/opt/ros/groovy/stacks/pr2_controllers/pr2_controllers_msgs$ ls
action bin CMakeLists.txt mainpage.dox Makefile manifest.xml msg msg_gen ROS_NOBUILD src srv srv_gen
ira@ira:/opt/ros/groovy/stacks/pr2_controllers/pr2_controllers_msgs$
How to solve it?
Thank you~