Esempio n. 1
0
 private static bool addition(TwoInts.Request req, ref TwoInts.Response resp)
 {
     Logger.LogInformation("[ServiceServerSample] addition callback");
     resp.sum = req.a + req.b;
     Logger.LogInformation(req.ToString());
     Logger.LogInformation(resp.sum.ToString());
     return(true);
 }
Esempio n. 2
0
 private static bool addition(TwoInts.Request req, ref TwoInts.Response resp)
 {
     ROS.Info()("[ServiceServerSample] addition callback");
     resp.sum = req.a + req.b;
     ROS.Info()(req.ToString());
     ROS.Info()(resp.sum.ToString());
     return(true);
 }