Skip to content

Observation and agent are rotating in the opposite directions #192

@rzayanov

Description

@rzayanov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions