Skip to main content

Simple gym environment for multiple agents to chase multiple (dumb) targets

Project description

PyPI - Package Version PyPI - Python Version PyPI - License codestyle

Introduction

This is a simple gym environment that sets up a set of robots and targets for them to chase. These targets are dumb, they simply move at a constant speed and bounce off the “limits” of the simulation environment. The intention is that the robots will chase after these targets, and switch to a new target after catching their current one. The targets are “transparent” and robots are free to ignore “avoiding them”, the intention is that they avoid each other. An example of a simulation with robot controller is shown below.

misc/example_sim.gif

Usage

Since this uses the gymnasium, you can spin an environment up same as any other env, and you can use our optimized planner. A script is included that shows of this planner and environment when you install this library `chasing-targets-example --max-step=500`.

from gymnasium import Env, make
from chasing_targets_gym.planner import Planner

env: Env = make(
    "ChasingTargets-v0",
    render_mode="human",
    n_robots=10,
    n_targets=3,
    robot_radius=0.1,
    max_velocity=0.5,
    target_velocity_std=0.5,
    max_episode_steps=1000,
)

planner = Planner(
    env.get_wrapper_attr("robot_radius"),
    env.get_wrapper_attr("dt"),
    env.get_wrapper_attr("max_velocity"),
)

Installation

Either you can clone and pip install the source, or you can install via pypi.

git clone https://github.com/5had3z/chasing-targets-gym && cd chasing-targets-gym && pip3 install -e .

Otherwise install pypi package

pip3 install chasing-targets-gym

Some Credit

I was pointed to a basic environment here but it didn’t really match what I wanted, so I made my own based off this.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chasing_targets_gym-0.0.8.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

chasing_targets_gym-0.0.8-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (102.5 kB view details)

Uploaded PyPy manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

chasing_targets_gym-0.0.8-cp313-cp313-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ x86-64

chasing_targets_gym-0.0.8-cp313-cp313-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ i686

