How to use ROS service to call a C++ function from python
I am working on a pick and place project using moveit. My code is in Python. In moveit, I did not find any option for gripper open/close functionality in python so I am using an external C++ file to do that and the C++ file has the functions to open and close the gripper. I heard that I can do so using ROS service but I do not exactly know how. Can anyone refers to a tutorial or provide me an example? What I want is I need to call a function to open or close the gripper from my python code.