karlkurzer / path_planner

Hybrid A* Path Planner for the KTH Research Concept Vehicle
http://karlkurzer.github.io/path_planner/
BSD 3-Clause "New" or "Revised" License
1.56k stars 538 forks source link

catkin_make error #39

Closed garychian closed 3 years ago

garychian commented 3 years ago

Sorry, this is my first time to implement code in ROS. The catkin_ws/src floder was been created and the code was clone into src. But when I try to catkin_make in the root folder, it gives me errors say cannot find package.xml. So I copied package.xml to root floder(under src), but when I catkin_make it again. I get below error:

CMake Error at CMakeLists.txt:76 (add_executable): Cannot find source file:

src/main.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:57 (add_library): Cannot find source file:

/home/garychian/catkin_ws_path_planner/src/src/algorithm.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:73 (add_executable): Cannot find source file:

src/tf_broadcaster.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

I am so confused right now, the CMakeLists.txt was auto generated by ROS(I think), so what about the CMakeLists.txt under path_planner floder?

anyone can give me some suggestions? Thanks in advantage!

karlkurzer commented 3 years ago

@garychian please look at some tutorials (e.g. http://wiki.ros.org/ROS/Tutorials). There should not be any issues with the code, since the CI pipeline runs fine.

garychian commented 3 years ago

@garychian please look at some tutorials (e.g. http://wiki.ros.org/ROS/Tutorials). There should not be any issues with the code, since the CI pipeline runs fine.

OK, thanks. Do we need more dependencies to run catkin_make?