Skip to content

bthcode/cmake_scipy_ctypes_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake_scipy_ctypes_example

Examples of Integration of CMake, Scipy, Ctypes, IPython

List of examples:

  1. python / numpy / ctypes interface

Shows how to communicate between python and C/C++ in a very easy way.

 - sample_class: a sample C++ class 
 - ctypes_interface: a c-style interface for communicating with sample_class
 - python: pysample.py: a python class and main loop that demonstrates how to use the ctypes interface

Or:

pysample.py <- ctypes -> sample_interface <- C/C++ -> sample_class

  1. gdb-plot:

Shows how to plot stuff from gdb using gdb's built-in python system and matplotlib

  1. lcm / zmq interface:

Shows how to use the lcm system for message serialization with zeromq for data transport

  1. py_crust_example.py:

Shows how to enable a python shell from within any wxPython application

Building:

mkdir build cmake ../src make make install

Running:

  1. Ctypes example

python install/python/py_ctypes_caller.py

About

Examples of Integration of CMake, Scipy, Ctypes, IPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published