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

undefined reference using depthimage_to_laserscan

asked 2014-07-04 03:13:11 -0500

HyEnd gravatar image

updated 2014-07-04 03:14:04 -0500

I'm trying to convert a Image taken by a Kinect into a LaserScan, but I have the following compile error when creating an instance of DepthImageToLaserScan:

undefined reference to `depthimage_to_laserscan::DepthImageToLaserScan::DepthImageToLaserScan()'

I found out that it is a linker issue, but I don't know how to fix it. I would really appreciate any help.

Code to create the instance of DepthImageToLaserScan:

depthimage_to_laserscan::DepthImageToLaserScan image_to_laser_converter_;
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-04 04:24:58 -0500

Wolf gravatar image

Did you include the package depthimage_to_laserscan as build_dep, and run_dep in package.xml as well as in

find_package(catkin REQUIRED roscpp depthimage_to_laserscan .... )

in your CMakeLists.txt ?

edit flag offensive delete link more


That was it, Thank you!

HyEnd gravatar image HyEnd  ( 2014-07-05 03:02:48 -0500 )edit

Question Tools

1 follower


Asked: 2014-07-04 03:13:11 -0500

Seen: 183 times

Last updated: Jul 04 '14