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

Revision history [back]

click to hide/show revision 1
initial version

There are 2 things that come to mind:

non-ros answer

You can use a library to wrap you C++ functions so they are accessible with Python as seen in this post here.

ros answer

You could write a service on the C++ node and a client on the Python node that communicate with each other.

The easiest way to get started is to check the following tutorials on Services that are written in C++ and Python and combine them to work for your problem:

http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29

http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28python%29