Pure Python library for working with the files in ROS packages
Project description
ros_introspect is a Pure Python library for working with the files in ROS packages in a structured way.
It is compatible with both ROS 1 and ROS 2.
You can specify the path directly.
from ros_introspect import Package
package = Package('/full/path/geometry_msgs')
or you can use the built-in crawler to search recursively
from ros_introspect import find_packages
for package in find_packages('/home/dlu/ros2_ws/src'):
print(package)
Installation
sudo pip3 install ros-introspect
The Package Class
A Package is a path where the $PATH/package.xml exists and a collection of PackageFiles that are contained within that folder.
Each of the package files are a subtype of PackageFile based on their functionality, with each of the subtypes being defined in ros_introspect.components, including...
package.xmlCMakeLists.txt- Source code (Python or C++)
- ROS Interfaces, i.e. messages, services and actions
- DynamicReconfig configurations (ROS 1 only)
- Plugin XML, for use with
pluginlib - Launch files, both
XML(ROS 1) and Python (ROS 2) - Parameter files (
.yaml) - RViz configurations (
.rviz) - Robot model files (
.urdfand.xacro) setup.pyandsetup.cfgfor Python code- Documentation (Markdown, RST, licenses, etc.)
- Miscellaneous Config files (various metadata like the
.githubfolder)
Everything that does not fall into one of those categories ends up as "Other"**
**Excluding .pyc, *~, and .git/ files
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
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 ros_introspect-0.3.0.tar.gz.
File metadata
- Download URL: ros_introspect-0.3.0.tar.gz
- Upload date:
- Size: 99.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
541b3ca6786c2832e819e7a22a51bd9612010207b4489862d270836f77203ca9
|
|
| MD5 |
cbd1bb01a6ac19266a99eee2d3083788
|
|
| BLAKE2b-256 |
1af4b8ec106abe10a5cf97c341de16883d9dba981f4ea4cc2aeb22a7d0ecb02f
|
File details
Details for the file ros_introspect-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ros_introspect-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cb3d7ab995a0cc50817b769a191c715d3a02fa439ea8a9b279e808dbc58858c
|
|
| MD5 |
fd8c196d706c001320d71d22ad0f4cf0
|
|
| BLAKE2b-256 |
2cba4b5caf82c63dcf2514523499f3e922006b097da5dfe122206c61421c3149
|