ros / geometry

Packages for common geometric calculations including the ROS transform library, "tf". Also includes ROS bindings for "bullet" physics engine and "kdl" kinematics/dynamics package.
172 stars 274 forks source link

Unable to use tf_conversions inside anaconda enviroment #198

Closed rickstaa closed 4 years ago

rickstaa commented 4 years ago

I try to use tf_conversions inside a anaconda enviroment. But when I try to import it I get the following error:

>>> import tf_conversions
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/ros/melodic/lib/python2.7/dist-packages/tf_conversions/__init__.py", line 30, in <module>
    from .posemath import *
  File "/opt/ros/melodic/lib/python2.7/dist-packages/tf_conversions/posemath.py", line 34, in <module>
    from PyKDL import *

This might be a consequence of anaconda not playing well with ROS but I just wanted to check if there is an easy solution.

tfoote commented 4 years ago

You'll need to document how you "used" tf_conversions inside the anaconda environment. It looks like you're missing the pykdl implementation which is a compiled library that using SIP. I suspect if you install that library into your anaconda environment you'll this will work. If you need more help please ask on answers.ros.org and make sure to provide enough information to reproduce your problem.