Curated URDFs and 3D models of the robots and gripper used at airo.
Project description
airo-models
Curated URDFs and 3D models of the robots and gripper used at airo.
Installation
airo-models
is available on PyPi and can be installed with pip:
pip install airo-models
Usage
Example of loading a URDF from airo-models, customizing it and writing it to a temporary file:
import airo_models
robotiq_urdf_path = airo_models.get_urdf_path("robotiq_2f_85")
robotiq_urdf = airo_models.urdf.read_urdf(robotiq_urdf_path)
# Make the robotiq gripper static
airo_models.urdf.replace_value(robotiq_urdf, "@type", "revolute", "fixed")
airo_models.urdf.delete_key(robotiq_urdf, "mimic")
airo_models.urdf.delete_key(robotiq_urdf, "transmission")
# Write it to a temporary file to read later with Drake's AddModelFromFile
robotiq_static_urdf_path = airo_models.urdf.write_urdf_to_tempfile(
robotiq_urdf, robotiq_urdf_path, prefix="robotiq_2f_85_static_"
)
To check which models are available:
from airo_models.files import AIRO_MODEL_NAMES
print(AIRO_MODEL_NAMES)
>>> ['ur3e', 'ur5e', 'robotiq_2f_85']
Modeling conventions
The standard convention we follow is X+ forward, Z+ up.
For cameras, we follow Z+ forward through the eye of the camera, X+ right. The origin of the camera is at the center of the (left) lens. Left is defined egocentric of the camera (i.e. looking out of the eyes of the camera).
For grippers, we follow Z+ pointing outwards from the fingers and X in the direction in which the parallel gripper closes its fingers. The origin of the gripper (base_link
) is at the mounting point of its base.
Development
Local installation
- Clone this repo
- Create the conda environment
conda env create -f environment.yaml
- Initialize the pre-commit hooks
pre-commit install
- Run the tests with
pytest .
Releasing
Releasing to PyPi is done automatically by github actions when a new tag is pushed to the main branch.
- Update the version in
pyproject.toml
. git add pyproject.toml
git commit -m ""
git push
git tag -a v0.1.0 -m "airo-models v0.1.0"
git push origin v0.1.0
This was set up following this guide first and then this guide.
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
File details
Details for the file airo_models-0.0.10.tar.gz
.
File metadata
- Download URL: airo_models-0.0.10.tar.gz
- Upload date:
- Size: 12.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9af5991c50da46dbb25fb26416e9bababe7c81856caef5cede4c45d66ee6a11e |
|
MD5 | bba92651ead4bfc9e79df0a2b1c924c5 |
|
BLAKE2b-256 | 017120711effbd882b04cd8fcac4bd216eda63f709b01dee08507ba2f24f6c07 |
File details
Details for the file airo_models-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: airo_models-0.0.10-py3-none-any.whl
- Upload date:
- Size: 12.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1eeac3f45266132a626d43fef282b403dac00552040af423da0d1a124fce26c |
|
MD5 | 1dc13f13d2c8a1d248dedfb2d503bca9 |
|
BLAKE2b-256 | e78f84df89b6c42cdabbd7dfc088f986b934aa11bacae156fbbd47245478a4cf |