Executables and permission issues
Has anyone come across an issue where you try to
roslaunch something but you get this error
ERROR: cannot launch node of type [polygon_coverage_ros/coverage_planner]: Cannot locate node of type [coverage_planner] in package [polygon_coverage_ros]. Make sure file exists in package path and permission is set to executable (chmod +x)
But I've already chmoded the scripts the error talks about. What are possible reasons for still getting this error.
Asked by distro on 2022-07-04 22:13:05 UTC
Answers
Assuming you sourced the workspace correctly with source devel/setup.bash
and this error still occurs. Run a catkin clean
/ catkin_make clean
command from the directory that your catkin workspace is located, then build and source again. If the same error still occurs, open your CMakeLists.txt
and ensure that the file exists in the package path with add_executable(<executable_file_name> <path/to/file/file.cpp)
in your ./devel/lib
folder.
Asked by qilin_gundamenjoyer on 2022-07-05 01:59:51 UTC
Comments
@qilin_gundamenjoyer actually something went wrong initially, I use catkin_make and catkin build in the same workspace. What had happened was I got confused when I used catkin build the first time because no devel
or build
folders were created when I did that, so I used catkin_make
to make those files. Bad idea I now realize. However on just remaking my workspace I dont know how to make the devel folder without using catkin_make
, the instructions for the packages I am trying to get to work don't make it clear. Here is the link to the github I am looking at: link
Asked by distro on 2022-07-05 18:45:59 UTC
Comments
It is possible that you have not sourced the workspace (in which
polygon_coverage_ros
lies) in your current working terminal.Asked by electrophod on 2022-07-05 00:54:10 UTC
@electrophod I did
Asked by distro on 2022-07-05 01:49:58 UTC