Skip to main content

phyelds-webots

Webots integration for phyelds: run aggregate programs on the robots of a Webots simulation. One controller runs on any robot, and programs read and write the same sensors and actuators as on ARGoS.

Installation

Install it in the Python that Webots runs the controllers with (Python 3.12, 3.13 or 3.14):

pip install phyelds-webots

The controller module comes with Webots.

Usage

Give each robot an Emitter and a Receiver: the range of the emitter decides who the neighbors are, and the receiver measures how far they are. Write the program:

from phyelds.calculus import aggregate
from phyelds.libraries.device import label, source
from phyelds.libraries.distances import neighbors_distances
from phyelds.libraries.spreading import distance_to


@aggregate
def main():
    distance = distance_to(source.sense(), neighbors_distances())   # metres, without GPS
    return label.send(f"{distance:.2f}m")

The controller of every robot is controllers/phyelds_controller/phyelds_controller.py:

from phyelds.webots import main

if __name__ == "__main__":
    main()

and the world names the program, next to the controller, and its options:

controller "phyelds_controller"
controllerArgs [ "gradient:main" "--source" "source" ]

With an InertialUnit the robot also senses its heading, the vectors to its neighbors and, with distance sensors, the obstacle; --gps adds its position. The led output colours its LEDs, and the velocity output drives its wheels, given --wheel-radius (and --wheels, if its motors have other names than left wheel motor and right wheel motor). The e-puck, Elisa-3, Khepera III and IV, Thymio II, Create and Pioneer 3-DX are tested in Webots, with the arguments each needs listed in the documentation. AggregateController and Body are there for a controller of your own.

See the documentation.

Metadata

Release files for phyelds-webots 10.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phyelds-webots 10.4.0
File Size Uploaded Provenance Actions
phyelds_webots-10.4.0.tar.gz 8.3 kB Without provenance Details for phyelds_webots-10.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phyelds-webots 10.4.0
File Interpreter ABI Platform Actions
phyelds_webots-10.4.0-py3-none-any.whl Python 3 none any Details for phyelds_webots-10.4.0-py3-none-any.whl

Total release size: 18.6 kB

Release files / phyelds_webots-10.4.0.tar.gz

Download URL phyelds_webots-10.4.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
760d6d3b3624d4de8b01e1f18b590a70a065b67711f7f3d10526e3172faa9ae2
BLAKE2b-256 checksum
How to use checksums
78bde0ed07983d1fa5e9e95aecf8460a39d1489f7c76d74fd320d5d38d785182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.0 CPython/3.13.18 Linux/7.0.0-1020-azure

Release files / phyelds_webots-10.4.0-py3-none-any.whl

Download URL phyelds_webots-10.4.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aa5d91a460d21e1d0c5382a5c581d912bb1b4669a1ea6c83d51d8cf595c9bc3
BLAKE2b-256 checksum
How to use checksums
31195f533fc7c2b0475e53e4210bac7bb5f56f6742e24188209496cf7e392118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.0 CPython/3.13.18 Linux/7.0.0-1020-azure

Security for phyelds-webots 10.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.4.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page