COMPAS Robots
Robot models and visualization for the COMPAS framework.
Features
- Load and build robot models from URDF files or programmatically
- Visualize robots in Rhino, Grasshopper, Blender, and the COMPAS Viewer
- Forward kinematics and configuration management
- Load geometry from local files or directly from GitHub repositories
- Attach tools and meshes to robot links
Installation
pip install compas_robots
Quick start
import math
from compas_robots import RobotModel
from compas_viewer import Viewer
model = RobotModel.ur5e(load_geometry=True)
config = model.zero_configuration()
config["shoulder_lift_joint"] = -math.pi / 2
config["elbow_joint"] = math.pi / 2
config["wrist_1_joint"] = -math.pi / 2
config["wrist_2_joint"] = -math.pi / 2
viewer = Viewer()
scene_object = viewer.scene.add(model)
scene_object.update(config)
viewer.show()
Loading robot models
From a URDF file:
from compas_robots import RobotModel
model = RobotModel.from_urdf_file("ur5e.urdf")
From a GitHub repository:
from compas_robots import RobotModel
from compas_robots.resources import GithubPackageMeshLoader
github = GithubPackageMeshLoader("ros-industrial/abb", "abb_irb6600_support", "kinetic-devel")
model = RobotModel.from_urdf_file(github.load_urdf("irb6640.urdf"))
model.load_geometry(github)
Documentation
Full documentation, tutorials, and examples at compas.dev/compas_robots.
Contributing
Setup
git clone https://github.com/compas-dev/compas_robots
cd compas_robots
pip install -e ".[dev]"
Code style
invoke lint # check style
invoke format # auto-format
Tests
invoke test
Docs
invoke docs
Releases
Releases follow semver:
invoke release minor
License
MIT. See LICENSE.
Metadata
Release files for compas-robots 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| compas_robots-1.1.0.tar.gz | 6.0 MB | Without provenance | Details for compas_robots-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| compas_robots-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for compas_robots-1.1.0-py3-none-any.whl |
Total release size: 12.1 MB
Release files / compas_robots-1.1.0.tar.gz
| Download URL | compas_robots-1.1.0.tar.gz |
|---|---|
| Size | 6.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
782208e15d3fd2570b7016cdad11783c0ee9199606f7a2a39b39e8ee2efa5416
|
|
BLAKE2b-256 checksum How to use checksums |
923fe663a6930ac0a5961394b4b3dd84f385246f64c3821dd4d7ae52a0fdfc89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Release files / compas_robots-1.1.0-py3-none-any.whl
| Download URL | compas_robots-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7858145b04380f6b8e79132afbb39d44a1229f9956afa4c9630b89288cbb1b3f
|
|
BLAKE2b-256 checksum How to use checksums |
0425a159e261e8894ccba636ce17e4062f3f9f98483f6dac8a31de950e09a217
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Security for compas-robots 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.