ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosjava services AddTwoInts basic question

asked 2014-03-30 12:15:18 -0500

AMiNAsFour gravatar image

Hello,

I'm looking at the client code (also the server) of AddTwoInts .. and I came across this code:

ServiceClient<rosjava_test_msgs.AddTwoIntsRequest, rosjava_test_msgs.AddTwoIntsResponse> serviceClient;

now my question is, who supplies the implementation of AddTwoIntsRequest and AddTwoIntsResponse ? They are interfaces, with methods such as setA , setSum, etc.. but I can't find an implementation for these methods anywhere..

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-07 09:57:58 -0500

jubeira gravatar image

The implementation of the messages are created in runtime by some Proxy "magic". When you receive a message from a topic or a service, an implementation for those interfaces is created, allowing you to access and set it's members.

Damon Kohler explains this (very briefly, without diving too deep) in his talk where he presented Rojava: https://www.youtube.com/watch?v=ATuVE...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-03-30 12:15:18 -0500

Seen: 287 times

Last updated: Nov 07 '17