simplerobotics 1.0.5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- SimpleRobotics/RobotRR.py +156 -0
- SimpleRobotics/__init__.py +37 -0
- SimpleRobotics/animation.py +427 -0
- SimpleRobotics/formatting.py +65 -0
- SimpleRobotics/plotting.py +1272 -0
- SimpleRobotics/transforms.py +865 -0
- simplerobotics-1.0.5.2.dist-info/METADATA +173 -0
- simplerobotics-1.0.5.2.dist-info/RECORD +10 -0
- simplerobotics-1.0.5.2.dist-info/WHEEL +5 -0
- simplerobotics-1.0.5.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simplerobotics
|
|
3
|
+
Version: 1.0.5.2
|
|
4
|
+
Summary: Educational Python library for robot kinematics, homogeneous transformations, trajectory interpolation, and 3D visualization.
|
|
5
|
+
Author: Leonardo Andrey Gaspar Mejía
|
|
6
|
+
Project-URL: Repository, https://github.com/leonardo-gaspar-mejia/SimpleRobotics
|
|
7
|
+
Project-URL: Documentation, https://github.com/leonardo-gaspar-mejia/SimpleRobotics/blob/main/Documentacion.md
|
|
8
|
+
Project-URL: Issues, https://github.com/leonardo-gaspar-mejia/SimpleRobotics/issues
|
|
9
|
+
Keywords: robotics,kinematics,homogeneous-transformations,robotics-education,robot-manipulators,trajectory-interpolation,3d-visualization,symbolic-computation,stl-meshes
|
|
10
|
+
Classifier: Intended Audience :: Education
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Topic :: Scientific/Engineering
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: numpy>=1.24
|
|
18
|
+
Requires-Dist: matplotlib>=3.5
|
|
19
|
+
Requires-Dist: sympy>=1.12
|
|
20
|
+
Requires-Dist: trimesh>=3.9
|
|
21
|
+
Requires-Dist: pyvista>=0.49.2
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
24
|
+
|
|
25
|
+
# SimpleRobotics
|
|
26
|
+
**Biblioteca educativa de robótica en Python**
|
|
27
|
+
**Versión:** 1.0.5.2
|
|
28
|
+
|
|
29
|
+
## Español
|
|
30
|
+
|
|
31
|
+
SimpleRobotics es una biblioteca educativa para estudiar y comprender la cinemática de manipuladores robóticos mediante transformaciones homogéneas. La construcción del modelo cinemático queda a criterio del usuario: las transformaciones entre eslabones y sistemas de coordenadas se definen explícitamente, en lugar de generarse automáticamente a partir de una tabla Denavit–Hartenberg.
|
|
32
|
+
|
|
33
|
+
Este enfoque permite representar distintas arquitecturas y diagramas cinemáticos, incluidos mecanismos paralelos y configuraciones como los paralelogramos presentes en algunos robots industriales. Los elementos del modelo pueden representarse mediante sistemas de coordenadas, líneas y primitivas geométricas, o mediante modelos sólidos en formato STL.
|
|
34
|
+
|
|
35
|
+
La biblioteca también incorpora herramientas de visualización y animación tridimensional para representar el movimiento de los manipuladores y actualizar sus configuraciones durante la ejecución. Para ello, utiliza herramientas como Matplotlib y PyVista, según el tipo de representación requerido.
|
|
36
|
+
|
|
37
|
+
La versión Python toma como referencia la toolbox MATLAB del **Dr. César A. Chávez-Olivares** y busca conservar su enfoque educativo y sus convenciones matemáticas, corrigiendo los problemas propios de la traducción cuando corresponde.
|
|
38
|
+
|
|
39
|
+
### Autoría y reconocimiento
|
|
40
|
+
|
|
41
|
+
- **Toolbox MATLAB original:** Dr. César A. Chávez-Olivares.
|
|
42
|
+
- **Traducción y desarrollo de la versión Python:** Ing. Leonardo Andrey Gaspar Mejía.
|
|
43
|
+
|
|
44
|
+
La inclusión de ambos créditos reconoce la autoría de la toolbox de referencia y el trabajo de traducción e implementación en Python. Antes de distribuir públicamente el proyecto, conserva los avisos de autoría y revisa las condiciones de uso de la toolbox original.
|
|
45
|
+
|
|
46
|
+
### Módulos
|
|
47
|
+
|
|
48
|
+
- `transforms.py`: rotaciones, traslaciones, transformaciones homogéneas, orientación, cuaterniones, derivadas e interpolación de trayectorias.
|
|
49
|
+
- `plotting.py`: representación tridimensional de eslabones, sistemas de coordenadas, primitivas geométricas, trayectorias y mallas STL.
|
|
50
|
+
- `formatting.py`: presentación legible de matrices numéricas y simbólicas.
|
|
51
|
+
- `animation.py`: construcción, actualización y animación de escenas tridimensionales para representar el movimiento de manipuladores robóticos.
|
|
52
|
+
- `RobotRR.py`: herramientas específicas para la construcción y visualización del manipulador RR.
|
|
53
|
+
|
|
54
|
+
### Instalación
|
|
55
|
+
|
|
56
|
+
Desde la carpeta raíz del proyecto, donde se encuentra `pyproject.toml`:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
python -m pip install .
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Para trabajar en modo editable durante el desarrollo:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
python -m pip install -e .
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
El proyecto utiliza NumPy, Matplotlib, SymPy, trimesh y PyVista. Se recomienda instalarlo en un entorno virtual.
|
|
69
|
+
|
|
70
|
+
### Ejemplo básico
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
import numpy as np
|
|
74
|
+
import matplotlib.pyplot as plt
|
|
75
|
+
from SimpleRobotics import trans, rotz, eslabon
|
|
76
|
+
|
|
77
|
+
# Transformación homogénea: rotación alrededor de Z y traslación.
|
|
78
|
+
H = rotz(np.deg2rad(30)) @ trans(0.4, 0.0, 0.0)
|
|
79
|
+
|
|
80
|
+
fig = plt.figure()
|
|
81
|
+
ax = fig.add_subplot(111, projection="3d")
|
|
82
|
+
|
|
83
|
+
eslabon([0, 0, 0], H[:3, 3], ax=ax)
|
|
84
|
+
|
|
85
|
+
ax.set_xlabel("X")
|
|
86
|
+
ax.set_ylabel("Y")
|
|
87
|
+
ax.set_zlabel("Z")
|
|
88
|
+
plt.show()
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
En NumPy, usa `@` para multiplicar matrices. Las funciones con sufijo `_grados` reciben o devuelven ángulos en grados; las demás funciones de orientación trabajan normalmente en radianes.
|
|
92
|
+
|
|
93
|
+
### Documentación
|
|
94
|
+
|
|
95
|
+
Consulta [`Documentacion.md`](Documentacion.md) para ver los módulos, las funciones principales, las convenciones y ejemplos de uso, incluyendo las herramientas de visualización y animación.
|
|
96
|
+
|
|
97
|
+
### Alcance
|
|
98
|
+
|
|
99
|
+
La biblioteca tiene fines educativos. Antes de emplear una función en una aplicación real, comprueba las dimensiones de entrada, las unidades, las singularidades y los casos límite relevantes. La equivalencia con MATLAB debe evaluarse función por función; la traducción no implica por sí sola una validación exhaustiva.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## English
|
|
104
|
+
|
|
105
|
+
SimpleRobotics is an educational Python library for studying and understanding the kinematics of robot manipulators using homogeneous transformations. The construction of the kinematic model is left to the user: transformations between links and coordinate frames are explicitly defined instead of being automatically generated from a Denavit–Hartenberg table.
|
|
106
|
+
|
|
107
|
+
This approach supports different kinematic architectures and diagrams, including parallel mechanisms and configurations such as the parallelograms found in some industrial robots. Model elements can be represented using coordinate frames, lines and geometric primitives, or solid models in STL format.
|
|
108
|
+
|
|
109
|
+
The library also incorporates three-dimensional visualization and animation tools to represent manipulator motion and update their configurations during execution. For this purpose, it uses tools such as Matplotlib and PyVista, depending on the required type of representation.
|
|
110
|
+
|
|
111
|
+
The Python version is based on the MATLAB toolbox by **Dr. César A. Chávez-Olivares**. It aims to preserve the original educational approach and mathematical conventions while addressing issues introduced by the Python translation when appropriate.
|
|
112
|
+
|
|
113
|
+
### Authorship and acknowledgment
|
|
114
|
+
|
|
115
|
+
- **Original MATLAB toolbox:** Dr. César A. Chávez-Olivares.
|
|
116
|
+
- **Python translation and development:** Eng. Leonardo Andrey Gaspar Mejía.
|
|
117
|
+
|
|
118
|
+
These credits distinguish the authorship of the reference toolbox from the work involved in translating and implementing it in Python. Before publicly redistributing the project, retain the original attribution notices and review the terms governing use of the MATLAB toolbox.
|
|
119
|
+
|
|
120
|
+
### Modules
|
|
121
|
+
|
|
122
|
+
- `transforms.py`: rotations, translations, homogeneous transformations, orientation representations, quaternions, numerical derivatives and trajectory interpolation.
|
|
123
|
+
- `plotting.py`: 3D visualization of links, coordinate frames, geometric primitives, trajectories and STL meshes.
|
|
124
|
+
- `formatting.py`: readable display of numeric and symbolic matrices.
|
|
125
|
+
- `animation.py`: construction, updating and animation of three-dimensional scenes to represent robotic manipulator motion.
|
|
126
|
+
- `RobotRR.py`: specific tools for constructing and visualizing the RR manipulator.
|
|
127
|
+
|
|
128
|
+
### Installation
|
|
129
|
+
|
|
130
|
+
From the project root, where `pyproject.toml` is located, run:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
python -m pip install .
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
For editable installation during development:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
python -m pip install -e .
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
The project uses NumPy, Matplotlib, SymPy, trimesh and PyVista. A virtual environment is recommended.
|
|
143
|
+
|
|
144
|
+
### Basic example
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
import numpy as np
|
|
148
|
+
import matplotlib.pyplot as plt
|
|
149
|
+
from SimpleRobotics import trans, rotz, eslabon
|
|
150
|
+
|
|
151
|
+
# Homogeneous transformation: rotation around Z and translation.
|
|
152
|
+
H = rotz(np.deg2rad(30)) @ trans(0.4, 0.0, 0.0)
|
|
153
|
+
|
|
154
|
+
fig = plt.figure()
|
|
155
|
+
ax = fig.add_subplot(111, projection="3d")
|
|
156
|
+
|
|
157
|
+
eslabon([0, 0, 0], H[:3, 3], ax=ax)
|
|
158
|
+
|
|
159
|
+
ax.set_xlabel("X")
|
|
160
|
+
ax.set_ylabel("Y")
|
|
161
|
+
ax.set_zlabel("Z")
|
|
162
|
+
plt.show()
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Use `@` for NumPy matrix multiplication. Functions with the `_grados` suffix use degrees; other orientation functions normally use radians.
|
|
166
|
+
|
|
167
|
+
### Documentation
|
|
168
|
+
|
|
169
|
+
See [`Documentacion.md`](Documentacion.md) for the module overview, main functions, conventions and usage examples, including the visualization and animation tools.
|
|
170
|
+
|
|
171
|
+
### Scope
|
|
172
|
+
|
|
173
|
+
This library is intended for educational use. Before using a function in an application, check its input dimensions, units, singularities and relevant edge cases. MATLAB equivalence should be assessed function by function; a translation alone does not imply exhaustive validation.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
SimpleRobotics/RobotRR.py,sha256=5hVT9O6aX3cOu1FBLYcH1HggAPxVczdGGWomlKgP66w,4108
|
|
2
|
+
SimpleRobotics/__init__.py,sha256=EfSFbW2CSfXuu-gdZQCb0Sq6XG9dmDUXTRyI2l0GiTA,2267
|
|
3
|
+
SimpleRobotics/animation.py,sha256=oxSEnnRNJKyGI8C83_flPZWTDVxVCpxwyIGBgJvIwG4,15477
|
|
4
|
+
SimpleRobotics/formatting.py,sha256=oO9D2FBVQanwbY2cCdR_7aAkqM2IcfqqhSeZq-ujDKw,2152
|
|
5
|
+
SimpleRobotics/plotting.py,sha256=JiXk9J2LQWLpwZEjZYVQQ-m_fGGEatLy7gkI4A04QWM,32023
|
|
6
|
+
SimpleRobotics/transforms.py,sha256=cT3AF6OQ_v-o-JBY0JP_layLxU7TrQRdyhn99Pf4GAI,23248
|
|
7
|
+
simplerobotics-1.0.5.2.dist-info/METADATA,sha256=Bg-G6AFGmb3n88PyZNNUuCup-yd-zqofQp25DicIoLM,8798
|
|
8
|
+
simplerobotics-1.0.5.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
9
|
+
simplerobotics-1.0.5.2.dist-info/top_level.txt,sha256=3F2WJvdq_CeRvvrisKBcRkzavMEZraz-878GLuFGE-0,15
|
|
10
|
+
simplerobotics-1.0.5.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SimpleRobotics
|