ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This is not a linker error, but a build error. The error tells you that it does not find a specific header file.
Afaik, pcl::toRosMsg
is defined in the pcl_conversions
package.
Add this to the CMakeLists.txt
, and include pcl_conversions.h
in the file where you use the toRosMsg
call.
Also, please clean the CMakeLists.txt
up, before posting here ;-) i.e. remove all the commented parts.
I'd also recomend to have all the stuff at the end in the respective calls where it belongs, e.g. uncomment the PCL
part here:
target_link_libraries(player_node
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
#${PCL_LIBRARIES} #ADDED BY MARTIN
)
instead of having this below again...