创建问题的代码的一部分粘贴在下面,并且附加了运行代码期间发生的错误。如果有人想知道解决这个问题,请帮助
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])
错误:
答案 0 :(得分:1)
在错误中我看到版本问题,这导致模块不返回Numpy数组。 你在运行哪个Python版本?