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

[esp/agent] rename lookLeft/Right to turnLeft/Right #269

Merged
merged 3 commits into from
Oct 4, 2019
Merged

Conversation

msbaines
Copy link
Contributor

@msbaines msbaines commented Oct 3, 2019

lookLeft is not correct. We are actually turning the agent body.
Since only SimulatorWithAgents is using this it should only
affect WebGL. Fixed a bunch of places where Agent.h was included
but not used in order to confirm that only WebGL was affected.

Motivation and Context

I want to clean up and rationalize actions in Agent.h before adding lookUp and lookDown.

How Has This Been Tested

Verified that turning still works in WebGL demo.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

lookLeft is not correct. We are actually turn the agent body.
Since only SimulatorWithAgents is using this it should only
affect WebGL. Fixed a bunch of places where Agent.h was included
but not used in order to confirm that only WebGL was affected.
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 3, 2019
@mathfac
Copy link
Contributor

mathfac commented Oct 3, 2019

Looks like more things need to be changed: https://github.com/facebookresearch/habitat-sim/search?q=lookLeft&unscoped_q=lookLeft.

@erikwijmans
Copy link
Contributor

Looks like more things need to be changed: https://github.com/facebookresearch/habitat-sim/search?q=lookLeft&unscoped_q=lookLeft.

Those are fine. The difference between a lookLeft and turnLeft isn't the implementation, its whether or not it operates on the agent's body or on the sensors.

@msbaines
Copy link
Contributor Author

msbaines commented Oct 3, 2019

Looks like more things need to be changed: https://github.com/facebookresearch/habitat-sim/search?q=lookLeft&unscoped_q=lookLeft.

All the ones that are relevant should now be addressed.

@msbaines
Copy link
Contributor Author

msbaines commented Oct 3, 2019

Those are fine. The difference between a lookLeft and turnLeft isn't the implementation, its whether or not it operates on the agent's body or on the sensors.

I agree. That's why I'm making this change. In the cases I've addressed with this change, we were moving the agents body and calling it lookLeft.

@msbaines
Copy link
Contributor Author

msbaines commented Oct 3, 2019

Those are fine. The difference between a lookLeft and turnLeft isn't the implementation, its whether or not it operates on the agent's body or on the sensors.

I agree. That's why I'm making this change. In the cases I've addressed with this change, we were moving the agents body and calling it lookLeft.

To handle look, we should make the sensor a separate node (that is a child of the agent node) in the scene graph if that is not the case already.

@erikwijmans
Copy link
Contributor

To handle look, we should make the sensor a separate node (that is a child of the agent node) in the scene graph if that is not the case already.

Yep, that is exactly how it is done :)

@erikwijmans
Copy link
Contributor

I agree. That's why I'm making this change. In the cases I've addressed with this change, we were moving the agents body and calling it lookLeft.

Yeah, we made this change on the python side, but never put it into cpp

@msbaines msbaines merged commit bee05cd into master Oct 4, 2019
@msbaines msbaines deleted the turn branch October 4, 2019 14:28
Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
…#269)

lookLeft is not correct. We are actually turn the agent body.
Since only SimulatorWithAgents is using this it should only
affect WebGL. Fixed a bunch of places where Agent.h was included
but not used in order to confirm that only WebGL was affected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants