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. If installing from source seems to stall for no apparent reason, try –no-build-isolation.

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.1.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chasing_targets_gym-0.1.0-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (119.8 kB view details)

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

chasing_targets_gym-0.1.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (144.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ i686

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

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

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

Uploaded CPython 3.13musllinux: musl 1.2+ i686

chasing_targets_gym-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (120.6 kB view details)

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

chasing_targets_gym-0.1.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl (144.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ i686

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

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

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

Uploaded CPython 3.12musllinux: musl 1.2+ i686

chasing_targets_gym-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (120.6 kB view details)

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

chasing_targets_gym-0.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (144.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ i686

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

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

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

Uploaded CPython 3.11musllinux: musl 1.2+ i686

chasing_targets_gym-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (121.0 kB view details)

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

chasing_targets_gym-0.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (144.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

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

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

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

Uploaded CPython 3.10musllinux: musl 1.2+ i686

chasing_targets_gym-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (119.2 kB view details)

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

chasing_targets_gym-0.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (142.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

File details

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

File metadata

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

File hashes

Hashes for chasing_targets_gym-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d87b9f3533fb8bf007516faed8faaee367a01b75e25d4f88a59012e173a0fd51
MD5 cb4d8e96108637dfec984fd227ea1e46
BLAKE2b-256 8f54e824e6a76d0632980a75593987a3925a18c836aece7d514061a45432fe03

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0.tar.gz:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cc11011f3438ce0993bf26006e8accec6461613fbdb22c8f6602c36a15189850
MD5 f40b0edac7a6c8c69b44293003bc2504
BLAKE2b-256 f10f47c64133d52eb3eac9a19a6234866a94b6adcf06bbb356f05aede4f11b8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 8e3e1a7663563a6755fb5c90405619dc70dd9853701df5335e6606dbd35585e4
MD5 d123f3348a5793b2cf838839da7adcc4
BLAKE2b-256 488f2414e0cf3a738b647304df0abf4304cd8e75125c60ebb27f8b2fcb3ad2c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bc539a306869b2533f8ec8e631b8eef7f1ea0f068942111b8a9a304d63c20660
MD5 7cc1daeaca367454ba89048847ca1e11
BLAKE2b-256 14b6f8686dbf06325fdce30252de938d3426638f7047792336b5f5af531c3130

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp313-cp313-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 488df558dfa54effc06c567f16666eb74f3a736e59554bb24ef4a7abd0fbac37
MD5 68d3004e060b0188d03b978cb6b2cebf
BLAKE2b-256 a7804f3984ccc21b900f1b02e5927ce04f90e32fb8156645e8558ba323dbf9dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp313-cp313-musllinux_1_2_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c29997324a9f53eb69bfb6f11348a8246c38082d52882bb4406ba8cedeacd269
MD5 74a5354f1afdb0d3ee20118659d700b3
BLAKE2b-256 91f5649542e1129d9e4958880c245f6adb3018d58e9283f67741e2409b641c81

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 8741b9e733ec6f8ba55ca551560537b5851a8476e469f4c90cdd9fe9a03e2f57
MD5 2d68b2d74084562454816446d9fa7e79
BLAKE2b-256 0defd5672e52eeabf2269362a6b1a57c96c560b992363617a5be30f8b681c46a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b7c253ecaf2d22bd113dbf69f92869ccdeb7df9bfd6dbe0bd57eac27fcc673b1
MD5 792588e1fc525a80f965b3627ff67b4e
BLAKE2b-256 d9fc6288e2263730b41939df32ed7dab2f974b3a6e8fafc1d21e219fc122dd55

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 237c1f44a0381bdbb051ee49b2d85f4b8e4028c1966bc53ffca1a2feda88b663
MD5 05c18ef511f3139ef5a233562794b875
BLAKE2b-256 09d8cba9f8ad4a3f469a7c8adc6ffb0aeddb008d3589f2c8719df94091193827

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp312-cp312-musllinux_1_2_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 348712cae15739c0fe7aff6e113b4dd278e1d642317829c6c53580806ca385b9
MD5 455e8376ca9dcdff223eb86358539836
BLAKE2b-256 3cc3d2044540a4e8988c86728c54bd48d00574e781d8f91f4fa4aca47637179b

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e65039663d39cae945d7609f0ecb8fb1dcea6126ee2de82f9c095571b91de0ec
MD5 d6780c6cbf79761bcb030f1d289b6728
BLAKE2b-256 11a7072bc89aa332d403cc4f8b600b5d6782c2c6e433a8dfdcc3d4b0640ce6ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9ec84b85bfb5b5175ac2467850dbe5605a4eff5bef6395d5f06111ba8a9332a9
MD5 e1bb1d9f3407626edc0e075483e5c026
BLAKE2b-256 ebfc9e610861efe905d36bc950d3e3d3cea91e530b8fcf4174596da0e43153c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 4c9d7c8807477cac6f545a95c94e9cd665d73b2133e74cadd5bd827b64c04ff3
MD5 0fc1a111073757387801f15485625de7
BLAKE2b-256 ce5e2f7f2b5b5f11cef165836d44a562a29b29e74e09a72314593dc497719f5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp311-cp311-musllinux_1_2_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7aa247034488bf3b404c198e094f7b04aabf84b3ce90d679ef3ea8831b08c847
MD5 bb615d3019bf7663c832b557529467ad
BLAKE2b-256 048ab6cd7bc96633f793287ffde3e2781b23061f78852c9df67215c022ea7c78

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ea841cfbb27292cbea94b4c383e8f08b9326657ce901e81d8de6babcbc628732
MD5 ea737090ba6d1ff3208c6e3abb46d100
BLAKE2b-256 bfe16beb5d2635b9d93abd59c082942d345545b0796feb8327d0c913d464ba11

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aa40905f3f95af02e0ed2dabbf102c993323d2dea47e519799d6691ae71c2adf
MD5 ca9cd976d05730f90bf52cfb64977089
BLAKE2b-256 64893aa49e414591943786f5367db41fce0543162839f8b5e8ecf365eb28cc8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 1222f8a450d8e67817e2a056d14395a690a410921505de5a5ed7a651de1c32e5
MD5 a7daf61963d3bd835de69af38e4cfb58
BLAKE2b-256 d75875e85fb763e36b12f84d5db65dd057c2b95c554f8e9dfe3eef422e705c43

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp310-cp310-musllinux_1_2_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fee4e6404a73d0e3608eef75252475ad935653ed2b3e86f832cd82b2d1515da6
MD5 76ac092cc69ef49f8e6cd8705a145b6d
BLAKE2b-256 17ede866f5a019a638c6d9f44a8a3bae5aa235c582d8c77c04df04db677214f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for chasing_targets_gym-0.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 84250d1de146e866ee98be4c0c59d73b6ac9671affe9d95590bbfabbe272709f
MD5 7cb15d298b4f9891ad441f32e0dc9062
BLAKE2b-256 4439b91ffed8317c74a8f2eae16832e28fd1dffc2eba1239cd532e802df954c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for chasing_targets_gym-0.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: wheels.yml on 5had3z/chasing-targets-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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