KDL Python Bindings

Hi,

I wanted to use the RotationalInterpolation class in the Motion
module of KDL from python and realized that there aren't any
python bindings for that module.

I wanted to find out if the python bindings for the motion module
will be added any time in the near future.

Thanks.

Advait

Ruben Smits's picture

KDL Python Bindings

On Thu, Aug 20, 2009 at 7:05 PM, Advait Jain<advaitjain [..] ...> wrote:
> Hi,
>
> I wanted to use the RotationalInterpolation class in the Motion
> module of KDL from python and realized that there aren't any
> python bindings for that module.

The RotationalInterpolation is fairly new. I will add python bindings
for the new dynamics classes for the next 1.0.x release.

> I wanted to find out if the python bindings for the motion module
> will be added any time in the near future.

If we only had time ;). Adding python bindings is fairly easy, so
maybe you can try for yourself.

Ruben

KDL Python bindings

Hi,

I'm trying to get the kdl python bindings of kdl trunk to work on
ubuntu karmik, python 2.6, sip 4.9.1. The binding build fine, but when
I try to import them into python, I get the following error:

>>> import PyKDL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: liborocos-kdl.so.1.0: cannot open shared object file: No
such file or directory

It fails to find the kdl library itself. Looking at the PyKDL.so lib,
it has no absolute reference to the kdl library:

$ ldd PyKDL.so
linux-vdso.so.1 => (0x00007fffa51ff000)
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007fd16f35c000)
liborocos-kdl.so.1.0 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fd16f04b000)
...

My sys.path contains the path to the kdl library. I remember seeing
this problem in the past, and there was some way to get the absolute
path into the bindings (rpath option?), but I can't figure it out any
more. I was wondering if anyone else is having the same problem? For
me this problem didn't exist before kdl started using the
add_sip_python_module macro.

Wim