ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Well, I guess it has to do with trying to advertise using a subscriber :-)

It should be subscribe...

ub{nh.advertise<sensor_msgs::laserscan>("kobuki/laser/scan", 10, &SubscribeAndPublish::scanCallback, this)}

Well, I guess it has to do with trying to advertise using a subscriber :-)

It should be subscribe...

ub{nh.advertise<sensor_msgs::laserscan>("kobuki/laser/scan",

sub{nh.subscribe("kobuki/laser/scan", 10, &SubscribeAndPublish::scanCallback, this)}

this)}