No project description provided
Project description
Artefacts Toolkit
artefacts_toolkit.chart
from artefacts_toolkit.chart import make_chart
- make_chart(filepath, topic_x, topic_y, field_unit=None, output_dir="output", chart_name="chart", file_type="rosbag")
- Creates an html chart based on two provided topics. The user may also denote "Time" as one of the topics to plot one topic against time. Currently only creates charts from a provided Rosbag.
artefacts_toolkit.config
from artefacts_toolkit.config import get_artefacts_param
- get_artefacts_param(param_type, param_name, is_ros=True)
- Returns a parameter set in the
artefacts.yamlfile. Ifparam_typeis set tolaunch, it will be returned as typestringso that it can be used as a ros launch argument.
- Returns a parameter set in the
artefacts_toolkit.gazebo
from artefacts_toolkit.gazebo import bridge, gz
Note: Gazebo helpers are designed to work with Gazebo versions Garden and above
bridge
- bridge.get_camera_bridge(topic_name, condition=None)
- Creates a gazebo /ros2 topic bridge for a given camera topic
topic_name. Returnscamera_bridge(Node)
- Creates a gazebo /ros2 topic bridge for a given camera topic
gz
-
gz.get_sim_objects(world_file: str)
- Searches through a given world file, and returns the name (and pose if available) of all
models in the simulation. - Returns a list of dicts in the format
{"name": "<model_name>", "pose": "0 0 0 0 0 0"}as well as a dict in the format"<model_name>": "0 0 0 0 0 0"
- Searches through a given world file, and returns the name (and pose if available) of all
-
gz.get_model_location(model_name):
- Returns the
x, y, zlocation of a currently running gazebo simulation
- Returns the
-
gz.kill_gazebo():
- Kills the currently running gazebo process.
artefacts_toolkit.rosbag
from artefacts_toolkit.rosbag import image_topics, message_topics, rosbag
image_topics
-
extract_camera_image(rosbag_file_path, camera_topic, output_dir="output")
- Returns the last recorded image from a given camera topic
-
extract_video(rosbag_file_path, topic_name, output_path, frame_rate=20)
- Creates a video (WebM format) from a provided topic.
message_topics
- get_final_message(rosbag_filepath, topic)
- Returns the last recorded message from a given topic
rosbag_topics
- get_bag_recorder(topic_names, directory="rosbags", use_sim_time=False):
- Returns a
bag_recorderprocess, as well as therosbag_filepath.bag_recordercan then be added to yourLaunchDescription. Rosbags by default will be saved to directoryrosbags
- Returns a
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file artefacts_toolkit-0.4.1-py3-none-any.whl.
File metadata
- Download URL: artefacts_toolkit-0.4.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10824244d7903e9fbd65cb4c99782341c874731aac8dd8b3a663a783f79cb5ad
|
|
| MD5 |
95de0068644ce9b69629ca1302efa3b4
|
|
| BLAKE2b-256 |
8cf55568cb3b713e54bdefe1e28ffbceca277dbaafb15e494737759faf3d3d41
|