Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error: Cannot locate message [Errors] in package [franka_core_msgs] #46

Open
raayraay96 opened this issue Jul 15, 2024 · 1 comment

Comments

@raayraay96
Copy link

If you're experiencing the following error when building the franka_ros_interface package:

CMake Error at .../franka_core_msgs-genmsg.cmake:3 (message):
Could not find messages which ... depends on.
Cannot locate message [Errors] in package [franka_core_msgs]

Even though the Errors.msg file exists in the franka_core_msgs/msg directory, here's a potential solution:

Possible Cause:

The build system might be getting confused about where to find the Errors.msg file due to an outdated or incorrect dependency configuration.

Solution:

Verify Repository and Branch:
    Ensure you're using the correct repository:

    https://github.com/justagist/franka_ros_interface

    Make sure you're on the appropriate branch (e.g., noetic-devel for ROS Noetic).

Clean and Rebuild:

    Thoroughly clean your workspace:
    Bash

    cd <your_workspace>
    catkin clean -y 

    Use code [with caution.](https://github.com/faq#coding)

Rebuild the entire workspace from scratch:
Bash

catkin_make_isolated --install

Use code with caution.

Check for Missing Dependencies:
Bash

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

Use code with caution.

Manually Trigger Message Generation:

If the error persists, try forcing message generation specifically for franka_core_msgs:

Bash

catkin_make_isolated --install --pkg franka_core_msgs --catkin-make-args run_tests

Use code with caution.

Re-clone the Repository (If Necessary):

If all else fails, remove the franka_ros_interface folder and re-clone it, making sure to initialize and update the submodules:

Bash

cd <your_workspace/src>
rm -rf franka_ros_interface
git clone https://github.com/justagist/franka_ros_interface.git
cd franka_ros_interface
git submodule update --init --recursive

Use code with caution.

Explanation:

These steps resolve common issues related to:

Outdated/Incorrect Configuration: Cleaning and rebuilding refreshes the configuration files.
Missing Dependencies: The rosdep command ensures all required packages are installed.
Stale Build Artifacts: Cleaning the workspace eliminates old files that might cause conflicts.
Repository Problems: Re-cloning the repository can fix issues with missing or corrupted files.

Additional Notes:

Make sure to source your workspace after rebuilding (source devel_isolated/setup.bash).
If you're still having trouble, provide the following information in your GitHub issue:
    The full output of the catkin_make_isolated --install command
    The contents of franka_core_msgs/CMakeLists.txt and franka_core_msgs/package.xml
Copy link

Hi @raayraay96, thank you for using this repository. Unfortunately, I am unable to maintain this package any more, sorry!
If you are interested in contributing to this repository or are willing to maintain it, please contact me at mail@saifsidhik.page.
-- Saif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant