ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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)}
2 | No.2 Revision |
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,