ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

turtlebot_node/TurtlebotSensorState.h: No such file or directory

asked 2014-11-25 21:59:53 -0600

Mai gravatar image

I write my code use bumper sensor. But when I include library TurtlebotSensorState and catkin_make has error /home/mai/catkin_ws/src/second/src/bump.cpp:9:49: fatal error: turtlebot_node/TurtlebotSensorState.h: No such file or directory #include <turtlebot_node turtlebotsensorstate.h=""> ^ How can I fix this error? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-11-27 08:20:01 -0600

TurtlebotSensorState is a ROS message type defined in the "turtlebot_node" package. If you get an "No such file or directory" error that likely means you haven´t properly specified the "turtlebot_node" dependency in the package you are working on. See Dependency Management here.

edit flag offensive delete link more


Thanks Stefan Kohlbrecher. I add <build_depend>turtlebot_node</build_depend> and <run_depend> turtlebot_node</run_depend> in package.xml file but still error. I use Ubuntu 14.04 and ros indigo. How I fix this error. It take me 2 week. I am worry more. Thanks a lot for your help

Mai gravatar image Mai  ( 2014-12-07 12:51:57 -0600 )edit

You have to also adjust settings in the CMakeLists.txt, see the link I posted.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2014-12-10 02:33:42 -0600 )edit

Question Tools

1 follower


Asked: 2014-11-25 21:59:53 -0600

Seen: 323 times

Last updated: Nov 27 '14