ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Compiler cant find transformLaserScanToPointCloud function

asked 2012-04-16 21:40:13 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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()'
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-05-14 06:51:18 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Two possibilities: you're sure you've added laser_geometry as a depend in your manifest.xml? Like, double-plus-sure?

Another possibility: are you sure laser_geometry is installed? If you've done a source install (and have the dependency set), try using rosmake to build your package, not just make. If you're using a binary install, double-check that the laser_geometry package is installed.

edit flag offensive delete link more

Comments

I have the same problem, I downloaded the laser_geometry from the source but I have package.xml not mainfest.xml which is different somehow and I still haave the same problem when I add it to the package.xml file.. do i have to add anything in the Cmakelist

RSA gravatar image RSA  ( 2014-04-12 23:23:53 -0600 )edit
0

answered 2016-08-26 07:26:31 -0600

Wine gravatar image

I met the same pro, and I add laser_geometry into Cmakelist and package.xml, and solved it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-04-16 21:40:13 -0600

Seen: 733 times

Last updated: Aug 26 '16