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

Is it possible to have a Service node in Python and the Client node in C++?

asked 2014-12-23 06:00:50 -0600

mutzechai gravatar image

I am trying to use the rosserial library, in order to communicate my PC and an Arduino Mega 2560. As rosserial for PC is only available in Python and I already have an entire code in C++, that's the reason of my question. Thanks in advance

edit retag flag offensive close merge delete


Congrats on 20,000th question!

Dave Coleman gravatar image Dave Coleman  ( 2014-12-25 21:54:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-24 02:57:06 -0600

wchar gravatar image

Yes. ROS is a multi-lingual OS, the service-client specification is at the messaging layer. P2P communication occurs in XML-RPC. So you can just write your code in any language supported and let the mid-layer handle this for you. You can take a look at the original paper:

Hope this helps.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-12-23 06:00:50 -0600

Seen: 484 times

Last updated: Dec 24 '14