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
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()
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4c6467f14e8f152ca273f6f87a9e90b52fffa70a7ceadb9f84db1126d75793 |
|
MD5 | ebaec2a12e86f164fd058ba660c02e2e |
|
BLAKE2b-256 | 4bf2b93f60a092b39e4d99672f38e40822d73d0b005773a17f2ab3488315e714 |
Close
Hashes for webots_web_log_interface-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f547fef13d5d5d550e65578cf409ed802a0e9338e5eefcc042d4307b0cc4bb6 |
|
MD5 | d936183488890043f4f0dc05e911b767 |
|
BLAKE2b-256 | cb51a18400ef1ed3fba522e5c5f79b2a59b97fe0a8ac1ba0e99338e3d96e7711 |