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

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake #4

Open
ZWH55 opened this issue Dec 3, 2024 · 4 comments
Open

Comments

@ZWH55
Copy link

ZWH55 commented Dec 3, 2024

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:183 (message):
catkin_package() CATKIN_DEPENDS on 'decomp_util', which has been found in
'/home/zwh/plan/MPCC/TMPCPlanner/devel/share/decomp_util/cmake/decomp_utilConfig.cmake',
but it is not a catkin package

@oscardegroot
Copy link
Collaborator

Hi, I cannot reproduce the issue (I tried a fresh install to check, but it works for me). I think the issue is that decomp_util did not get compiled somehow, did you use the provided tasks to build?

I think running catkin build decomp_util separately will fix the problem. Please let me know.

@Yihappyy
Copy link

Hello, I have also encountered the same issue. I have already run catkin build decomp_util in advance according to the README, but when I generate the solver for mpc_planner_rosnavigation and then compile the workspace, this error will occur.
Looking forward to your reply.

@oscardegroot
Copy link
Collaborator

How are you building the planner, are you using mpc_planner_ws?

If not, is the name of the package DecompUtil instead of decomp_util? In that case it may somehow be related to the name of the folder and it would be best to rename to decomp_util.

If the error remains, please let me know how you are building so that I can try to reproduce it.

@Yihappyy
Copy link

Yihappyy commented Dec 10, 2024

I have renamed DecompUtil to decomp_util, but the error still persists.
I followed the prompt in the README, completed the build, and ran roslaunch mpc_planner_jackalsimulator ros1_jackalsimulator. launch successfully. However, when I wanted to use mpc_planner_rosnavigation, I first ran catkin build decomp_util. Then, python mpc_planner_rosnavigation/scripts/generate_rosnavigation_stolver.py was run successfully in Conda. When I tried to compile the workspace again, the above error occurred. My workspace is named catkin_ws_t-mpc.
2024-12-11 10-24-07 的屏幕截图

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

3 participants