Compiler cant find transformLaserScanToPointCloud function
Hi,
I am quite new to ROS and also programming :) and facing a problem during making executable for node for converting laser scan to get point cloud from my laser scanner data. Can you please have a look on the error and tell me what can be the reason. I also added the dependencies. Everything looks to be fine. Thanks in advance.
CMakeFiles/my_scan_to_cloud.dir/src/tfToPointcloud.o: In function `laser_geometry::LaserProjection::transformLaserScanToPointCloud(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sensor_msgs::LaserScan_<std::allocator<void> > const&, sensor_msgs::PointCloud_<std::allocator<void> >&, tf::Transformer&, int)':
/home/Reza/ros_workspace/laser_geometry/laser_geometry/include/laser_geometry/laser_geometry.h:212: undefined reference to `laser_geometry::LaserProjection::transformLaserScanToPointCloud_(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sensor_msgs::PointCloud_<std::allocator<void> >&, sensor_msgs::LaserScan_<std::allocator<void> > const&, tf::Transformer&, double, int)'
CMakeFiles/my_scan_to_cloud.dir/src/tfToPointcloud.o: In function `LaserScanToPointCloud':
/home/Reza/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:22: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'
CMakeFiles/my_scan_to_cloud.dir/src/tfToPointcloud.o: In function `~LaserScanToPointCloud':
/home/Reza/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'
/home/Reza/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'