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

how to solve the error ? undefined reference to `laser_geometry::LaserProjection:

asked 2014-04-13 03:39:58 -0600

RSA gravatar image

I am working in corverting the laserscan data to sonar data. In this task I had I have the same problem as in this question ""

The answer in this question is to first download the laser_generator package. - I downloaded it using "sudo apt-get install ros-hydro-laser_geometry"

Second add the package to the dependence in the manifest file.. I dont have a manifest file, instead I have a package.xml file.

I added




but still didnt work and I have the error:

undefined reference to `laser_geometry::LaserProjection::~LaserProjection()'

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-04-14 01:52:27 -0600

RSA gravatar image

I solved it. what I did is correct I was just missed to add the following line in the Cmakelists.txt file

find_package(catkin REQUIRED COMPONENTS
 laser_geometry // This line I added it here 
edit flag offensive delete link more

answered 2015-06-15 09:21:35 -0600

ShubhamVerma gravatar image

The solution posted on worked for me

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-13 03:39:58 -0600

Seen: 1,896 times

Last updated: Apr 14 '14