Frozen-snapshot URDF/MJCF exporter for Onshape assemblies
Project description
onshnap
onshnap exports Onshape assemblies as static URDF or MJCF files with STL meshes. Takes a frozen snapshot of the assembly and exports it as a fixed robot description file.
Specifically, it exports assemblies as static robot descriptions (no kinematic chains) with star topology (all parts connected to a single base_link via fixed joints).
It also supports exporting to MJCF if you want to do that for some reason.
Usage
First install the package:
pip install onshnap
Then set your Onshape API keys in your environment and run the export:
export ONSHAPE_ACCESS_KEY="your-access-key"
export ONSHAPE_SECRET_KEY="your-secret-key"
onshnap /path/to/directory/with/config
To find where to get your Onshape API keys, see the Onshape Help Center.
Configuration
The config.json should contain:
{
"url": "https://cad.onshape.com/documents/...",
"filetype": "urdf", // optional, defaults to "urdf"
"output_name": "onshnap", // optional, defaults to "onshnap"
"mesh_dir": "meshes", // optional, defaults to "meshes"
"units": "meter" // optional, defaults to "meter"
}
Configuration Options:
url(required): Onshape document URLfiletype(optional): Output format -"urdf"(default) or"mjcf"output_name(optional): Base name for output files (default:"onshnap")mesh_dir(optional): Subdirectory name for mesh files (default:"meshes")units(optional): Units for mesh export -"meter"(default) or"inch"
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
File details
Details for the file onshnap-0.1.0.tar.gz.
File metadata
- Download URL: onshnap-0.1.0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c8888d37b864bec4b5136ee3977b4a76594f6edb892b643c51914ba79ae987a
|
|
| MD5 |
124facf75298e4f2e666153a4fd3a27f
|
|
| BLAKE2b-256 |
8d5afc2812ef75cd94cdf80a24e2ba4c75ef77f7d7c69b7419659e592affaf4e
|
Provenance
The following attestation bundles were made for onshnap-0.1.0.tar.gz:
Publisher:
publish.yml on WT-MM/onshnap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
onshnap-0.1.0.tar.gz -
Subject digest:
7c8888d37b864bec4b5136ee3977b4a76594f6edb892b643c51914ba79ae987a - Sigstore transparency entry: 803967015
- Sigstore integration time:
-
Permalink:
WT-MM/onshnap@32cf6df87b8ade9aed32313e8524c8430510752d -
Branch / Tag:
refs/heads/master - Owner: https://github.com/WT-MM
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@32cf6df87b8ade9aed32313e8524c8430510752d -
Trigger Event:
workflow_dispatch
-
Statement type: