2D Navigation Gym Environment
Project description
2D Navigation Gym Environment
This repository implements a Gym environment for simulating simple 2D navigation scenarios.
Installation
Activate a virtual environment or a conda environment. Then, run the following command:
pip install nav2d
Use cases
The building blocks in this toolbox are Point, Vector, and Polygon defined in nav2d.assets.elements.
- Point:
p = Point(x, y),p.posis anp.array. You can add aVectorto aPointto make it a newPoint. - Vector: inherits from
Point. You can apply various algebraic operations toVector. Many operators are overloaded there, e.g.,sum(List[Vector])gives you a singeVector.Vectorhelps you manipulate multiple movements. - Polygon:
zone = Polygon(List[Point]). Given a zone and a point,zone.point_relative_pos(p)tells you their relative positionIN | ON | OUT. APolygonis defined by its vertices (Points).
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nav2d-0.0.2.tar.gz
(13.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nav2d-0.0.2-py3-none-any.whl
(13.7 kB
view details)