Error due to subscriber [closed]
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