leggedrobotics / icp_localization

This package provides localization in a pre-built map using ICP and odometry (or the IMU measurements).
https://rsl.ethz.ch
BSD 3-Clause "New" or "Revised" License
245 stars 48 forks source link

ERROR: cannot launch node of type [icp_localization/s_localizer_node]: #13

Closed barkindagda closed 1 year ago

barkindagda commented 1 year ago

Hi,

Thank you for this very useful package. I tried running the icp_node.launch but I get the following error below. I compiled the package with "catkin_make_isolated" command and I can see that the "localizer_node" is added as executable in the Cmakelists.txt file .

Can you please help me with error ?

Many Thanks.

ERROR: cannot launch node of type [icp_localization/s_localizer_node]: can't locate node [s_localizer_node] in package [icp_localization]

"Build" section from CmakeLists.txt file:

###########

Build

###########

include_directories( include SYSTEM ${libpointmatcher_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} )

link_directories( #only needed for pcl ${PCL_LIBRARY_DIRS} )

add_definitions( #only needed for pcl ${PCL_DEFINITIONS} )

add_library(${PROJECT_NAME} ${SRC_FILES} )

target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${LIBPOINTMATCHER_LIBRARIES} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} )

add_executable(localizer_node src/localizer_node.cpp )

target_link_libraries(localizer_node ${PROJECT_NAME} ${catkin_LIBRARIES} ${libpointmatcher_LIBRARIES} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} )

barkindagda commented 1 year ago

Hi, I fixed this issue by sourcing devel_isolated/setup.bash

Thanks