173 |
174 |
175 |
176 | ## Contents
177 |
178 | - [Synopsis](#1)
179 | - [Python Setup Guide](#2)
180 | - [Running Notebooks Locally](#3)
181 | - [Running Notebooks on Google Colab](#4)
182 | - [Citation Info](#5)
183 | - [Acknowledgements](#6)
184 |
185 |
186 |
187 |
188 |
189 | ## Synopsis
190 |
191 | Manipulator kinematics is concerned with the motion of each link within a manipulator without considering mass or force. A serial-link manipulator, which we refer to as a manipulator, is the formal name for a robot that comprises a chain of rigid links and joints, it may contain branches, but it can not have closed loops. Each joint provides one degree of freedom, which may be a prismatic joint providing translational freedom or a revolute joint providing rotational freedom. The base frame of a manipulator represents the reference frame of the first link in the chain, while the last link is known as the end-effector.
192 |
193 | In Part I of the two-part Tutorial, we provide an introduction to modelling manipulator kinematics using the elementary transform sequence (ETS). Then we formulate the first-order differential kinematics, which leads to the manipulator Jacobian, which is the basis for velocity control and inverse kinematics. We describe essential classical techniques which rely on the manipulator Jacobian before exhibiting some contemporary applications.
194 |
195 | In Part II of the Tutorial, we formulate the second-order differential kinematics, leading to a definition of manipulator Hessian. We then describe the differential kinematics' analytical forms, which are essential to dynamics applications. Subsequently, we provide a general formula for higher-order derivatives. The first application we consider is advanced velocity control. In this Section, we extend resolved-rate motion control to perform sub-tasks while still achieving the goal before redefining the algorithm as a quadratic program to enable greater flexibility and additional constraints. We then take another look at numerical inverse kinematics with an emphasis on adding constraints. Finally, we analyse how the manipulator Hessian can help to escape singularities.
196 |
197 |
198 |
199 |
200 |
201 | ## Python Setup Guide
202 |
203 | The Notebooks are written using Python and we use several python packages. We recommend that you set up a virtual environment/Python environment manager. We provide a guide to setting up Conda below but feel free to use any alternative such as `virtualenv` or `venv`.
204 |
205 | The Notebooks have been tested to run on Ubuntu, Windows and Mac OS with any currently supported version of Python (currently 3.7, 3.8 3.9 and 3.10).
206 |
207 | ### Conda Environment Setup Guide
208 |
209 | Download `miniconda` from [here](https://docs.conda.io/en/latest/miniconda.html#latest-miniconda-installer-links) while choosing the link for your operating system and architecture.
210 |
211 | Follow the Conda install instructions from [here](https://conda.io/projects/conda/en/latest/user-guide/install/index.html#installation).
212 |
213 | In the terminal, make a new `conda` environment. We called our environment `dktutorial` and recommend choosing Python version `3.10`
214 |
215 | ```bash
216 | conda create --name dktutorial python=3.10
217 | ```
218 |
219 | We need to activate our environment to use it
220 |
221 | ```bash
222 | conda activate dktutorial
223 | ```
224 |
225 | Check out this [link](https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf) for a handy Conda command cheat sheet. There is also a ~30 minute Conda Tutorial available [here](https://conda.io/projects/conda/en/latest/user-guide/getting-started.html).
226 |
227 | ### Python Package Install Guide
228 |
229 | We require several Python packages to run the Notebooks. You should activate the Conda environment before completing this stage.
230 |
231 | We use IPython and Jupyter notebook
232 |
233 | ```bash
234 | pip install ipython notebook
235 | ```
236 |
237 | Install the Robotics Toolbox for Python and associated packages. This will also install other requirements such as Swift and Spatialmath-Python.
238 |
239 | ```bash
240 | pip install "roboticstoolbox-python>=1.1.0"
241 | ```
242 |
243 | For Notebooks in Part II we need `sympy` and `qpsolvers`
244 |
245 | ```bash
246 | pip install sympy qpsolvers[quadprog]
247 | ```
248 |
249 |
250 |
251 |
252 |
253 | ## Running Notebooks Locally
254 |
255 | We have tested the Notebooks in the default Jupyter Notebook web interface and the VSCode Notebook extension.
256 |
257 | ### Clone the Repository
258 |
259 | Firstly, you must clone the repository
260 |
261 | ```bash
262 | git clone https://github.com/jhavl/dkt.git
263 | cd dkt
264 | ```
265 |
266 | ### Running in the Jupyter Notebook Web Interface
267 |
268 | In terminal, activate the conda environment, navigate to the repository folder and run
269 |
270 | ```bash
271 | conda activate dktutorial
272 | cd "path_to_repo/dkt"
273 | jupyter-notebook
274 | ```
275 |
276 | ### Running in the VSCode Interface
277 |
278 | Download and install VSCode from [here](https://code.visualstudio.com/).
279 |
280 | Add the `Python` extension, see this [link](https://marketplace.visualstudio.com/items?itemName=ms-python.python) (if not already installed).
281 |
282 | Add the `Jupyter` extension, see this [link](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) (if not already installed).
283 |
284 | From VSCode, select `Open Folder...` and navigate to and select the repository folder. You may be prompted to select if you trust the contents of the folder. **Warning** If you decline to trust the folder, it is unlikely that you will be able to run any of the Notebooks.
285 |
286 | After selecting the folder, choose which Notebook you would like to run from the Explorer menu on the left side of the screen.
287 |
288 | Once a Notebook is open, you must select the kernel from the `Select Kernel` button on the top right side of the screen. Choose the conda environment we created earlier `dktutorial (Python 3.10.X)`.
289 |
290 |
291 |
292 |
293 |
294 | ## Running Notebooks on Google Colab
295 |
296 | For the fastest and smoothest experience, it is recommended to run the Notebooks locally. However, most Notebooks can be run online on the Google Colab platform. Click the links in the table at the top of the page to open a Notebook in Colab.
297 |
298 |
299 |
300 |
301 |
302 | ## Citation Info
303 |
304 | Please cite us if you use this work in your research, for Part 1:
305 |
306 | ```
307 | @article{haviland2023dkt1,
308 | author={Haviland, Jesse and Corke, Peter},
309 | title={Manipulator Differential Kinematics: Part I: Kinematics, Velocity, and Applications},
310 | journal={IEEE Robotics \& Automation Magazine},
311 | year={2023},
312 | pages={2-12},
313 | doi={10.1109/MRA.2023.3270228}
314 | }
315 | ```
316 |
317 | and for Part 2:
318 |
319 | ```
320 | @article{haviland2023dkt2,
321 | author={Haviland, Jesse and Corke, Peter},
322 | title={Manipulator Differential Kinematics: Part II: Acceleration and Advanced Applications},
323 | journal={IEEE Robotics \& Automation Magazine},
324 | year={2023},
325 | pages={2-12},
326 | doi={10.1109/MRA.2023.3270221}
327 | }
328 | ```
329 |
330 |
331 |
332 |
333 |
334 | ## Acknowledgements
335 |
336 | This research was supported by the Queensland University of Technology Centre for Robotics ([QCR](https://research.qut.edu.au/qcr/)).
337 |
338 |
339 |
--------------------------------------------------------------------------------