Robotics StackExchange | Archived questions

Error due to subscriber

This is my subscriber declaration followed by the callback function

messagefilters::Subscriber<geometrymsgs::Point32> pointsub(*nh, "trackedpoint", 1); point_sub.registerCallback(&visualservoing3D::pointCallback);

The callback declaration is

void visualservoing3D::pointCallback(const geometry_msgs::Point32ConstPtr& msg) { //Some functions }

But the following error pops up. I know its something to do with my subscriber.

/usr/include/boost/function/functiontemplate.hpp:225: error: no match for call to ‘(boost::mfi::mf1

&>) (const boost::sharedptr<const geometrymsgs::Point32_std::allocator<void &)’

Thanks, Nagsaver

Asked by Nagsaver on 2014-06-19 11:23:14 UTC

Comments

Answers