2016-10-11 60 views
1

创建问题的代码的一部分被粘贴到下方,并且附加运行代码期间发生的错误。请帮助,如果有人有任何想法解决这个'numpy.ndarray'对象不可调用错误3

from numpy import* 
import numpy as np 
from scipy import integrate 
from matplotlib.pylab import* 
from numpy import matrix 
from numpy import linalg 
import scipy 
import mcat 
import ompc 
from matplotlib import pyplot 

#Radius of the wheel 
rw = 3.25 
#Distance between two wheels 
lw = 11.2 
#sampling time interval 
deltat = 0.01 
#The initial position of 3 landmarks and the robot (0,0,pi/2) 
x=np.empty((100,1,9)) 
x(mslice[:], mslice[:], 1).lvalue = mcat([0, OMPCSEMI, 0, OMPCSEMI, 0, OMPCSEMI, 15.5, OMPCSEMI, 23.9, OMPCSEMI, 21.8, OMPCSEMI, 35.6, OMPCSEMI, 23.3, OMPCSEMI, 40.7]) 
#The center of 3 landmarks 
L = mcat([15.5, 23.9, OMPCSEMI, 21.8, 35.6, OMPCSEMI, 23.3, 40.7]) 
D = mcat([1, 0, OMPCSEMI, 0, 1]) 

错误:

enter image description here

+0

尝试并将您的错误消息包含在文本中,而不是图片:它更容易阅读并使其可通过搜索引擎进行索引 –

回答

1

在我看到的版本问题错误,这会导致模块无法返回NumPy的阵列。 你正在运行哪个Python版本?

相关问题