loco-3d / sot-talos-balance

Coordination project for the control of the balance of Talos.
BSD 2-Clause "Simplified" License
0 stars 5 forks source link

Import error in sot_talos_balance/test #7

Open TLasguignes opened 4 years ago

TLasguignes commented 4 years ago

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.

olivier-stasse commented 4 years ago

Hi Thibaud this is related to Issue https://github.com/stack-of-tasks/sot-core/issues/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.

olivier-stasse commented 4 years ago

Hi Thibaud is it fixed for you ?