This is an example of a simple node with a service server.
#include <b0/node.h>
#include <b0/service_server.h>
#include <iostream>
void callback(const std::string &req, std::string &rep)
{
std::cout << "Received: " << req << std::endl;
rep = "hi";
std::cout << "Sending: " << rep << std::endl;
}
int main(int argc, char **argv)
{
node.init();
node.spin();
node.cleanup();
return 0;
}