You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've simply dowloaded the code and tried to run it but i don't understand what it should do, as soon as the two images appear and i press w,a,s,d or i,j,k,l the program closes itself with this error:
C:....\2D-Grid-SLAM-master\ParticleFilter.py:130: RuntimeWarning: invalid value encountered in true_divide
self.weights = field / np.sum(field)
Traceback (most recent call last):
File "test.py", line 123, in
pf.Resampling(sensor_data)
File "C:...\2D-Grid-SLAM-master\ParticleFilter.py", line 113, in Resampling
re_id = np.random.choice(self.size, self.size, p=list(self.weights))
File "mtrand.pyx", line 1144, in mtrand.RandomState.choice
ValueError: probabilities contain NaN
The text was updated successfully, but these errors were encountered:
I've simply dowloaded the code and tried to run it but i don't understand what it should do, as soon as the two images appear and i press w,a,s,d or i,j,k,l the program closes itself with this error:
C:....\2D-Grid-SLAM-master\ParticleFilter.py:130: RuntimeWarning: invalid value encountered in true_divide
self.weights = field / np.sum(field)
Traceback (most recent call last):
File "test.py", line 123, in
pf.Resampling(sensor_data)
File "C:...\2D-Grid-SLAM-master\ParticleFilter.py", line 113, in Resampling
re_id = np.random.choice(self.size, self.size, p=list(self.weights))
File "mtrand.pyx", line 1144, in mtrand.RandomState.choice
ValueError: probabilities contain NaN
The text was updated successfully, but these errors were encountered: