lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I want to call compiled library from Lua. The compiled library is /opt/ros/indigo/lib/python2.7/dist-packages/complied_lib.so

complied_lib.so have a constructor and a method, which I want to call from Lua. I am able to use this libray from python in following way-

#!/usr/bin/env python
import numpy as np
import complied_lib as util

file = 'test.xml'
q = np.array([-0.20, 1.38, 0.98])
dyn_util = util.DynParam(file)
out = dyn_util.MyMethod(q)

The complied_lib contains most probably the CPP code. Thanks in advance.

-
Thanks
Ravi