This is an example of having multiple publishers in one node
#include <b0/node.h>
#include <b0/publisher.h>
#include <iostream>
int main(int argc, char **argv)
{
int i = 0;
{
std::string msg1 = (boost::format("meow-%d") % i++).str();
std::string msg2 = (boost::format("woof-%d") % i++).str();
boost::this_thread::sleep_for(boost::chrono::milliseconds(500));
}
return 0;
}