Error due to subscriber [closed]

asked 2014-06-19 11:23:14 -0500

Nagsaver gravatar image

This is my subscriber declaration followed by the callback function

message_filters::Subscriber<geometry_msgs::point32> point_sub(*nh, "tracked_point", 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/function_template.hpp:225: error: no match for call to ‘(boost::_mfi::mf1<void, visualservoing3d,="" const="" boost::shared_ptr<const="" geometry_msgs::point32_<std::allocator<void="">

&>) (const boost::shared_ptr<const geometry_msgs::point32_<std::allocator<void=""> &)’

Thanks, Nagsaver

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by dornhege
close date 2014-06-19 12:10:19.323127