robotology / yarp

YARP - Yet Another Robot Platform
http://www.yarp.it
Other
527 stars 195 forks source link

Python Embedding Example #3074

Closed SimoneMic closed 2 months ago

SimoneMic commented 10 months ago

A fake device (fakePythonSpeechTranscription) as example on how to do a Python embedding using C++

There is some commented code that gives insight on the use of some functions, and how to test. It's provided also a yarprobotinterface example file to ease utilization.

There are two basic idea to take-away from this code: 1- How to call a function in a .py module and exchange parameters and objects. 2- How to instantiate a class in Python and call its methods, exchanging parameters and objects.

This is still a draft, done to share ideas

update-docs[bot] commented 10 months ago

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update the release notes by adding a file in doc/release/<target_branch>, based on your changes.

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.

sonarcloud[bot] commented 9 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
37.1% Coverage on New Code (required ≥ 80%)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

randaz81 commented 2 months ago

Replaced by #3135