导入错误:没有名为trajoptpy的模块

时间:2016-07-28 08:05:54

标签: python

运行python代码,但在python代码中,他们面临着这些代码行的问题

import trajoptpy
import trajoptpy.kin_utils as ku
from trajoptpy.check_traj import traj_is_safe, traj_collisions
import trajoptpy.math_utils as mu

实际上主要错误是将trajopt导入为

ImportError: No module named trajoptpy

我已经下载了 trajopt 的github包但是在编译之后 我不知道PYTHONPATH正在制造问题或其他依赖 在我的电脑中,我将路径设置为

mudasser@mudasser-PC:~$ export PYTHONPATH=$PYTHONPATH:/home/mudasser/trajopt
mudasser@mudasser-PC:~$ export PYTHONPATH=$PYTHONPATH:/home/mudasser/trajopt/build/lib

现在当 ctest 并运行python代码时,它对我来说是个问题。 ctest 错误以

命名
Test project /home/mudasser/trajopt/build
  Start  1: arm_to_joint_target.py
1/10 Test  #1: arm_to_joint_target.py .............   Passed    5.10 sec
  Start  2: arm_to_cart_target.py
2/10 Test  #2: arm_to_cart_target.py ..............***Failed    2.46 sec
  Start  3: fullbody_plan.py
3/10 Test  #3: fullbody_plan.py ...................***Failed    2.44 sec
  Start  4: position_base.py
4/10 Test  #4: position_base.py ...................***Failed    0.03 sec
  Start  5: this_side_up.py
5/10 Test  #5: this_side_up.py ....................***Failed    2.25 sec
  Start  6: arm_to_cart_target_position_only
6/10 Test  #6: arm_to_cart_target_position_only ...***Failed    2.99 sec
  Start  7: sco-unit
7/10 Test  #7: sco-unit ...........................   Passed    0.08 sec
  Start  8: collision-checker-unit
8/10 Test  #8: collision-checker-unit .............***Failed    0.00 sec
  Start  9: planning-unit
9/10 Test  #9: planning-unit ......................***Failed    0.00 sec
  Start 10: cast-cost-unit
10/10 Test #10: cast-cost-unit .....................***Failed    0.00 sec

20% tests passed, 8 tests failed out of 10

Total Test time (real) =  15.36 sec

The following tests FAILED:
  2 - arm_to_cart_target.py (Failed)
  3 - fullbody_plan.py (Failed)
  4 - position_base.py (Failed)
  5 - this_side_up.py (Failed)
  6 - arm_to_cart_target_position_only (Failed)
  8 - collision-checker-unit (Failed)
  9 - planning-unit (Failed)
 10 - cast-cost-unit (Failed)
Errors while running CTest

有人可以帮我解决trajopt问题吗?

0 个答案:

没有答案