Skip to content

Teleport on agent done#121

Merged
aaravpandya merged 6 commits into
mainfrom
ap_TeleportOnDone
May 23, 2024
Merged

Teleport on agent done#121
aaravpandya merged 6 commits into
mainfrom
ap_TeleportOnDone

Conversation

@aaravpandya

@aaravpandya aaravpandya commented May 14, 2024

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor

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

Comment thread src/sim.cpp
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@aaravpandya aaravpandya deleted the ap_TeleportOnDone branch October 4, 2024 03:20
wangbingke0 pushed a commit to wangbingke0/gpudrive that referenced this pull request Feb 13, 2026
* Teleport on agent done

* get check collision event

* Changed the padding position
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