Skip to content

Commit

Permalink
corrected the construction of occupancy map with index of humans for …
Browse files Browse the repository at this point in the history
…channel size = 3
  • Loading branch information
tessavdheiden committed Sep 7, 2019
1 parent d116523 commit 9f3071f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crowd_nav/policy/multi_human_rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def build_occupancy_maps(self, human_states):
dm[2 * int(index)].append(other_vx[i])
dm[2 * int(index) + 1].append(other_vy[i])
elif self.om_channel_size == 3:
dm[2 * int(index)].append(1)
dm[2 * int(index) + 1].append(other_vx[i])
dm[2 * int(index) + 2].append(other_vy[i])
dm[3 * int(index)].append(1)
dm[3 * int(index) + 1].append(other_vx[i])
dm[3 * int(index) + 2].append(other_vy[i])
else:
raise NotImplementedError
for i, cell in enumerate(dm):
Expand Down

0 comments on commit 9f3071f

Please sign in to comment.