[Urgent] Error during catkin_make: can't find turtle_ros_3d

I am on Chapter 2: TF Publish and Subscribe of the course and I am attempting Exercise 2.1

Unfortunately, when I run catkin_make, I get the following error:

-- +++ processing catkin package: 'your_package'
-- ==> add_subdirectory(your_package)
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "turtle_tf_3d" with
  any of the following names:

    turtle_tf_3dConfig.cmake
    turtle_tf_3d-config.cmake

  Add the installation prefix of "turtle_tf_3d" to CMAKE_PREFIX_PATH or set
  "turtle_tf_3d_DIR" to a directory containing one of the above files.  If
  "turtle_tf_3d" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  your_package/CMakeLists.txt:10 (find_package)


-- Could not find the required component 'turtle_tf_3d'. The following CMake error indicates that you either need to installthe package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "turtle_tf_3d" with
  any of the following names:

    turtle_tf_3dConfig.cmake
    turtle_tf_3d-config.cmake

  Add the installation prefix of "turtle_tf_3d" to CMAKE_PREFIX_PATH or set
  "turtle_tf_3d_DIR" to a directory containing one of the above files.  If
  "turtle_tf_3d" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  your_package/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/user/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:1102: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

I also tried finding the turtke_tf_3d package but couldn’t locate it

user:~/catkin_ws$ roscd turtle_tf_3d
roscd: No such package/stack 'turtle_tf_3d'

I read this forum article and tried restarting my workspace, but that didn’t help either.

I am stuck and unable to continue learning now, please help.

I think my developer environment is totally messed up. I can’t even run the basic commands that I was able to run previously

user:~$ roslaunch turtle_tf_3d irobot_follow_turtle.launch
[irobot_follow_turtle.launch] is neither a launch file in package [turtle_tf_3d] nor is [turtle_tf_3d] a launch file name
The traceback for the exception was written to the log file
user:~$
user:~$ roscd turtle_tf_3d
roscd: No such package/stack 'turtle_tf_3d'
user:~$

Hi @rt.indru,

Welcome to the Community.

You are already on the way to solving the problem, based on the related forum post you found. This post specifically states what the problem was. The problem must have been this part:


Could you do the following:

echo $ROS_PACKAGE_PATH

You should get this path:

/home/user/catkin_ws/src:/home/simulations/public_sim_ws/src:/opt/ros/kinetic/share

This allows the ros system to find all the packages.


In any case, this problem is likely to be fixed by the time you come back to the course. If it isn’t then please check the post mentioned above and try again.

Here’s the output

user:~$ echo $ROS_PACKAGE_PATH
/home/user/catkin_ws/src:/opt/ros/kinetic/share

I tried my luck again, but the roslaunch does not work still :frowning:

user:~$ roslaunch turtle_tf_3d run_turtle_tf_listener.launch
[run_turtle_tf_listener.launch] is neither a launch file in package [turtle_tf_3d] nor is [turtle_tf_3d] a launch file name
The traceback for the exception was written to the log file

It looks like your ~/.bashrc has been modified.

Please, try:

export ROS_PACKAGE_PATH=/home/user/catkin_ws/src:/home/simulations/public_sim_ws/src:/opt/ros/kinetic/share

Then try to run your package again.

If it works, add that line to your .bashrc.

echo "export ROS_PACKAGE_PATH=/home/user/catkin_ws/src:/home/simulations/public_sim_ws/src:/opt/ros/kinetic/share" >> ~/.bashrc