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

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 "http://answers.ros.org/question/31968/compiler-cant-find-transformlaserscantopointcloud-function/"

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

  <build_depend>laser_geometry</build_depend>

and

    <run_depend>laser_geometry</run_depend>

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
7

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
 roscpp
 sensor_msgs
 ----- 
 ---- 
 ---- 
 laser_geometry // This line I added it here 
 )
edit flag offensive delete link more
0

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

ShubhamVerma gravatar image

The solution posted on answers.ros.org worked for me

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 2,004 times

Last updated: Apr 14 '14