Skip to main content

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.

  1. Update the version in pyproject.toml.
  2. git add pyproject.toml
  3. git commit -m ""
  4. git push
  5. git tag -a v0.1.0 -m "airo-models v0.1.0"
  6. git push origin v0.1.0

This was set up following this guide first and then this guide.

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

airo_models-0.0.11.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airo_models-0.0.11-py3-none-any.whl (12.9 MB view details)

Uploaded Python 3

File details

Details for the file airo_models-0.0.11.tar.gz.

File metadata

  • Download URL: airo_models-0.0.11.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for airo_models-0.0.11.tar.gz
Algorithm Hash digest
SHA256 593000ed77fc6110ea9515e4b72690cf302f27b48d090600a955a26191c7a456
MD5 54c66e20f716c374c1ca179023c6a67e
BLAKE2b-256 f224bbbdb136741e522fad86ab10d82b8300c8fa9d9eeb6495f5a8caea4cb67d

See more details on using hashes here.

File details

Details for the file airo_models-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for airo_models-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 73ef979bb5ab995bea837cd889b75afae53a676accab3cac4173c5b034c8430a
MD5 2c7fd3dd9d2537c93d3f2125bbb1c603
BLAKE2b-256 0267f81f5e26be37841c8b980d24a0f54562834a7dc76acb84adb5f4ca93070a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page