Skip to main content

In this time of revolution between the regimes of ROS 1 and ROS 2, Betsy ROS creates a unified banner.

Project description

image of Betsy Ross

Betsy ROS

In this time of revolution between the regimes of ROS 1 and ROS 2, Betsy ROS creates a unified banner

Translation: This package is a unified Python API for certain "meta" ROS API calls that work the same in ROS 1 and ROS 2.

Installation

PyPI version

sudo pip3 install betsy-ros

Functionality

Workspace

  • get_workspace_root returns a BuildType and pathlib.Path indicating the type and location of the current workspace.
    • BuildType can be CATKIN_MAKE, CATKIN_TOOLS, or COLCON
  • get_ros_version returns an int and str indicating the ROS version (1 or 2) and the distro short-name (e.g. lunar, bouncy)

Packages

  • get_package_name_from_path returns the name of the package that the initial path is in (including subfolders)
  • get_package_names returns a set of strings of all the current package names, including the binary packages and the workspace packages
  • find_package returns the path to a given package
  • is_binary_ros returns True if the path passed to it is in the /opt/ros folder

Interfaces

(i.e. messages, services and actions)

  • The class ROSInterface has three key attributes:
  • package
  • type
  • name
  • list_interfaces yields ROSInterface instances for all messages/services/actions in the environment.

Environment

(i.e. active topics, service providers and action servers)

  • get_topics, get_services, and get_actions return the names of all active ROS resources
    • By default, it just returns the names.
    • If include_types is set to True, the type will also be included as a ROSInterface.

Credit

Package logo from artwork by Jean Leon Gerome Ferris (1863–1930): Betsy Ross 1777

Project details


Download files

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

Source Distribution

betsy_ros-0.2.1.tar.gz (930.1 kB view details)

Uploaded Source

Built Distribution

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

betsy_ros-0.2.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file betsy_ros-0.2.1.tar.gz.

File metadata

  • Download URL: betsy_ros-0.2.1.tar.gz
  • Upload date:
  • Size: 930.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for betsy_ros-0.2.1.tar.gz
Algorithm Hash digest
SHA256 17880f780022b8dd539500ced0bb397b31d3e719df66f156daa54524d2a88f46
MD5 cebdf2bbe0cba8c04badf1605304731f
BLAKE2b-256 14a1e873e85c7edbbb3dfcee318c6b5729003de319a0ef31c0487f63a4657f50

See more details on using hashes here.

Provenance

The following attestation bundles were made for betsy_ros-0.2.1.tar.gz:

Publisher: publish_pip.yaml on MetroRobots/betsy_ros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file betsy_ros-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: betsy_ros-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for betsy_ros-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ee3639b946da1ac2ae1b665316ab681d8505adc4e84849c5a17c8cd23699158
MD5 6d06bc6358cfc1cebdbf3d18b08dab58
BLAKE2b-256 010e586ac7c2d5cfc80c60d4a277dcfabdb83cd815debe3c729a3e7ccdb89f8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for betsy_ros-0.2.1-py3-none-any.whl:

Publisher: publish_pip.yaml on MetroRobots/betsy_ros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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