Skip to content

Commit 127540c

Browse files
committed
minor fixes
1 parent 0f296ce commit 127540c

File tree

5 files changed

+153
-3
lines changed

5 files changed

+153
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ Thus, you can use it to check your calculations in the exercises (since sometime
2121
The functions are intended to be imported into Jupyter notebooks and be used from there.
2222
This is because Jupyter allows for displaying formulas using LaTeX (that is, if you have it installed - otherwise it will render them with `matplotlib`).
2323

24-
To get a better feel of how to use the functions, look at the example notebooks under `tests/`.
24+
To get a better feel of how to use the functions, look at the example notebooks under `examples/*.ipynbk`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"%autoreload 2\n",
1010
"\n",
1111
"from utils import build_transf, full_homo_transf, prop_velo, prop_force_torque\n",
12-
"from sympy import sqrt, N\n",
12+
"from sympy import sqrt\n",
1313
"import sympy"
1414
],
1515
"metadata": {

examples/test_ex3p2.ipynb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {
7+
"collapsed": true
8+
},
9+
"outputs": [],
10+
"source": [
11+
"%load_ext autoreload\n",
12+
"%autoreload 2\n",
13+
"\n",
14+
"from utils import build_transf, full_homo_transf, prop_velo, prop_force_torque\n",
15+
"from sympy import sqrt\n",
16+
"import sympy"
17+
]
18+
}
19+
],
20+
"metadata": {
21+
"kernelspec": {
22+
"display_name": "Python 3",
23+
"language": "python",
24+
"name": "python3"
25+
},
26+
"language_info": {
27+
"codemirror_mode": {
28+
"name": "ipython",
29+
"version": 2
30+
},
31+
"file_extension": ".py",
32+
"mimetype": "text/x-python",
33+
"name": "python",
34+
"nbconvert_exporter": "python",
35+
"pygments_lexer": "ipython2",
36+
"version": "2.7.6"
37+
}
38+
},
39+
"nbformat": 4,
40+
"nbformat_minor": 0
41+
}

