Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b898b522 authored by AUTERNAUD Alex's avatar AUTERNAUD Alex
Browse files

debugging group mode

parent e1d5976f
No related branches found
No related tags found
No related merge requests found
......@@ -91,8 +91,8 @@ class GoalFinder():
print("Target human not in sight")
if sh_goto_target_group_id[0]:
if sh_goto_target_group_id[1] in group_ids:
idx = group_ids.index(sh_goto_target_group_id[1])
target = ('group', idx) # type, group id
gr_idx = group_ids.index(sh_goto_target_group_id[1])
target = ('group', gr_idx, sh_goto_target_group_id[1]) # type, group index, group id
else:
print("Target group not in sight")
......@@ -148,7 +148,7 @@ class GoalFinder():
elif target[0] == 'group':
print('target', target)
center = [sh_groups[target[1], 0], sh_groups[target[1], 1]]
persons = humans[humans[:, -2] == target[1], :]
persons = humans[humans[:, -2] == target[2], :]
print('group : center {}, persons{}'.format(center, persons))
goal = ssn.calc_goal_pos(
f_dsz=f_dsz,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment