Ask Your Question
0

Cannot build my package due to ros/Joy.h not being found

asked 2017-02-16 04:04:11 -0600

sharan100 gravatar image

Seems like a pretty simple error to get past, but catkin_make cannot seem to find ros/Joy.h.

/home/sharan/catkin_ws/src/zlab_drone/src/fly_from_joy.cpp:4:21: fatal error: ros/Joy.h: No such file or directory. compilation terminated.

I have already included joy into my CMakeLists.txt. Not sure what else to do:

find_package(catkin REQUIRED COMPONENTS
  ardrone_autonomy
  cv_bridge
  image_transport
  roscpp
  rospy
  sensor_msgs
  std_msgs
  joy
)
edit retag flag offensive close merge delete

Comments

Seems to be a pretty easy error to look over, does no one know the answer?

sharan100 gravatar imagesharan100 ( 2017-02-17 14:29:48 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-02-17 14:39:50 -0600

sharan100 gravatar image

updated 2017-02-17 14:40:26 -0600

I found the answer to be quite simple actually. Basically #include <sensor_msgs/Joy.h> instead of #include<ros/Joy.h> within your .cpp files.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-02-16 04:04:11 -0600

Seen: 97 times

Last updated: Feb 17 '17