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

turtlebot_node/TurtlebotSensorState.h: No such file or directory

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

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
0

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

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

Comments

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 -0500 )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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 324 times

Last updated: Nov 27 '14