ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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

updated 2022-01-22 16:16:34 -0600

Evgeny 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 image sharan100  ( 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

Question Tools

2 followers

Stats

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

Seen: 285 times

Last updated: Feb 17 '17