-
Notifications
You must be signed in to change notification settings - Fork 112
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
Merge for P2 #101
Merge for P2 #101
Conversation
…not implemented; task randomization not implemented; random reset not properly implemented;
… to fix initial agent position and TEST TEST TEST
…er sensors; chasing opponent
…angefinders and heightmap observation; TODO more patches
…ition and get_lose_condition separately for chase and evade tasks; changed fallen condition
@@ -156,7 +156,7 @@ def chase_player(self): | |||
new_vec = np.array([np.cos(theta), np.sin(theta)]) | |||
new_vec2 = pel - vec | |||
vel = np.dot(new_vec, new_vec2) | |||
return np.array([1.0, vel]) | |||
return np.array([self.rng.uniform(1, 5), vel]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elladyr is this wanted here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to set vel per reset, not sample it everytime in this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me correct that too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sample chaser velocities corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merge for Phase 2 environments