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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1789b0adb485b50bd9e578bfced2a94551559383726c5cd1ccd91d1926629b7d |
|
MD5 | 706398f3c0f454c763dd1de790b6ce47 |
|
BLAKE2b-256 | 4fbf5f0e4b7b61e486fcded20754b36b9e819dcf6b3b97f19859627c160c65df |
Close
Hashes for webots_web_log_interface-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c49a534aff1d70c565bc6289bc158958a8d51349ea3d43c7c87b4252aa8f11 |
|
MD5 | 637cc20ea62b4846c99d59db5c51fe62 |
|
BLAKE2b-256 | 3fc1cb30c3c6e0829736f8cc8738f09fbad0c166da41eddbc48c10c2786d596f |