moro 0.2.0__tar.gz → 0.3.0.dev0__tar.gz
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.
- moro-0.3.0.dev0/LICENSE.txt +21 -0
- moro-0.3.0.dev0/PKG-INFO +62 -0
- moro-0.3.0.dev0/README.md +32 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/__init__.py +3 -4
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/abc.py +10 -9
- moro-0.3.0.dev0/moro/core.py +893 -0
- moro-0.3.0.dev0/moro/inverse_kinematics.py +149 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/plotting.py +2 -2
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/transformations.py +125 -23
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/util.py +55 -11
- moro-0.3.0.dev0/moro/version.py +1 -0
- moro-0.3.0.dev0/moro.egg-info/PKG-INFO +62 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro.egg-info/SOURCES.txt +3 -0
- moro-0.3.0.dev0/setup.cfg +7 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/setup.py +1 -2
- moro-0.2.0/PKG-INFO +0 -51
- moro-0.2.0/README.md +0 -32
- moro-0.2.0/moro/core.py +0 -471
- moro-0.2.0/moro/version.py +0 -2
- moro-0.2.0/moro.egg-info/PKG-INFO +0 -51
- moro-0.2.0/setup.cfg +0 -4
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/lib.py +0 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro/ws.py +0 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro.egg-info/dependency_links.txt +0 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro.egg-info/requires.txt +0 -0
- {moro-0.2.0 → moro-0.3.0.dev0}/moro.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Numython R&D
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
moro-0.3.0.dev0/PKG-INFO
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: moro
|
|
3
|
+
Version: 0.3.0.dev0
|
|
4
|
+
Summary: Python library for kinematic and dynamic modeling of robots
|
|
5
|
+
Home-page: https://github.com/JorgeDeLosSantos/moro
|
|
6
|
+
Author: Pedro Jorge De Los Santos
|
|
7
|
+
Author-email: delossantosmfq@gmail.com
|
|
8
|
+
Keywords: Robotics,Kinematics,Dynamics
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Intended Audience :: Education
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
16
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE.txt
|
|
19
|
+
Requires-Dist: sympy
|
|
20
|
+
Requires-Dist: matplotlib
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: description
|
|
25
|
+
Dynamic: description-content-type
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: keywords
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: summary
|
|
30
|
+
|
|
31
|
+
# moro
|
|
32
|
+
|
|
33
|
+
A Python library for kinematic and dynamic (symbolic) modeling of robots.
|
|
34
|
+
|
|
35
|
+
# Installation
|
|
36
|
+
|
|
37
|
+
Using `pip` to install latest version in PyPI:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
pip install moro
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Or from this repo:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
pip install git+https://github.com/JorgeDeLosSantos/moro.git
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
# Documentation and examples
|
|
50
|
+
|
|
51
|
+
Documentation is available in [https://jorgedelossantos.github.io/moro/](https://jorgedelossantos.github.io/moro/).
|
|
52
|
+
|
|
53
|
+
Also, Jupyter Notebooks are available in: [https://nbviewer.jupyter.org/github/jorgedelossantos/moro/tree/master/examples/nbooks/](https://nbviewer.jupyter.org/github/jorgedelossantos/moro/tree/master/examples/nbooks/)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# Bugs
|
|
57
|
+
|
|
58
|
+
Please report any bugs that you find, use the issue tracker: [https://github.com/jorgedelossantos/moro/issues](https://github.com/jorgedelossantos/moro/issues)
|
|
59
|
+
|
|
60
|
+
# Roadmap
|
|
61
|
+
|
|
62
|
+
Roadmap of moro: https://github.com/jorgedelossantos/moro/wiki/Roadmap
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# moro
|
|
2
|
+
|
|
3
|
+
A Python library for kinematic and dynamic (symbolic) modeling of robots.
|
|
4
|
+
|
|
5
|
+
# Installation
|
|
6
|
+
|
|
7
|
+
Using `pip` to install latest version in PyPI:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
pip install moro
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or from this repo:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
pip install git+https://github.com/JorgeDeLosSantos/moro.git
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
# Documentation and examples
|
|
20
|
+
|
|
21
|
+
Documentation is available in [https://jorgedelossantos.github.io/moro/](https://jorgedelossantos.github.io/moro/).
|
|
22
|
+
|
|
23
|
+
Also, Jupyter Notebooks are available in: [https://nbviewer.jupyter.org/github/jorgedelossantos/moro/tree/master/examples/nbooks/](https://nbviewer.jupyter.org/github/jorgedelossantos/moro/tree/master/examples/nbooks/)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Bugs
|
|
27
|
+
|
|
28
|
+
Please report any bugs that you find, use the issue tracker: [https://github.com/jorgedelossantos/moro/issues](https://github.com/jorgedelossantos/moro/issues)
|
|
29
|
+
|
|
30
|
+
# Roadmap
|
|
31
|
+
|
|
32
|
+
Roadmap of moro: https://github.com/jorgedelossantos/moro/wiki/Roadmap
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Numython R&D, (c)
|
|
2
|
+
Numython R&D, (c) 2024
|
|
3
3
|
Moro is a Python library for kinematic and dynamic modeling of serial robots.
|
|
4
4
|
This library has been designed, mainly, for academic and research purposes,
|
|
5
5
|
using SymPy as base library.
|
|
@@ -14,10 +14,9 @@ from .plotting import *
|
|
|
14
14
|
from .transformations import *
|
|
15
15
|
from .util import *
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
# import sympy functions
|
|
19
|
-
from sympy import solve, symbols,
|
|
20
|
-
from sympy import sin,cos,tan
|
|
18
|
+
from sympy import solve, symbols, pi, simplify, nsimplify, trigsimp
|
|
19
|
+
from sympy import sin,cos,tan,sqrt,atan2
|
|
21
20
|
from sympy.matrices import Matrix, eye, zeros, ones
|
|
22
21
|
from sympy.physics.mechanics import init_vprinting
|
|
23
22
|
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
from sympy import symbols
|
|
2
2
|
from sympy.physics.mechanics import dynamicsymbols
|
|
3
3
|
|
|
4
|
-
t = symbols("t")
|
|
5
|
-
q1,q2,q3,q4,q5,q6 = dynamicsymbols('q_1:7')
|
|
6
|
-
q1p,q2p,q3p,q4p,q5p,q6p = [q.diff(t) for q in (q1,q2,q3,q4,q5,q6)]
|
|
7
|
-
q1pp,q2pp,q3pp,q4pp,q5pp,q6pp = [qp.diff(t) for qp in (q1p,q2p,q3p,q4p,q5p,q6p)]
|
|
4
|
+
t = symbols("t") # time
|
|
5
|
+
q1,q2,q3,q4,q5,q6 = dynamicsymbols('q_1:7') # joint variables
|
|
6
|
+
q1p,q2p,q3p,q4p,q5p,q6p = [q.diff(t) for q in (q1,q2,q3,q4,q5,q6)] # joint velocities
|
|
7
|
+
q1pp,q2pp,q3pp,q4pp,q5pp,q6pp = [qp.diff(t) for qp in (q1p,q2p,q3p,q4p,q5p,q6p)] # joint accelerations
|
|
8
8
|
t1,t2,t3,t4,t5,t6 = symbols('theta_1:7', real=True) # theta parameter
|
|
9
|
-
l1,l2,l3,l4,l5,l6 = symbols('l_1:7', real=True)
|
|
10
|
-
lc1,lc2,lc3,lc4,lc5,lc6 = symbols('l_c1:7', real=True)
|
|
11
|
-
d1,d2,d3,d4,d5,d6 = symbols('d_1:7', real=True)
|
|
9
|
+
l1,l2,l3,l4,l5,l6 = symbols('l_1:7', real=True) # parameters for constant lengths of the robot
|
|
10
|
+
lc1,lc2,lc3,lc4,lc5,lc6 = symbols('l_c1:7', real=True) # parameters for center of mass location
|
|
11
|
+
d1,d2,d3,d4,d5,d6 = symbols('d_1:7', real=True) # for constant lengths of the robot
|
|
12
12
|
m1,m2,m3,m4,m5,m6 = symbols('m_1:7', real=True) # for mass symbols
|
|
13
|
-
a1,a2,a3,a4,a5,a6 = symbols('a_1:7', real=True)
|
|
14
|
-
x0,x1,x2,x3,x4,x5,x6 = symbols("x_0:7", real=True)
|
|
13
|
+
a1,a2,a3,a4,a5,a6 = symbols('a_1:7', real=True) # for constant lengths of the robot
|
|
14
|
+
x0,x1,x2,x3,x4,x5,x6 = symbols("x_0:7", real=True)
|
|
15
15
|
y0,y1,y2,y3,y4,y5,y6 = symbols("y_0:7", real=True)
|
|
16
16
|
z0,z1,z2,z3,z4,z5,z6 = symbols("z_0:7", real=True)
|
|
17
17
|
g = symbols("g") # gravity
|
|
18
|
+
tau1,tau2,tau3,tau4,tau5,tau6 = symbols("tau_1:7", real=True) # for generalized forces/torques
|
|
18
19
|
|
|
19
20
|
# Some common greek letters
|
|
20
21
|
alpha,beta,gamma,delta = symbols("alpha,beta,gamma,delta", real=True)
|