This is an advanced usage example of manually reading from a subscriber
#include <b0/node.h>
#include <b0/subscriber.h>
#include <iostream>
class TestSubscriberNode :
public b0::Node {
public:
TestSubscriberNode(std::string topic)
sub_(this, topic)
{
}
void run()
{
{
std::string msg;
sub_.readRaw(msg);
std::cout << "Received: " << msg << std::endl;
}
}
private:
};
int main(int argc, char **argv)
{
TestSubscriberNode node(argc > 1 ? argv[1] : "A");
node.init();
node.run();
node.cleanup();
return 0;
}