mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-12 22:08:33 -05:00
fix: [ValueError] setting an array element with a sequence in [fast_slam2] (#851)
This commit is contained in:
@@ -405,8 +405,8 @@ def main():
|
||||
|
||||
for iz in range(len(z[:, 0])):
|
||||
landmark_id = int(z[2, iz])
|
||||
plt.plot([xEst[0], RFID[landmark_id, 0]], [
|
||||
xEst[1], RFID[landmark_id, 1]], "-k")
|
||||
plt.plot([xEst[0][0], RFID[landmark_id, 0]], [
|
||||
xEst[1][0], RFID[landmark_id, 1]], "-k")
|
||||
|
||||
for i in range(N_PARTICLE):
|
||||
plt.plot(particles[i].x, particles[i].y, ".r")
|
||||
|
||||
Reference in New Issue
Block a user