Ask Your Question
0

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

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

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

Comments

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

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

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-11-11 11:19:21 -0600

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

Comments

It works thanks a lot!!!

1210652636 gravatar image 1210652636  ( 2020-11-11 11:43:51 -0600 )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 -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-11 08:54:39 -0600

Seen: 74 times

Last updated: Nov 11 '20