运行程序时出现以下错误。我附上了我的错误和程序如下。我的计划出了什么问题?
error_x= x - x_old
error_y= y - y_old
reglage.input['position'] = int(x)
reglage.input['vitesse'] = int(error_x - error_precedent_x)
reglage.compute()
x_angle=reglage.output['angle']
print x_angle
reglage.input['position'] = int(y)
reglage.input['vitesse'] = int(error_y - error_precedent_y) #dy/dt
reglage.compute()
y_angle=reglage.output['angle']
print y_angle
value = np.fmax(value,np.var.universe.min()) AttributeError:'function'对象没有属性'universe'
答案 0 :(得分:0)
{
"env": {
"es6": true,
"node": true,
"amd": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"linebreak-style": [
"error",
"windows"
],
"no-restricted-syntax": [
"error",
{
"selector": "CallExpression[callee.object.name='console'][callee.property.name=/^(log|warn|error|info|trace)$/]",
"message": "Unexpected property on console object was called"
}
]
}
}
输入应该在声明的Universe中:
reglage.input['position'] = int(x)
reglage.input['vitesse'] = int(error_x - error_precedent_x)
这个例子: x在[0 400] AND中 error_x - [-200 200]中的error_precedent_x