27 lines
704 B
C++
27 lines
704 B
C++
/* ----------------------------------------------------------------------------
|
|
|
|
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
|
|
* Atlanta, Georgia 30332-0415
|
|
* All Rights Reserved
|
|
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
|
|
|
|
* See LICENSE for the license information
|
|
|
|
* -------------------------------------------------------------------------- */
|
|
|
|
// example for wrapping python with boost
|
|
// from http://www.boost.org/doc/libs/1_37_0/libs/python/doc/tutorial/doc/html/index.html
|
|
|
|
char const* greet()
|
|
{
|
|
return "hello, world";
|
|
}
|
|
|
|
#include <boost/python.hpp>
|
|
|
|
BOOST_PYTHON_MODULE(hello_ext)
|
|
{
|
|
using namespace boost::python;
|
|
def("greet", greet);
|
|
}
|