Skip to main content

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.yaml file. If param_type is set to launch, it will be returned as type string so that it can be used as a ros launch argument.

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. Returns camera_bridge (Node)

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"
  • gz.get_model_location(model_name):

    • Returns the x, y, z location of a currently running gazebo simulation
  • 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

message_topics

  • get_final_message(rosbag_filepath, topic)
    • Returns the last recorded message from a given topic

rosbag_topics

  • get_bag_recorder(topic_names, use_sim_time=False):
    • Returns a bag_recorder process, as well as the rosbag_filepath. bag_recorder can then be added to your LaunchDescription

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-0.3.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for artefacts_toolkit-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95cf77d47eb5658a65b8e9e35b2e04e1bdb70e3fb64258cef1d8a53563a04e86
MD5 fdf6cec977c29842e5943a7ff95e09c2
BLAKE2b-256 822e4716077a21e599394dfccca05bd67e25c330200e74f88ec2b58c97a65d53

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