Skip to content
Snippets Groups Projects
Commit 028d22be authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

agent and target placement

parent 3dbdc57f
No related branches found
No related tags found
No related merge requests found
......@@ -753,7 +753,7 @@ def realistic_rail_generator(nr_start_goal=1, seed=0):
add_pos = (int((start[0] + goal[0]) / 2), int((start[1] + goal[1]) / 2))
agents_positions.append(add_pos)
agents_directions.append(np.random.choice([3, 1]))
agents_directions.append(3)
add_pos = (int((start[0] + goal[0]) / 2), int((2*start[1] + goal[1]) / 3))
agents_targets.append(add_pos)
......
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