Monday, September 15, 2014

Call any subscriber to a topic only ONCE in ROS

In short:


sensor_msgs::PointCloud2ConstPtr msg = ros::topic::waitForMessage("/camera/depth/points");

cloud_cb(msg);