Did you remember to:

import roslib
roslib.load_manifest(YOUR_PACKAGE_NAME)

This will crawl your package's manifest, examine dependencies, and add the appropriate directories to your python path.

-R

On Wed, Oct 20, 2010 at 11:41 AM, Huang, Wesley <whuang@irobot.com> wrote:

i'm a little confused about KDL and python.  i have a C++ node that is using KDL just fine, so i know it's installed.  however, i can't seem to get it imported into a python node.  i should mention that i'm running boxturtle (installed just prior to the ROS tutorial at ICRA 2010).

in my manifest.xml, i have:

    <depend package="kdl"/>

(i've tried PyKDL, KDL, etc., but they cause errors during rosmake)

in my python code, i have:

    import PyKDL

following one of the KDL tutorial wiki pages.

when i try to rosrun the node, i get "ImportError: No module named PyKDL"  (and kdl, KDL, pykdl, etc. don't work either)

is there something wrong with my installation?  do i need to install python bindings to KDL separately?

thanks,

wes


_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users