[Robotics] implemented C or C++
Nicolas Lassabe
Nicolas.Lassabe at onera.fr
Fri Oct 9 11:47:36 CEST 2009
Hello,
You can develop your C/C++ algorithms and call it from Python. I use
SWIG to wrap C/C++ for python.
http://www.swig.org/
To wrap automatically my program,s I use cmake with the flowing
instructions :
FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})
FIND_PACKAGE(PythonLibs)
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(CMAKE_SWIG_FLAGS "")
SET_SOURCE_FILES_PROPERTIES(example.i PROPERTIES CPLUSPLUS ON)
SWIG_ADD_MODULE(example python example.i ${SOURCES_AUV_GUIDAGE})
SWIG_LINK_LIBRARIES(example ${PYTHON_LIBRARIES})
Nicolas
> Hello everybody,
>
> I would like to know if C/C++ algorithms could be implemented instead
> of Python to communicate with the BGE. Even if I have to use an
> another software like YARP to do this.
>
> Hope someone knows.
>
> Bye,
>
> Hervé
> ------------------------------------------------------------------------
>
> _______________________________________________
> Robotics mailing list
> Robotics at blender.org
> http://lists.blender.org/mailman/listinfo/robotics
>
More information about the Robotics
mailing list