requirements.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: data
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- appnope=0.1.2=py310hbe9552e_2
6+
- argon2-cffi=21.3.0=pyhd8ed1ab_0
7+
- argon2-cffi-bindings=21.2.0=py310he2143c4_1
8+
- asttokens=2.0.5=pyhd8ed1ab_0
9+
- attrs=21.4.0=pyhd8ed1ab_0
10+
- backcall=0.2.0=pyh9f0ad1d_0
11+
- backports=1.0=py_2
12+
- backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
13+
- beautifulsoup4=4.10.0=pyha770c72_0
14+
- bleach=4.1.0=pyhd8ed1ab_0
15+
- bzip2=1.0.8=h3422bc3_4
16+
- ca-certificates=2021.10.8=h4653dfc_0
17+
- cffi=1.15.0=py310hf10583b_0
18+
- debugpy=1.5.1=py310h1b49c16_0
19+
- decorator=5.1.1=pyhd8ed1ab_0
20+
- defusedxml=0.7.1=pyhd8ed1ab_0
21+
- entrypoints=0.4=pyhd8ed1ab_0
22+
- executing=0.8.3=pyhd8ed1ab_0
23+
- flit-core=3.7.1=pyhd8ed1ab_0
24+
- gmp=6.2.1=h9f76cd9_0
25+
- gmpy2=2.1.2=py310h25f46c9_0
26+
- importlib-metadata=4.11.3=py310hbe9552e_0
27+
- importlib_resources=5.4.0=pyhd8ed1ab_0
28+
- ipykernel=6.9.2=py310hc469350_0
29+
- ipython=8.1.1=py310hbe9552e_0
30+
- ipython_genutils=0.2.0=py_1
31+
- ipywidgets=7.7.0=pyhd8ed1ab_0
32+
- jedi=0.18.1=py310hbe9552e_0
33+
- jinja2=3.0.3=pyhd8ed1ab_0
34+
- jsonschema=4.4.0=pyhd8ed1ab_0
35+
- jupyter=1.0.0=py310hbe9552e_7
36+
- jupyter_client=7.1.2=pyhd8ed1ab_0
37+
- jupyter_console=6.4.3=pyhd8ed1ab_0
38+
- jupyter_core=4.9.2=py310hbe9552e_0
39+
- jupyterlab_pygments=0.1.2=pyh9f0ad1d_0
40+
- jupyterlab_widgets=1.1.0=pyhd8ed1ab_0
41+
- libblas=3.9.0=13_osxarm64_openblas
42+
- libcblas=3.9.0=13_osxarm64_openblas
43+
- libcxx=13.0.1=h6a5c8ee_0
44+
- libffi=3.4.2=h3422bc3_5
45+
- libgfortran=5.0.0.dev0=11_0_1_hf114ba7_23
46+
- libgfortran5=11.0.1.dev0=hf114ba7_23
47+
- liblapack=3.9.0=13_osxarm64_openblas
48+
- libopenblas=0.3.18=openmp_h5dd58f0_0
49+
- libsodium=1.0.18=h27ca646_1
50+
- libzlib=1.2.11=hee7b306_1013
51+
- llvm-openmp=13.0.1=h455960f_1
52+
- markupsafe=2.1.1=py310hf8d0d8f_0
53+
- matplotlib-inline=0.1.3=pyhd8ed1ab_0
54+
- mistune=0.8.4=py310he2143c4_1005
55+
- mpc=1.2.1=h309154c_0
56+
- mpfr=4.1.0=h6d7a090_1
57+
- mpmath=1.2.1=pyhd8ed1ab_0
58+
- nbclient=0.5.13=pyhd8ed1ab_0
59+
- nbconvert=6.4.4=py310hbe9552e_0
60+
- nbformat=5.2.0=pyhd8ed1ab_0
61+
- ncurses=6.3=hc470f4d_0
62+
- nest-asyncio=1.5.4=pyhd8ed1ab_0
63+
- notebook=6.4.10=pyha770c72_0
64+
- numpy=1.22.3=py310h2e04ed8_0
65+
- openssl=3.0.0=h3422bc3_2
66+
- packaging=21.3=pyhd8ed1ab_0
67+
- pandocfilters=1.5.0=pyhd8ed1ab_0
68+
- parso=0.8.3=pyhd8ed1ab_0
69+
- pexpect=4.8.0=pyh9f0ad1d_2
70+
- pickleshare=0.7.5=py_1003
71+
- pip=22.0.4=pyhd8ed1ab_0
72+
- prometheus_client=0.13.1=pyhd8ed1ab_0
73+
- prompt-toolkit=3.0.27=pyha770c72_0
74+
- prompt_toolkit=3.0.27=hd8ed1ab_0
75+
- psutil=5.9.0=py310he2143c4_0
76+
- ptyprocess=0.7.0=pyhd3deb0d_0
77+
- pure_eval=0.2.2=pyhd8ed1ab_0
78+
- pycparser=2.21=pyhd8ed1ab_0
79+
- pygments=2.11.2=pyhd8ed1ab_0
80+
- pyparsing=3.0.7=pyhd8ed1ab_0
81+
- pyrsistent=0.18.1=py310he2143c4_0
82+
- python=3.10.2=h38ef502_4_cpython
83+
- python-dateutil=2.8.2=pyhd8ed1ab_0
84+
- python_abi=3.10=2_cp310
85+
- pyzmq=22.3.0=py310h7939bef_1
86+
- readline=8.1=hedafd6a_0
87+
- send2trash=1.8.0=pyhd8ed1ab_0
88+
- setuptools=60.10.0=py310hbe9552e_0
89+
- six=1.16.0=pyh6c4a22f_0
90+
- soupsieve=2.3.1=pyhd8ed1ab_0
91+
- sqlite=3.37.1=h7e3ccbd_0
92+
- stack_data=0.2.0=pyhd8ed1ab_0
93+
- sympy=1.10=py310hbe9552e_0
94+
- terminado=0.13.3=py310hbe9552e_0
95+
- testpath=0.6.0=pyhd8ed1ab_0
96+
- tk=8.6.12=he1e0b03_0
97+
- tornado=6.1=py310he2143c4_2
98+
- traitlets=5.1.1=pyhd8ed1ab_0
99+
- tzdata=2022a=h191b570_0
100+
- wcwidth=0.2.5=pyh9f0ad1d_2
101+
- webencodings=0.5.1=py_1
102+
- wheel=0.37.1=pyhd8ed1ab_0
103+
- widgetsnbextension=3.6.0=py310hbe9552e_0
104+
- xz=5.2.5=h642e427_1
105+
- zeromq=4.3.4=hbdafb3b_1
106+
- zipp=3.7.0=pyhd8ed1ab_1
107+
- zlib=1.2.11=hee7b306_1013
108+
prefix: /opt/homebrew/Caskroom/miniforge/base/envs/data

utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def rad(degrees):
1111

1212

1313
def homo_transf(alpha, a, d, theta):
14-
"""Returns homogeneous transform matrix. Input are D-H-parameters of one link. All angles are in degrees.
14+
"""Returns the homogeneous transform matrix. Input are Denavit-Hartenberg parameters of one link.
15+
All angles are in degrees.
1516
1617
Parameters
1718
----------

0 commit comments

Comments
 (0)