vita-epfl / CrowdNav

[ICRA19] Crowd-aware Robot Navigation with Attention-based Deep Reinforcement Learning
MIT License
585 stars 169 forks source link

Grid locations to be corrected? #21

Closed tessavdheiden closed 4 years ago

tessavdheiden commented 4 years ago

Hi Changan!

Super code! In multi_human_rl.py you compute the locations incorrectly. Please alter this piece of code: line 154:

dm[int(index) + self.cell_num ** 2].append(other_vx[i]) dm[int(index) + self.cell_num ** 2 * 2].append(other_vy[i])

ChanganVR commented 4 years ago

Hi Tessa,

I think the code is correct. The range of index goes from 0 to self.cell_num ** 2 - 1. It is the index of cells on the map. Why do you think it's incorrect?

Changan

tessavdheiden commented 4 years ago

Hi Changan,

You are right, I thought you wanted to do something in the image (lower part), but yours (upper part) is also correct! grid