-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best way to reassign missions to different agents? #1859
Comments
Hello @ajlangley, there is not a current standard way of managing permutation. This is an issue we have been deferring. Current issueI assume that the
With respect to your considerations:
Future approachesWe had also considered future solutions to make the missions less mysterious.
|
The way I expected for agent mission reassignment to work would have been that calling an environment's As for what would be the best option out of the possible directions for this that you gave, wouldn't 3 require the person designing the scenario to essentially hard code the number of agents that will be in it? This seems undesirable if it is in fact the case. I think 2 may be the best option, and the agent to mission mapping could optionally be passed to the |
To correct myself, I was still thinking in regards to the
We install
Since our intention is to move over to using
I think this is possible in the short term to simplify scenario modification. |
I see. Thanks for the discussion. By override, do you mean that upon calling |
Here's a thought: For reference, I'm looking at line 275 in
|
With the current intended change the scenario could be passed on
This is mostly reasonable. The main issue that I see with this approach is that reset is contained. In the case that there are multiple scenarios (e.g. It might just be possible if there was something like |
Yeah, the proposed change definitely makes sense. I suppose one could just create a wrapper around the I agree with the issue you raised about the code snippet I gave. This is definitely better. |
I have added an issue to rectify issues with the internal permutations generated by the SMARTS scenario. |
High Level Description
I created a four-way intersection scenario and made a gym environment using
HiWayEnv
. Given n agents an m missions, I'm trying to find the best way to randomly assign different missions to different agents each episode.Desired SMARTS version
1.0.3
Operating System
Ubuntu 20.04
Problems
The first issue is that it looks like
HiWayEnv
expects one of:The case of m != n seems a little more complicated, so let's assume m == n. The ways I've thought of shuffling the missions are
env.scenario._missions
manually onreset()
(don't know if this works),SMARTS
simulator directly and creating a newScenario
object on reset with the desired mission assignment.I feel like 1 is hacky, 2 is messy, and 3 is most likely inefficient. Is there a preferred way to do this?
The text was updated successfully, but these errors were encountered: