In this time of revolution between the regimes of ROS 1 and ROS 2, Betsy ROS creates a unified banner.
Project description
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
sudo pip3 install betsy-ros
Functionality
Workspace
get_workspace_rootreturns aBuildTypeandpathlib.Pathindicating the type and location of the current workspace.BuildTypecan beCATKIN_MAKE,CATKIN_TOOLS, orCOLCON
get_ros_versionreturns anintandstrindicating the ROS version (1 or 2) and the distro short-name (e.g.lunar,bouncy)
Packages
get_package_name_from_pathreturns the name of the package that the initial path is in (including subfolders)get_package_namesreturns a set of strings of all the current package names, including the binary packages and the workspace packagesfind_packagereturns the path to a given packageis_binary_rosreturns True if the path passed to it is in the/opt/rosfolder
Interfaces
(i.e. messages, services and actions)
- The class
ROSInterfacehas three key attributes: - package
- type
- name
list_interfacesyieldsROSInterfaceinstances for all messages/services/actions in the environment.
Environment
(i.e. active topics, service providers and action servers)
get_topics,get_services, andget_actionsreturn the names of all active ROS resources- By default, it just returns the names.
- If
include_typesis set toTrue, the type will also be included as aROSInterface.
Credit
Package logo from artwork by Jean Leon Gerome Ferris (1863–1930): Betsy Ross 1777
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17880f780022b8dd539500ced0bb397b31d3e719df66f156daa54524d2a88f46
|
|
| MD5 |
cebdf2bbe0cba8c04badf1605304731f
|
|
| BLAKE2b-256 |
14a1e873e85c7edbbb3dfcee318c6b5729003de319a0ef31c0487f63a4657f50
|
Provenance
The following attestation bundles were made for betsy_ros-0.2.1.tar.gz:
Publisher:
publish_pip.yaml on MetroRobots/betsy_ros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
betsy_ros-0.2.1.tar.gz -
Subject digest:
17880f780022b8dd539500ced0bb397b31d3e719df66f156daa54524d2a88f46 - Sigstore transparency entry: 217339461
- Sigstore integration time:
-
Permalink:
MetroRobots/betsy_ros@b8dc8f3b76d6afc3820e1b60d80214069a522acf -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/MetroRobots
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pip.yaml@b8dc8f3b76d6afc3820e1b60d80214069a522acf -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ee3639b946da1ac2ae1b665316ab681d8505adc4e84849c5a17c8cd23699158
|
|
| MD5 |
6d06bc6358cfc1cebdbf3d18b08dab58
|
|
| BLAKE2b-256 |
010e586ac7c2d5cfc80c60d4a277dcfabdb83cd815debe3c729a3e7ccdb89f8d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
betsy_ros-0.2.1-py3-none-any.whl -
Subject digest:
5ee3639b946da1ac2ae1b665316ab681d8505adc4e84849c5a17c8cd23699158 - Sigstore transparency entry: 217339467
- Sigstore integration time:
-
Permalink:
MetroRobots/betsy_ros@b8dc8f3b76d6afc3820e1b60d80214069a522acf -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/MetroRobots
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pip.yaml@b8dc8f3b76d6afc3820e1b60d80214069a522acf -
Trigger Event:
release
-
Statement type: