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.
Functionality
Workspace
get_workspace_root
returns aBuildType
andpathlib.Path
indicating the type and location of the current workspace.BuildType
can beCATKIN_MAKE
,CATKIN_TOOLS
, orCOLCON
get_ros_version
returns anint
andstr
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 packagesfind_package
returns the path to a given packageis_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
yieldsROSInterface
instances for all messages/services/actions in the environment.
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
betsy_ros-0.1.0.tar.gz
(929.1 kB
view details)
Built Distribution
File details
Details for the file betsy_ros-0.1.0.tar.gz
.
File metadata
- Download URL: betsy_ros-0.1.0.tar.gz
- Upload date:
- Size: 929.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc6e7dbdcbb57569b6ce8128376d7c77e4a1ed148cf38c379cf40ffe818a951e |
|
MD5 | efcadc40a03e779b009534c090e402fc |
|
BLAKE2b-256 | 6a3c30b8998efba39f687822a7f6fafcedb59780e6ef0439e79abf8faa2ee32b |
File details
Details for the file betsy_ros-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: betsy_ros-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a2a2539d6f2e3335fb8035f6c019ff78c43ce0ebeddaaae5560eb78e93f566 |
|
MD5 | 7aa32c34aaa8d2e821e454f9f633727f |
|
BLAKE2b-256 | 3c4ac78cf45c31253808bb6f1ad24be39bf5014aee36db896e5d42a4827b1016 |