Cannot create filters::FilterChain in ROS Melodic

asked 2019-05-20 04:07:07 -0600

dhindhimathai gravatar image

updated 2019-05-20 05:03:28 -0600

Hi all,

I recently upgraded to ROS Melodic. I'm trying to implement a filter chain in my class using filters::FilterChain. I have been using it without any problems in ROS Kinetic, but it seems that I'm not able to use it in Melodic.

In my class constructor, even if I simply try to create a filter chain by doing the following,

filters::FilterChain<double> lpfilter("double");

I get the following errors when running catkin build:

/usr/bin/ld: CMakeFiles/package_node.dir/src/node.cpp.o: undefined reference to symbol '_ZN12class_loader4impl22AbstractMetaObjectBase9isOwnedByEPKNS_11ClassLoaderE'

//opt/ros/melodic/lib/libclass_loader.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

I really don't understand what's going on here. Everything worked perfectly in ROS Kinetic. Am I doing anything wrong?

Thank you in advace for your help.

Edit:

Sorry, guys. My bad! I forgot to add filters in find_package. Now it builds. I'm extremely sorry!

Still, can anyone explain to me why it gave a DSO runtime error related to package class_loader?

edit retag flag offensive close merge delete