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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2df18e7bf7870655c9bde06e3ae057264e77d95c45d901f77ec457322a083b42 |
|
MD5 | 5e2bc8ebaf0f1c273f69d0d13a2a299d |
|
BLAKE2b-256 | 3ea655b71dc5251dbdfab82f2baaca35b9ab18bbf03d6c8400cd733af4cfffcc |
Close
Hashes for webots_web_log_interface-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6787724a4adcb195f2d376e7510602280ac5c68346a32a60609fa2abdbe70a2a |
|
MD5 | 20671cd1062b96886e7ad152b0c2bf43 |
|
BLAKE2b-256 | 1bdabff0901bec35e93ccbc6dfb2125370e0c426e2730355c0f18df2521833e3 |