Add CUDA to ROS Package
问题 I would like to use cuda within a ros package. Has anyone a simple example for me? I tried to built a static library with the cuda function and add this library to my package, but I get always a linking error: Undefined reference cuda... I have built a executable instead of the library and it works. Please help! 回答1: I found a solution myself: CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) PROJECT (beginner_tutorials) FIND_PACKAGE(CUDA REQUIRED) find_package(catkin REQUIRED COMPONENTS