Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

posted 2012-04-16 21:40:13 -0500

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.

enter code here

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/changizi/ros_workspace/laser_geometry/laser_geometry/include/laser_geometry/laser_geometry.h:212: undefined reference tolaser_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/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:22: undefined reference tolaser_geometry::LaserProjection::~LaserProjection()' CMakeFiles/my_scan_to_cloud.dir/src/tfToPointcloud.o: In function ~LaserScanToPointCloud': /home/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference tolaser_geometry::LaserProjection::~LaserProjection()' /home/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'

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.

enter code here

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/changizi/ros_workspace/laser_geometry/laser_geometry/include/laser_geometry/laser_geometry.h:212: undefined reference tolaser_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/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:22: undefined reference tolaser_geometry::LaserProjection::~LaserProjection()' CMakeFiles/my_scan_to_cloud.dir/src/tfToPointcloud.o: In function ~LaserScanToPointCloud': /home/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference tolaser_geometry::LaserProjection::~LaserProjection()' /home/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'

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, `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/changizi/ros_workspace/laser_geometry/laser_geometry/include/laser_geometry/laser_geometry.h:212: /home/Reza/ros_workspace/laser_geometry/laser_geometry/include/laser_geometry/laser_geometry.h:212: undefined reference tolaser_geometry::LaserProjection::transformLaserScanToPointCloud_(std::basic_string<char, std::char_traits<char="">, 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/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:22: `LaserScanToPointCloud':
/home/Reza/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:22: undefined reference tolaser_geometry::LaserProjection::~LaserProjection()'
to `laser_geometry::LaserProjection::~LaserProjection()'
CMakeFiles/my_scan_to_cloud.dir/src/tfToPointcloud.o: In function ~LaserScanToPointCloud':
/home/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference tolaser_geometry::LaserProjection::~LaserProjection()'
/home/changizi/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: `~LaserScanToPointCloud':
/home/Reza/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'

`laser_geometry::LaserProjection::~LaserProjection()' /home/Reza/ros_workspace/laser_geometry/laser_geometry/src/tfToPointcloud.cpp:8: undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'