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

Teleport on agent done #121

Merged
merged 6 commits into from
May 23, 2024
Merged

Teleport on agent done #121

merged 6 commits into from
May 23, 2024

Conversation

aaravpandya
Copy link
Collaborator

@aaravpandya aaravpandya commented May 14, 2024

As Title.
rebased on #126 to fix the position where they get teleported to.

@aaravpandya aaravpandya marked this pull request as ready for review May 14, 2024 22:35
@daphne-cornelisse
Copy link
Contributor

Do these pass the pytests? If so, and this is reviewed, I'd like to merge this sometime today for training agents

Comment on lines +292 to +296
position = consts::kPaddingPosition;
velocity.linear.x = 0;
velocity.linear.y = 0;
velocity.linear.z = 0;
velocity.angular = Vector3::zero();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand why you zero-out velocities here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't seem to be necessary but also doesn't hurt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. It's just to be explicit. In the future, when we remove the agentZeroVelSystem, it would be useful to make sure velocities are zero.

@aaravpandya aaravpandya merged commit 813a3a8 into main May 23, 2024
1 check passed
@aaravpandya aaravpandya deleted the ap_TeleportOnDone branch October 4, 2024 03:20
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.

4 participants