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

Point cloud and sonar

asked 2016-04-22 18:10:12 -0500

Emilien gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-07 02:25:46 -0500

A_YIng gravatar image

updated 2019-10-07 02:26:44 -0500

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-22 18:10:12 -0500

Seen: 676 times

Last updated: Oct 07 '19