Service#
agnocast::Service<ServiceT>#
Service server for zero-copy Agnocast service communication. The service/client API is experimental and may change in future versions.
Example:
using SrvT = example_interfaces::srv::AddTwoInts;
using Request = SrvT::Request;
using Response = SrvT::Response;
auto service = agnocast::create_service<SrvT>(
this, "add_two_ints",
[this](const agnocast::ipc_shared_ptr<Request> & req,
const agnocast::ipc_shared_ptr<Response> & res) {
res->sum = req->a + req->b;
});