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
Close
Hashes for webots-web-log-interface-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d806b909270be2b74ce2ba076897cde78d550ff863af78443d475c78e08fcc2 |
|
MD5 | e736df5647c70906fa6a729427cbd3d9 |
|
BLAKE2b-256 | a125e0b8f528c5c7574b9495ec8d5d7437be1a82f3ec65e749839a05b99cac9a |
Close
Hashes for webots_web_log_interface-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a222b2e8fa3c887c32825c53fa537f8ca3962ab4a694862b04275fa2ad133529 |
|
MD5 | cce8add238b04e7bca576668c8c355ab |
|
BLAKE2b-256 | 8f6a4cbd0dab66eb106ee47d546453214f4b3d67c700fab737bb9fc9c2e34cb5 |