Skip to main content

A python library used to interact with webots robocup game web logs

Project description

Webots Web Log Interface

A python library used to interact with webots robocup game web logs

Installation

pip3 install webots-web-log-interface

Documentation

You can find the interface documentation here.

Examples

Download example data

mkdir data
cd data
wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.json
wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.x3d
cd ..

Now you are able to use the interface

from webots_web_log_interface.interface import WebotsGameLogParser

gp = WebotsGameLogParser(log_folder="data")

# Now some examples
# Get ball
ball = gp.x3d.get_ball_id()
# Get velocities for ball
print(gp.game_data.get_velocity_vectors_for_id(ball))
# Get player names
print(gp.x3d.get_player_names())
# Plot player paths
gp.plot_player_paths()

Build it yourself

git clone https://github.com/bit-bots/webots-web-log-interface.git
cd webots-web-log-interface

poetry install
poetry shell

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

webots-web-log-interface-0.2.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file webots-web-log-interface-0.2.2.tar.gz.

File metadata

  • Download URL: webots-web-log-interface-0.2.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.14.14-arch1-1

File hashes

Hashes for webots-web-log-interface-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6cac003b97a65d88c5dde540b0b1a7ac98a3105b6f00ce362c641c64d61f8dff
MD5 0c152155e5b02beb7e6d1702808a3d87
BLAKE2b-256 6d974f368b4c8663684c992fb20059427f35543679c728fa5b32f4728fba79df

See more details on using hashes here.

File details

Details for the file webots_web_log_interface-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for webots_web_log_interface-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04b341c6d4bd6760072277916314aa56c96edd7436957660b9226550c173725e
MD5 75c681dcd953f4f31fe04573367a0b87
BLAKE2b-256 7683ac75de4284a0d07a155f48f651c77429a11f187595f95a669e89d9ab2f10

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