Ask Your Question

fatal error: turtlebot_msgs/SetFollowState.h: No such file or directory

asked 2020-11-11 08:54:39 -0500

1210652636 gravatar image

When I run the code : " $ mkdir -p ~/catkin_ws/src $ cd ~/catkin_ws/ $ catkin_make " to create a ROS workspace and some errors happened:

/home/xzs/catkin_ws/src/turtlebot_apps/turtlebot_follower/src/follower.cpp:36:10: fatal error: turtlebot_msgs/SetFollowState.h: No such file or directory 36 | #include <turtlebot_msgs setfollowstate.h=""> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: * [turtlebot_apps/turtlebot_follower/CMakeFiles/turtlebot_follower.dir/build.make:63: turtlebot_apps/turtlebot_follower/CMakeFiles/turtlebot_follower.dir/src/follower.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:3783: turtlebot_apps/turtlebot_follower/CMakeFiles/turtlebot_follower.dir/all] Error 2 make: ** [Makefile:141: all] Error 2 Invoking "make -j4 -l4" failed How can I figure it out?

edit retag flag offensive close merge delete


Is ros-melodic-turtlebot3-msgs installed? (or similar if you are not on melodic)

chfritz gravatar image chfritz  ( 2020-11-11 10:44:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-11-11 11:19:21 -0500

toebgen gravatar image

Have you tried:

sudo apt install ros-noetic-turtlebot3-msgs? (Make sure to replace noetic in case you use a different ROS Distro)

Running rosdep from your catkin_ws folder might also help installing the required dependencies:

rosdep install --from-paths . --ignore-src -r -y

edit flag offensive delete link more


It works thanks a lot!!!

1210652636 gravatar image 1210652636  ( 2020-11-11 11:43:51 -0500 )edit

Happy to hear that! :-) Please don't forget to accept the answer in order to close the question.

toebgen gravatar image toebgen  ( 2020-11-11 11:46:15 -0500 )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



Asked: 2020-11-11 08:54:39 -0500

Seen: 126 times

Last updated: Nov 11 '20