ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There are 2 things that come to mind:
You can use a library to wrap you C++ functions so they are accessible with Python as seen in this post here.
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