Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V-REP python integration #153

Open
ahundt opened this issue Dec 11, 2017 · 0 comments
Open

V-REP python integration #153

ahundt opened this issue Dec 11, 2017 · 0 comments

Comments

@ahundt
Copy link
Owner

ahundt commented Dec 11, 2017

consider implementing V-REP python integration for plugin + analysis.

Strategy 1: cython

Make a python plugin with this and cython:
https://github.com/CoppeliaRobotics/v_repPlusPlus
https://cython.readthedocs.io/en/latest/src/userguide/wrapping_CPlusPlus.html

The general procedure for wrapping a C++ file can now be described as follows:

    Specify C++ language in setup.py script or locally in a source file.
    Create one or more .pxd files with cdef extern from blocks and (if existing) the C++ namespace name. In these blocks,
        declare classes as cdef cppclass blocks
        declare public names (variables, methods and constructors)
    Write an extension modules, cimport from the .pxd file and use the declarations.

Nice example of python interface to cython c++:
https://github.com/jrl-umi3218/Eigen3ToPython

Strategy 2 cffi

https://bitbucket.org/cffi/cffi
http://cffi.readthedocs.io/en/latest/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant