Skip to content
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

Merged
merged 27 commits into from
Oct 6, 2023
Merged

Merge for P2 #101

merged 27 commits into from
Oct 6, 2023

Conversation

elladyr
Copy link
Collaborator

@elladyr elladyr commented Oct 5, 2023

Merge for Phase 2 environments

P-Schumacher and others added 24 commits September 28, 2023 13:30
…not implemented; task randomization not implemented; random reset not properly implemented;
… to fix initial agent position and TEST TEST TEST
…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])
Copy link
Collaborator

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?

Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sample chaser velocities corrected.

Copy link
Collaborator

@Vittorio-Caggiano Vittorio-Caggiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vittorio-Caggiano Vittorio-Caggiano merged commit 24cd961 into MyoHub:dev Oct 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants