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

Observation and agent are rotating in the opposite directions #192

Open
rzayanov opened this issue May 22, 2021 · 0 comments
Open

Observation and agent are rotating in the opposite directions #192

rzayanov opened this issue May 22, 2021 · 0 comments

Comments

@rzayanov
Copy link

rzayanov commented May 22, 2021

I've created a simple agent that always chooses the MOVE_UP action.

When the agent starts in the UP or DOWN orientation and moves, all the objects in the observation space "go down", as expected (i.e. their Y coordinates increase).

However, when the agent starts in the LEFT or RIGHT orientation, all the objects "go up".

A similar horizontal inversion happens when the agent always chooses MOVE_LEFT.

In other words, instead of rotating with the agent, the observation seems to rotate in the opposite direction. Is this a part of the design?

This direction of the rotation can be changed by swapping the rot90() arguments of the LEFT and RIGHT if branches in the color_view() function.

@rzayanov rzayanov changed the title Swap rotated_view for LEFT and RIGHT orientations Observation is flipped vertically when orientation is LEFT or RIGHT May 22, 2021
@rzayanov rzayanov changed the title Observation is flipped vertically when orientation is LEFT or RIGHT Observation is rotated 180° when orientation is LEFT or RIGHT May 22, 2021
@rzayanov rzayanov changed the title Observation is rotated 180° when orientation is LEFT or RIGHT Observation and agent are rotating in the opposite directions May 22, 2021
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

1 participant