FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Movement Orientations? · Issue #449 · aimacode/aima-python · GitHub

Repository navigation

Movement Orientations? #449

Description

In grid.py there is a set of orientations, defined as follows:

orientations = [(1, 0), (0, 1), (-1, 0), (0, -1)]

I snooped around a bit, but I couldn't find what these mean. From my understanding they are showing where the current agent is looking in a 2D plane (Forward, Backward, Left, Right). I don't know though which is which. It would be nice to have this documented.

PS: I believe (0,1) is forward, (0,-1) back, (1,0) east and (-1,0) west, since that's how I've encountered it in literature. Not sure if this is the case here too though.

Activity

  1. rodrigogiraoserrao commented on Mar 30, 2017

    I am not familiar with the literature but let me just say that that is definitely what makes more sense, if you think of two-dimensional vectors in mathematics.

    The vector (1,0) points east, the vector (0,1) points north/up, the vector (-1,0) points west and the vector (0,-1) points south/bottom.

  2. antmarakis commented on Mar 31, 2017

    CollaboratorAuthor

    The page jumped and I accidentally closed this. Sorry.

    I used the above orientations to add to the grid notebook. The PR is #459.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL