-
Notifications
You must be signed in to change notification settings - Fork 505
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
refactor navmesh_utils SimpleVelocityControlEnv and de-duplicate #1970
refactor navmesh_utils SimpleVelocityControlEnv and de-duplicate #1970
Conversation
…ward. Refactor full stack to de-duplicate implementation.
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
linear_velocity = vel[0] | ||
angular_velocity = vel[1] | ||
# Map velocity actions | ||
self.vel_control.linear_velocity = mn.Vector3( | ||
[0.0, 0.0, -linear_velocity] | ||
[linear_velocity, 0.0, 0.0] |
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.
hi alex, do you know why we do this at first place?
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.
why [0.0, 0.0, -linear_velocity]?
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.
Originally, this was aligned with Habitat's coordinate system. Typical Agent "forward" direction in local space is -Z.
In this PR I unified the treatment to use the X-forward convention of the articulated_agent
…ebookresearch#1970) * refactor navmesh_utils SimpleVelocityControlEnv to conform with x-forward. Refactor full stack to de-duplicate implementation.
…ebookresearch#1970) * refactor navmesh_utils SimpleVelocityControlEnv to conform with x-forward. Refactor full stack to de-duplicate implementation.
…ebookresearch#1970) * refactor navmesh_utils SimpleVelocityControlEnv to conform with x-forward. Refactor full stack to de-duplicate implementation.
Motivation and Context
SimpleVelocityControlEnv and similar utils were duplicated with minor convention differences. This PR unifies the conventions and imports a single implementation in the oracle nav skills.
How Has This Been Tested
CI
Types of changes
Checklist