Stretch 4 URDF
Project description
Overview
This package provides robot description and mesh files for Stretch 4, as well as code for manipulating the kinematic description (e.g. adding virtual joints) and exporting for use in other programs (e.g. ROS2, pinocchio). The repository for Stretch 3 and earlier hardware versions can be found in stretch_urdf. This package can be installed by:
python3 -m pip install -U hello-robot-stretch4-urdf
Details
The URDF and meshes are installed to your Python site directory. You can load them dynamically using:
from stretch4_urdf import get_urdf
print(get_urdf())
A single composable xacro combines a robot's base model with its attached tool. Util functions will handle processing the xacro file and return the URDF for the robot's current configuration:
from stretch4_urdf import get_urdf_from_robot_params
urdf_string = get_urdf_from_robot_params() # store the urdf contents in a str variable
urdf_filepath = get_urdf_from_robot_params(out_dir="/tmp") # save the urdf to a file in the /tmp directory
Bringing in URDF's from CAD
The package follows a strict directory strucutre:
> {model}_{batch}
> meshes
visual and collision mesh STL files
> xacro
stretch_main.xacro
> {model}_tools
> {tool_name}
> meshes
visual and collision mesh STL files
{tool_name}.urdf
The URDF and meshes from the CAD model are added to the {model}_{batch} base directory and meshes folder. From there, process_new_robot_model.py creates the stretch_main.xacro file and necessary collision meshes for the batch. See the urdf_conventions.md for the specifics of this processing step.
A directory is created for each new tool, with the urdf in the base directory and a folder for meshes. process_new_tool.py is then used to add the necessary edits to the urdf and generate collision meshes.
Documentation
The following files provide deeper documentation on various parts of the system:
| Primer | Description |
|---|---|
| Batches | Explains URDF batch organization, compiling the URDF dynamically, and how to add new batch models. |
| End Effectors | Outlines the available end effector tools and provides instructions on how to add new tools to the robot. |
| URDF Conventions | Outlines which conventions are used in the Stretch 4 URDF. |
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 hello_robot_stretch4_urdf-2026.5.12.tar.gz.
File metadata
- Download URL: hello_robot_stretch4_urdf-2026.5.12.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d333d8025eb45b3d99617a77c471619bf3ad23baa2dd76507d00d3d743082fc
|
|
| MD5 |
1a70781efcb22b883fdc10044d69c5b7
|
|
| BLAKE2b-256 |
4a26a288fc638170264262293d97aecbf154534f845b27fde75c51882f1d5a5e
|
File details
Details for the file hello_robot_stretch4_urdf-2026.5.12-py3-none-any.whl.
File metadata
- Download URL: hello_robot_stretch4_urdf-2026.5.12-py3-none-any.whl
- Upload date:
- Size: 3.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d44065afb244f0faa1f4d16ffb87c45da59965446d30e0727ceeeb75c3a315b
|
|
| MD5 |
aaad3794c51d84a1bfbf274dc5ab5f33
|
|
| BLAKE2b-256 |
03103591171a1d9754988f070d7c074cbcf89832a813ffdd470e27c70b45b314
|