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.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0725194311712bf64d4dfe5fd0c886488c95afc459a9c021bf0d5cb41a02efa4 |
|
MD5 | 6f17e56323305d2e62ff5e1cd2fe5768 |
|
BLAKE2b-256 | fe84ee379588320a75c3eef2eeaa20b491d808ecf7f7a9113e02f40b47f2a50c |
Close
Hashes for webots_web_log_interface-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359ede1ad12e8e378f796fa694680da8437ba83a995d8aeedbdb30d4890b7a12 |
|
MD5 | 9c1b473e4136dba992f0a1eeab69571d |
|
BLAKE2b-256 | 923ab4de365fe033367a20fcd03b4df457a44b1a23bd4774d66f5c1576ed538a |