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

catkin_make后提示缺少lkh_mtsp_solver/SolveMTSP.h #26

Open
LYQBOY opened this issue Aug 28, 2024 · 1 comment
Open

catkin_make后提示缺少lkh_mtsp_solver/SolveMTSP.h #26

LYQBOY opened this issue Aug 28, 2024 · 1 comment

Comments

@LYQBOY
Copy link

LYQBOY commented Aug 28, 2024

在执行完catkin_make之后报了这样的错误:

......
Scanning dependencies of target mtsp_node
[ 29%] Building CXX object RACER/swarm_exploration/utils/lkh_mtsp_solver/CMakeFiles/mtsp_node.dir/src2/mtsp_node.cpp.o
/home/yang/catkin_ws/src/RACER/swarm_exploration/utils/lkh_mtsp_solver/src2/mtsp_node.cpp:6:10: fatal error: lkh_mtsp_solver/SolveMTSP.h: No such file or directory
 #include <lkh_mtsp_solver/SolveMTSP.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
RACER/swarm_exploration/utils/lkh_mtsp_solver/CMakeFiles/mtsp_node.dir/build.make:3710: recipe for target 'RACER/swarm_exploration/utils/lkh_mtsp_solver/CMakeFiles/mtsp_node.dir/src2/mtsp_node.cpp.o' failed
make[2]: *** [RACER/swarm_exploration/utils/lkh_mtsp_solver/CMakeFiles/mtsp_node.dir/src2/mtsp_node.cpp.o] Error 1
CMakeFiles/Makefile2:2549: recipe for target 'RACER/swarm_exploration/utils/lkh_mtsp_solver/CMakeFiles/mtsp_node.dir/all' failed
make[1]: *** [RACER/swarm_exploration/utils/lkh_mtsp_solver/CMakeFiles/mtsp_node.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed

我应该怎么修改呢?
还有一点是:在报错之后,我运行这行命令1仍是可以启动的;
1 source devel/setup.bash && roslaunch exploration_manager rviz.launch
但是运行这行命令2
2 source devel/setup.bash && roslaunch exploration_manager swarm_exploration.launch
会报以下错误

ERROR: cannot launch node of type [map_generator/map_pub]: Cannot locate node of type [map_pub] in package [map_generator]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [exploration_manager/exploration_node]: Cannot locate node of type [exploration_node] in package [exploration_manager]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [lkh_mtsp_solver/mtsp_node]: Cannot locate node of type [mtsp_node] in package [lkh_mtsp_solver]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [lkh_mtsp_solver/mtsp_node]: Cannot locate node of type [mtsp_node] in package [lkh_mtsp_solver]. Make sure file exists in package path and permission is set to executable (chmod +x)
.......
No processes to monitor
shutting down processing monitor...
... shutting down processing monitor complete

大概20个左右ERROR: cannot launch node of type

@yangwenguanggit
Copy link

me too,解决问题了吗?请指教

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

2 participants