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
Build it yourself
git clone https://github.com/bit-bots/webots-web-log-interface.git
cd webots-web-log-interface
poetry install
poetry shell
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
Now you are able to use the interface
from webots_web_log_interface.interface import WebotsGameLogParser
gp = WebotsGameLogParser("/home/<user>/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()
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8dbf5db7a3a47dca3d508cfc10d4dd1fa11c842a45b67d3f4644d7af0f0806f |
|
MD5 | 81d264b0e9c14739ae192849a6773b4b |
|
BLAKE2b-256 | 557c8b6088c21cec79c4a81099e019e2bcb37a03a04f8ba032fc84d7a74e5202 |
Close
Hashes for webots_web_log_interface-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38dfe9b764c68548de72eb178d75b57c83c20e3a197203037c63b73e7a0551d0 |
|
MD5 | db010ba99b9899061339c9471ff50091 |
|
BLAKE2b-256 | 9be1155d17a0c620b772a4f24af7852c4bfc35ceefb953aa5c1fd74287707a9f |