Ask Your Question
0

fatal error: .h: No such file or directory

asked 2020-11-19 05:12:30 -0600

yemre0642 gravatar image

I am using ubuntu 18.04 and ROS melodic. I am trying to build my catkin ws but I got this error.

fatal error: ur5_demo_descartes/ur5_robot_model.h: No such file or directory

The exact path of file is

/home/ros-industrial/catkin_ws/src/ur5_demo_descartes/include/ur5_demo_descartes/ur5_robot_model.h

and I am using this in source file like this:

#include <ur5_demo_descartes/ur5_robot_model.h>

The package also added in the cMakeLists.txt and package.xml. Do you have any idea?

edit retag flag offensive close merge delete

Comments

please share your CMakeLists.txt and package.xml (without any comments) or provide a repository to reproduce

mgruhler gravatar image mgruhler  ( 2020-11-19 05:26:01 -0600 )edit

Hi, you can check the repo from here: [https://github.com/ros-industrial/ind...]

yemre0642 gravatar image yemre0642  ( 2020-11-19 05:31:11 -0600 )edit

Is this the repo that you cannot build? Which package shows the error? Some that you did? You need to be more specific if you expect us to help.

I'm not going to search through a repo with multiple packages or compile this on good luck.

Make sure to provide an SSCCE.

mgruhler gravatar image mgruhler  ( 2020-11-19 08:49:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-11-19 08:29:24 -0600

laloSH gravatar image

updated 2020-11-19 11:04:26 -0600

Add include_directories(include ${catkin_INCLUDE_DIRS}) in your CMakelists.txt file. Or take a look at the next ROS answer.

edit flag offensive delete link more

Comments

1

Thank you very much, it worked for me.

yemre0642 gravatar image yemre0642  ( 2020-11-19 09:18:01 -0600 )edit

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: 2020-11-19 05:12:30 -0600

Seen: 31 times

Last updated: Nov 19