ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I cannot reproduce this problem in source: ``` In [1]: import tf

In [2]: tf.transformations.quaternion_from_euler(1,2,3) Out[2]: array([-0.71828702, 0.31062245, 0.44443511, 0.43595284])

In [3]: print(tf) <module 'tf'="" from="" '="" home="" tfoote="" work="" geometry_experimental="" devel="" lib="" python2.7="" dist-packages="" tf="" __init__.pyc'=""> ```

Or from debian packages: ``` In [1]: import tf

In [2]: tf.transformations.quaternion_from_euler(1,2,3) Out[2]: array([-0.71828702, 0.31062245, 0.44443511, 0.43595284])

In [3]: print(tf) <module 'tf'="" from="" '="" opt="" ros="" hydro="" lib="" python2.7="" dist-packages="" tf="" __init__.pyc'=""> ```

I'd suggest that you make sure that your environment is clean and the referenced init script is pointing to a valid source directory.

I cannot reproduce this problem in source: ``` source:

In [1]: import tf

tf In [2]: tf.transformations.quaternion_from_euler(1,2,3) Out[2]: array([-0.71828702, 0.31062245, 0.44443511, 0.43595284])

0.43595284]) In [3]: print(tf) <module 'tf'="" from="" '="" home="" tfoote="" work="" geometry_experimental="" devel="" lib="" python2.7="" dist-packages="" tf="" __init__.pyc'=""> ```

'tf' from '/home/tfoote/work/geometry_experimental/devel/lib/python2.7/dist-packages/tf/__init__.pyc'>

Or from debian packages:

```
In [1]: import tf

tf In [2]: tf.transformations.quaternion_from_euler(1,2,3) Out[2]: array([-0.71828702, 0.31062245, 0.44443511, 0.43595284])

0.43595284]) In [3]: print(tf) <module 'tf'="" from="" '="" opt="" ros="" hydro="" lib="" python2.7="" dist-packages="" tf="" __init__.pyc'=""> ```

'tf' from '/opt/ros/hydro/lib/python2.7/dist-packages/tf/__init__.pyc'>

I'd suggest that you make sure that your environment is clean and the referenced init script is pointing to a valid source directory.