compilation error [closed]

asked 2014-12-07 13:08:37 -0600

Mai gravatar image

updated 2014-12-07 13:18:58 -0600

bvbdort gravatar image

I use Ubuntu 14.04 and Ros Indigo.

when I test example about Sensor put in catkin/namepackage/src and I run catkin_make. There is an error:

 fatal error: turtlebot_node/TurtlebotSensorState.h: No such file or directory

I fixed in package.xml following line:

<build_depend>turtlebot_node</build_depend>

   <run_depend>turtlebot_node</run_depend>

and CMakeList.txt, I add:

 add_executable(chan src/chan.cpp)
  target_link_libraries(chan
  ${catkin_LIBRARIES} )

How can I fix this error? Please help me! Thanks a lot!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-12-20 20:37:07.595017

Comments

which tutorial or example are you following ?

bvbdort gravatar image bvbdort  ( 2014-12-07 13:20:18 -0600 )edit

@bvbdort: example here: http://answers.ros.org/question/42406... and tutorial I following to setup here: http://wiki.ros.org/Robots/TurtleBot choose indigo :)

Mai gravatar image Mai  ( 2014-12-07 13:48:55 -0600 )edit

add include_directories(include ${catkin_INCLUDE_DIRS}) in CMakeList

bvbdort gravatar image bvbdort  ( 2014-12-07 14:29:30 -0600 )edit

Thanks. But in CMakeList I had that line too :(

Mai gravatar image Mai  ( 2014-12-08 00:58:32 -0600 )edit