chasing_targets_gym-0.0.8-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (103.9 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

chasing_targets_gym-0.0.8-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl (129.1 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ i686

chasing_targets_gym-0.0.8-cp312-cp312-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

chasing_targets_gym-0.0.8-cp312-cp312-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

chasing_targets_gym-0.0.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (103.8 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

chasing_targets_gym-0.0.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (129.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

chasing_targets_gym-0.0.8-cp311-cp311-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

chasing_targets_gym-0.0.8-cp311-cp311-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

chasing_targets_gym-0.0.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (104.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

chasing_targets_gym-0.0.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (129.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

chasing_targets_gym-0.0.8-cp310-cp310-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

chasing_targets_gym-0.0.8-cp310-cp310-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ i686

chasing_targets_gym-0.0.8-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (103.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

chasing_targets_gym-0.0.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (128.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

File details

Details for the file chasing_targets_gym-0.0.8.tar.gz.

File metadata

  • Download URL: chasing_targets_gym-0.0.8.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for chasing_targets_gym-0.0.8.tar.gz
Algorithm Hash digest
SHA256 cb32fc45a63d3c50d7ec68d76aa2bf08ad1a26c3b0e880fdfa56f696a4d36e1a
MD5 9637b0b83c2f4177d2ce7c2e54d952df
BLAKE2b-256 7ef7dc984e53657ec6ea185f37f4da78ecc18712d88bc6aa78ea54e4f1bb8ddc

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 12b5cc7526bfee9300445a395888a5fe0964bbd6270a71f140b1d2b6ca34a0ca
MD5 02ec3deffa815c7c23f62db433421c10
BLAKE2b-256 755dcbf5faecb3ff2756b6d316dd109d1271180b2db6d08d783cc882c5a1dbfd

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 fe67fa3e3da41146f61cb7197a2049ccf94eaf9d1a2375d3bdf40061a6f030c0
MD5 f9f0d05d39da7c61dec24133e1c24cb7
BLAKE2b-256 179b0fff36b3392f2744dc82a60cb283e9b4c93fb9968735c04f3af88f3e2ea5

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f7b65cb6c1454994f2f3edba5895056f41bd8d33708214b046c7e6db717d9f1d
MD5 61b9526776dc3553dbd59c33b3740200
BLAKE2b-256 195c86d5a0210b5d9e9bf548af9c5bf03923d4d3504829476009d4a989582f61

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp313-cp313-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp313-cp313-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 4c8d3daedf737d7f71fd37be1cc8c90d19c19b6dc99e3e00bf6d2418d4b08389
MD5 c9dce4616cfcae2cf2365566d8663368
BLAKE2b-256 fd1b0516a932e48d870d349ef9194ef980b8098ee5322cd39800ca7ca71e7137

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 de71c5fde8a300174c86d8c1af22ae6619feddb98cf0526df12a89ad375d7291
MD5 d4345f4d8c6292830106d52f3c3a38ee
BLAKE2b-256 2b450129405368f62929a72ceffb17de14b8ee20a81efa1b0a40854f63e24fd0

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3db622bb61d035e9ed4996f82941441bfb311c544af60902d65eb8acd760ad1b
MD5 960e38849f0fba111f5a062d2db59826
BLAKE2b-256 6b9df55159f0a26522b7cc67aa5010d44fbdbf1c8137b0892a731c5f5784a05e

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 958318aa541f39d9380464c9a8a135f73d39870bc1034912d257fc48aa8a63a0
MD5 23a727a38d81e21dce40dc85744a03e2
BLAKE2b-256 101ceb241a1bcb399d84dbd4da8c729b7414f2243b064f59540981d191124bff

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 f1564417a2051f435e870842fa64612f3305fadd338e3fd68508b0829a6fb8fb
MD5 f9724d0df94bbe83fd2ae937587983a2
BLAKE2b-256 bbabb814852e621f1bc4bec39789d87bdafeabaa76e66825daf6d3c072011be5

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 91f973faf4dd506d3a6492eab85dc77c88b63eb733e8aa09ea93cbccd2b1c8aa
MD5 4d96fba18bdaf22069afbf8eb259e8a9
BLAKE2b-256 5e7fb354a3c7c84c7fa558e488deaac404f976278f6e637f8c3b8c93fae18fa2

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 54013e07608fc1188435d6b37ed4210b3174bdcef27559acc7bc855a57900aba
MD5 5aec97fda015ed76bcd130c62dde0e91
BLAKE2b-256 01ef979a1c44b7291dd66ead56141c9c2faf08ea66da828a2558a30d858930c0

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cffff9b82f94d4976702fe13c59b256d936b6bc6d1ea7e636a8415d524f9cb57
MD5 926d9e63b0889762cf01a692b6268fc1
BLAKE2b-256 855efac662418b6731c66ec2b292ba6eecec4c5b82e1f390f4f02ea9b2053b72

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 aa5543397b8f80a13f303179802a6b5e2ecee46b2e5f7a5fcab3d85fdbc53b8a
MD5 97c270eaeb3579fa97246037b95fd8cd
BLAKE2b-256 6d0001db22c28cc7716a498f6d1060c26b96b712c64d645977afbdb2dab69e0d

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e839d48438c3dad13a81d063b07a720ba9bf81be7131d2ef30c9601dfa009d56
MD5 488936b5f2cf647924bfe9cb837b82ea
BLAKE2b-256 64ce19e73e15272dcbad7ec225c6a7d92f59f06a2ca891fefe92c48d926081f0

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 8e45742577b894eae79beec4e942ef1f0b3387dc76b88fae5b54ebd06a80c95a
MD5 842c360d512d1e30750fccb88d96ff4c
BLAKE2b-256 6d7523aaca71ca9fe344e5692797993e30d2659527f5f9cb876a1abf7664ecbd

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8c011a1d2aff6b074702f0875f20c2f2d97ec54088f188dad3f9a4b8533d744e
MD5 553e2a43697d5ce789431501433bb24e
BLAKE2b-256 614d24ba7e74f6517316b94dde577682003637d2e93c4376ecc6517a615c62be

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp310-cp310-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c2b0fa239565beb756ee7ae1c63c400454e6106bf5567f3d9f2e6632f19ebb90
MD5 828fd07e5b2b6d6cd3f6a7b908a95725
BLAKE2b-256 81c4bdb50751c443f9668a654b471fc77a2e02c79c60282c4426a45ab5a5e34c

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c9b55014254c6063afbb898f95ba2d32486b4ded72995acff9840fd47e823be6
MD5 ba2f8138ae79678b1319dae5de65954f
BLAKE2b-256 692a1d63c20aa024124b09e4239f5ec5fe97ba7f1fddcd5091ef4aa2663f3f6c

See more details on using hashes here.

File details

Details for the file chasing_targets_gym-0.0.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for chasing_targets_gym-0.0.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 43bbc831cb120714bc9859be0284065d21c3497ed40192b57e2cbbe9b19b0040
MD5 77f6629115406978a8a60cbdf8bc0fb3
BLAKE2b-256 2d48f990e54acd1f0854855eae87af37fc449b3bcf6b067316c1e052eeeff918

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page