You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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
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
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 RIGHTif
branches in thecolor_view()
function.The text was updated successfully, but these errors were encountered: