ChallenHB / OctoSlam

OctoSlam
4 stars 4 forks source link

Missing runtime dependency: mapping_3D/scan_to_cloud #2

Open dawonn opened 10 years ago

dawonn commented 10 years ago

Doesn't appear to be a standard ROS package.

$roslaunch octoslam build_map.launch

ERROR: cannot launch node of type [mapping_3D/scan_to_cloud]: mapping_3D

dawonn commented 10 years ago

Appears to be located in the src directory of this package but not set up for compilation in CMakeLists.txt.

dawonn commented 10 years ago

Add to CMakeLists.txt:

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs tf laser_geometry )

add_executable(scan_to_cloud src/scan_to_cloud.cpp ) target_link_libraries(scan_to_cloud ${catkin_LIBRARIES} )

(I'd send a pull request, but my system appears misconfigured in some way that's got me dumbfounded for now....)

then change the launch file to point to this package. build_map.launch:

dawonn commented 10 years ago

Also, I needed to move the add_executable and targetlink commands below the catkin_package() call. Otherwise it would build and then not install, and not run.

I also added the launch file as an install target so that it gets installed with the package.

(I hope you don't mind that I'm using this as a notepad for how to get this package to build... I just want to pass on some hints in case I don't get around to fixing my git push abilities...)

NCharabaruk commented 8 years ago

You need to add cmake_modules to the find_package(catkin... section as well as build dependency tags to the package.xml