Skip to main content

No project description provided

Project description

Artefacts Toolkit (Charts)

Please consider this as a pre-release package, and thus subject to large, and breaking, changes prior to v1

A part of the Artefacts Toolkit, this package contains helpers to be used when creating charts from test data

Primarily designed to be used with Artefacts, the package can also be used standalone.

Usage

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",
):

Note: Currently charts can only be created from rosbags

Takes a file and creates a chart on the provided two topics. "time" can also be used as topic_x or topic_y if desired. An html chart will be created and saved to the output_dir.

Plotting time when using rosbags

  • Please note that not all ROS topics contain header timestamps. If no header is present, make_chart will use the rosbag’s own timestamps, which may cause timing inaccuracies if the rosbag was recorded or played back at non-real-time speeds.

Notes:

The Artefacts Toolkit also contains a bag_recorder helper to assist you if you require help in setting up a rosbag recording for your tests.

from artefacts_toolkit_rosbag.rosbag import get_bag_recorder
  • When using in a virtual environment, you may need to add your site packages to PYTHONPATH
export PYTHONPATH=$PYTHONPATH:/<your_workspace>/venv/lib/python3.10/site-packages

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

artefacts_toolkit_chart-0.3.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file artefacts_toolkit_chart-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for artefacts_toolkit_chart-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c942e11b7015942dd76d64bf2d595c5d7e15900b76bef7eb140268d98e66ac3
MD5 b4a9db65f9c5c4e3b4f25b0440cb6a52
BLAKE2b-256 0d5f68a117727af795bbe0501e3e20513758f7e4feaca928b56286f42ed94c19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page