loco-3d / sot-talos-balance

Coordination project for the control of the balance of Talos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import error in sot_talos_balance/test

TLasguignes opened this issue · comments

Hi,

I installed this package from the binaries, and tried to run the test_dcmZmpControl_file.py file in /opt/openrobots/lib/python2.7/site-packages/sot_talos_balance/test.

After fixing locally the import error from from dynamic_graph.sot.core import SOT, Derivator_of_Vector, FeaturePosture, MatrixHomoToPoseQuaternion, Task in appli_dcmZmpControl_file.py by replacing it with:

from dynamic_graph.sot.core.sot import SOT, Task
from dynamic_graph.sot.core.math_small_entities import Derivator_of_Vector
from dynamic_graph.sot.core.feature_posture import FeaturePosture
from dynamic_graph.sot.core.operator import MatrixHomoToPoseQuaternion

I got this error:

command: from dynamic_graph.sot.core.feature_posture import FeaturePosture
standarderror: Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name FeaturePosture

python -c "from dynamic_graph.sot.core.feature_posture import FeaturePosture" works.

Hi Thibaud this is related to Issue stack-of-tasks/sot-core#138
A patch has been applied to fix the second situation.
A quick fix is to have the file

/opt/openrobots/lib/python2.7/site-packages/dynamic_graph/sot/core/__init__.py

to have it to be empty.

Hi Thibaud is it fixed for you ?