[ros-users] NodeHandle.subscribe(...) - callbacks

Peter Müller grandmastermt2000 at yahoo.de
Sun Jul 4 15:59:01 UTC 2010

Hi Ken,

this is actually what I was looking for, unfortunately your example does not compile:

ros::Subscriber chatter_sub1 = n.subscribe("chatter", 100, boost::bind(chatterCallback1, _1, 10));

I used this for my example and the following error is returned:

error: no matching function for call to ‘ros::NodeHandle::subscribe(const char [8], int, boost::_bi::bind_t<void, void (*)(const std_msgs::StringConstPtr&, int), boost::_bi::list2<boost::arg<1>, boost::_bi::value<int> > >)’

note: candidates are: ros::Subscriber ros::NodeHandle::subscribe(ros::SubscribeOptions&)

Do you have any hints for me (my boost knowledge is rather low)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100704/99d7d62f/attachment-0003.html>

More information about the ros-users mailing list