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
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
Built Distribution
File details
Details for the file webots-web-log-interface-0.2.5.tar.gz
.
File metadata
- Download URL: webots-web-log-interface-0.2.5.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/5.14.14-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7273b3886f3db8941285eb11c582f09cd378bd342e6290c1ac6c1f6b04e825ee |
|
MD5 | e7e78eac9843b4d9a54a9c06cda4cb64 |
|
BLAKE2b-256 | 69677841c0cf5d09ac170adb94abf74c78306b79c01406fd7d1e3ceeb78e4965 |
File details
Details for the file webots_web_log_interface-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: webots_web_log_interface-0.2.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/5.14.14-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b5d4711f9779a3cfff684283514202c083c62bab67438d7753aaef2e8691239 |
|
MD5 | 52ba5433fccb737bb6909aaddbf7a38a |
|
BLAKE2b-256 | 3fa36c52c1f76ae6ad65d1e2c04d091bedb3bd147c3305f6674050ebbb633606 |