This is an example of having multiple subscribers inside one node
#include <b0/node.h>
#include <b0/subscriber.h>
#include <iostream>
void callback1(const std::string &msg)
{
std::cout << "Received: " << msg << std::endl;
}
void callback2(const std::string &msg)
{
std::cout << "Received: " << msg << std::endl;
}
int main(int argc, char **argv)
{
node.init();
node.spin();
node.cleanup();
return 0;
}