37일차 - 2D Localization
아래는 1D Localization 측정 및 이동에 대한 코드입니다. #Modify the previous code so that the robot senses red twice. p=[0.2, 0.2, 0.2, 0.2, 0.2] world=['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'red'] motions = [1,1] pHit = 0.6 pMiss = 0.2 pExact = 0.8 pOvershoot = 0.1 pUndershoot = 0.1 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit..
더보기