Robotics StackExchange | Archived questions

Point cloud and sonar

hi, i read this tutorial link text but i don't understand this lines:

ros::Subscriber sub1 = n.subscribe("sonarBearing", 100, bearingCB); ros::Subscriber sub2 = n.subscribe("sonarBinsArr", 100, binsArrCB);

can you explain it to me please?

Asked by Emilien on 2016-04-22 18:10:12 UTC

Comments

Answers

The Subscriber keeps to listen the topic which have been published. So, in this example, the subscriber sub1 keeps subscribe the topic sonarBearing, 100 is the queue size and the bearingCB is the name of callback function.

Have a look of this tutorial, I think it could help you to realize.

Asked by A_YIng on 2019-10-07 02:25:46 UTC

Comments