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

Clarification #62

Closed
koriavinash1 opened this issue Apr 17, 2019 · 1 comment
Closed

Clarification #62

koriavinash1 opened this issue Apr 17, 2019 · 1 comment

Comments

@koriavinash1
Copy link

Can anyone please help me in understanding the difference between 'pointgoal' in observation and self._env.current_episode.goals?
observation['pointgoal'] \in R^2 while target_goals \in R^3, what are each of them?

@erikwijmans
Copy link
Contributor

erikwijmans commented Apr 17, 2019

The goal in current_episode.goals is the 3D position of the point goal in world coordinates. The 2D pointgoal observation is the 2D position of the point goal in the agent's egocentric coordinates (by default, this is also converted to polar coordinates as that leads to much simpler hand-coded logic).

So observation['pointgoal'] = xyz_to_2d_polar(R_agent_world * (current_episode.goals[0].position - agent.position)). See the code here: https://github.com/facebookresearch/habitat-api/blob/master/habitat/tasks/nav/nav_task.py#L181

@abhiskk abhiskk closed this as completed Sep 8, 2019
dhruvbatra pushed a commit that referenced this issue May 10, 2020
* Stereo agent example

* Add test

* Add some comments

* Render at 256

* Smoke test more

* Mark as gfx

* Typos, BGR vs RGB, and get ready for multiple examples to test!

* Little change

* Rename

* Nits
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

No branches or pull requests

3 participants