Download fetch_readings.py from twanghcmut/dexmanip-course: direct link, hf CLI and curl.
- Browser
- Download file 15.4 kB
-
https://huggingface.co/datasets/twanghcmut/dexmanip-course/resolve/main/fetch_readings.py
- Command line
-
hf download hf://datasets/twanghcmut/dexmanip-course/fetch_readings.py
-
curl -L -o fetch_readings.py https://huggingface.co/datasets/twanghcmut/dexmanip-course/resolve/main/fetch_readings.py
15.4 kB
| """Download the primary sources of the course from their official URLs and build one reader PDF per module. | |
| python fetch_readings.py # downloads into sources/, writes readers/m0_reader.pdf to readers/m5_reader.pdf | |
| python fetch_readings.py --offline # build from PDFs already in sources/ | |
| Each reader starts with a cover page that credits every excerpt (authors, title, publisher, year, | |
| official URL and the license notice the source states). The sources are copyrighted and their | |
| licenses allow personal use only, so this script builds the readers on your own machine instead of | |
| the course repository shipping them. Requires PyMuPDF (`pip install pymupdf`). | |
| """ | |
| import sys | |
| import urllib.request | |
| from pathlib import Path | |
| import pymupdf | |
| HERE = Path(__file__).resolve().parent | |
| SOURCES = HERE / "sources" | |
| READERS = HERE / "readers" | |
| SOURCE_INFO = { | |
| "boyd_cvx": dict( | |
| url="https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf", | |
| cite="Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004.", | |
| home="https://web.stanford.edu/~boyd/cvxbook/", | |
| license="Copyright Cambridge University Press 2004. The authors post the PDF on the book page."), | |
| "mr": dict( | |
| url="http://hades.mech.northwestern.edu/images/7/7f/MR.pdf", | |
| cite="Kevin M. Lynch and Frank C. Park. Modern Robotics: Mechanics, Planning, and Control. " | |
| "Cambridge University Press, 2017 (preprint of May 3, 2017).", | |
| home="http://modernrobotics.org", | |
| license="Preprint made available for personal use only and not for further distribution."), | |
| "mls": dict( | |
| url="https://www.cds.caltech.edu/~murray/books/MLS/pdf/mls94-complete.pdf", | |
| cite="Richard M. Murray, Zexiang Li and S. Shankar Sastry. A Mathematical Introduction to " | |
| "Robotic Manipulation. CRC Press, 1994.", | |
| home="http://www.cds.caltech.edu/~murray/mlswiki", | |
| license="Copyright 1994 CRC Press. Electronic edition for personal use only."), | |
| "boyd_wegbreit": dict( | |
| url="https://web.stanford.edu/~boyd/papers/pdf/fast_opt_force.pdf", | |
| cite="Stephen P. Boyd and Ben Wegbreit. Fast computation of optimal contact forces. " | |
| "IEEE Transactions on Robotics 23(6):1117-1132, 2007. DOI 10.1109/TRO.2007.910774.", | |
| home="https://web.stanford.edu/~boyd/papers/fast_opt_force.html", | |
| license="Copyright 2007 IEEE. Posted on the first author's page."), | |
| "todorov2014": dict( | |
| url="https://roboti.us/lab/papers/TodorovICRA14.pdf", | |
| cite="Emanuel Todorov. Convex and analytically-invertible dynamics with contacts and constraints: " | |
| "Theory and implementation in MuJoCo. IEEE ICRA 2014.", | |
| home="https://roboti.us/lab/papers.html", | |
| license="The PDF carries no copyright or license notice. Posted on the author's lab page."), | |
| "anitescu2006": dict( | |
| url="https://optimization-online.org/wp-content/uploads/2004/08/920.pdf", | |
| cite="Mihai Anitescu. Optimization-based simulation of nonsmooth rigid multibody dynamics. " | |
| "Mathematical Programming 105:113-143, 2006 (preprint). DOI 10.1007/s10107-005-0590-7.", | |
| home="https://optimization-online.org/2004/08/920/", | |
| license="The preprint carries no copyright or license notice."), | |
| "lelidec2024": dict( | |
| url="https://arxiv.org/pdf/2304.06372v3", | |
| cite="Quentin Le Lidec, Wilson Jallet, Louis Montaut, Ivan Laptev, Cordelia Schmid and Justin Carpentier. " | |
| "Contact models in robotics: a comparative analysis. IEEE Transactions on Robotics, 2024 (arXiv 2304.06372v3).", | |
| home="https://arxiv.org/abs/2304.06372", | |
| license="arXiv.org perpetual, non-exclusive license."), | |
| "liu2021": dict( | |
| url="https://arxiv.org/pdf/2104.09194v4", | |
| cite="Tengyu Liu, Zeyu Liu, Ziyuan Jiao, Yixin Zhu and Song-Chun Zhu. Synthesizing diverse and physically stable " | |
| "grasps with arbitrary hand structures using differentiable force closure estimator. IEEE Robotics and " | |
| "Automation Letters 7(1):470-477, 2022 (arXiv 2104.09194v4).", | |
| home="https://arxiv.org/abs/2104.09194", | |
| license="CC BY-NC-SA 4.0."), | |
| "dexgraspnet": dict( | |
| url="https://arxiv.org/pdf/2210.02697v2", | |
| cite="Ruicheng Wang, Jialiang Zhang, Jiayi Chen, Yinzhen Xu, Puhao Li, Tengyu Liu and He Wang. DexGraspNet: a " | |
| "large-scale robotic dexterous grasp dataset for general objects based on simulation. IEEE ICRA 2023 " | |
| "(arXiv 2210.02697v2).", | |
| home="https://arxiv.org/abs/2210.02697", | |
| license="CC BY 4.0."), | |
| "bodex": dict( | |
| url="https://arxiv.org/pdf/2412.16490v3", | |
| cite="Jiayi Chen, Yubin Ke and He Wang. BODex: scalable and efficient robotic dexterous grasp synthesis using " | |
| "bilevel optimization. IEEE ICRA 2025 (arXiv 2412.16490v3).", | |
| home="https://arxiv.org/abs/2412.16490", | |
| license="CC BY 4.0."), | |
| "schulman2016gae": dict( | |
| url="https://arxiv.org/pdf/1506.02438v6", | |
| cite="John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan and Pieter Abbeel. High-dimensional " | |
| "continuous control using generalized advantage estimation. ICLR 2016 (arXiv 1506.02438v6).", | |
| home="https://arxiv.org/abs/1506.02438", | |
| license="arXiv.org perpetual, non-exclusive license."), | |
| "schulman2017ppo": dict( | |
| url="https://arxiv.org/pdf/1707.06347v2", | |
| cite="John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford and Oleg Klimov. Proximal policy " | |
| "optimization algorithms. arXiv 1707.06347v2, 2017.", | |
| home="https://arxiv.org/abs/1707.06347", | |
| license="arXiv.org perpetual, non-exclusive license."), | |
| "deepmimic": dict( | |
| url="https://arxiv.org/pdf/1804.02717v3", | |
| cite="Xue Bin Peng, Pieter Abbeel, Sergey Levine and Michiel van de Panne. DeepMimic: example-guided deep " | |
| "reinforcement learning of physics-based character skills. ACM Transactions on Graphics 37(4), article " | |
| "143, 2018 (arXiv 1804.02717v3, with the supplementary material).", | |
| home="https://arxiv.org/abs/1804.02717", | |
| license="arXiv.org perpetual, non-exclusive license. Publication rights licensed to ACM."), | |
| "pgdm": dict( | |
| url="https://arxiv.org/pdf/2209.11221v2", | |
| cite="Sudeep Dasari, Abhinav Gupta and Vikash Kumar. Learning dexterous manipulation from exemplar object " | |
| "trajectories and pre-grasps. IEEE ICRA 2023 (arXiv 2209.11221v2, full version with appendices).", | |
| home="https://arxiv.org/abs/2209.11221", | |
| license="CC BY-NC-ND 4.0."), | |
| "dexmachina": dict( | |
| url="https://arxiv.org/pdf/2505.24853v1", | |
| cite="Zhao Mandi, Yifan Hou, Dieter Fox, Yashraj Narang, Ajay Mandlekar and Shuran Song. DexMachina: " | |
| "functional retargeting for bimanual dexterous manipulation. arXiv 2505.24853v1, 2025.", | |
| home="https://arxiv.org/abs/2505.24853", | |
| license="CC BY 4.0."), | |
| "hot": dict( | |
| url="https://arxiv.org/pdf/2512.19583v2", | |
| cite="Runyi Yu, Xiaoyi Lin, Hok Wai Tsui, Yinhuai Wang, Zhijie Peng, Hui Zhang, Qihan Zhao, Ke Fan, Miao Li, " | |
| "Jie Song, Jingbo Wang, Qifeng Chen and Ping Tan. HOT: learning generalizable hand-object tracking " | |
| "without human demonstration. NeurIPS 2026 (arXiv 2512.19583v2, listed there as \"Learning " | |
| "generalizable hand-object tracking from synthetic demonstrations\").", | |
| home="https://arxiv.org/abs/2512.19583", | |
| license="CC BY-NC-ND 4.0."), | |
| "spider": dict( | |
| url="https://arxiv.org/pdf/2511.09484v3", | |
| cite="Chaoyi Pan, Changhao Wang, Haozhi Qi, Julen Urain, Zixi Liu, Homanga Bharadhwaj, Akash Sharma, " | |
| "Tingfan Wu, Guanya Shi, Jitendra Malik and Francois Hogan. SPIDER: scalable physics-informed " | |
| "dexterous retargeting. arXiv 2511.09484v3, 2026.", | |
| home="https://arxiv.org/abs/2511.09484", | |
| license="CC BY 4.0."), | |
| "maniptrans": dict( | |
| url="https://arxiv.org/pdf/2503.21860v1", | |
| cite="Kailin Li, Puhao Li, Tengyu Liu, Yuyang Li and Siyuan Huang. ManipTrans: efficient dexterous " | |
| "bimanual manipulation transfer via residual learning. IEEE/CVF CVPR 2025 (arXiv 2503.21860v1).", | |
| home="https://arxiv.org/abs/2503.21860", | |
| license="arXiv.org perpetual, non-exclusive license."), | |
| "dextrack": dict( | |
| url="https://arxiv.org/pdf/2502.09614v1", | |
| cite="Xueyi Liu, Jianibieke Adalibieke, Qianwei Han, Yuzhe Qin and Li Yi. DexTrack: towards generalizable " | |
| "neural tracking control for dexterous manipulation from human references. ICLR 2025 " | |
| "(arXiv 2502.09614v1).", | |
| home="https://arxiv.org/abs/2502.09614", | |
| license="CC BY-NC-SA 4.0."), | |
| } | |
| # (source key, first PDF page, last PDF page, what the excerpt covers); PDF pages counted from 1. | |
| READER_PAGES = { | |
| "m0": [ | |
| ("boyd_cvx", 35, 48, "Boyd and Vandenberghe 2.1 to 2.2: convex sets, cones, norm cones"), | |
| ("boyd_cvx", 57, 72, "Boyd and Vandenberghe 2.4 to 2.6: generalized inequalities, separation, dual cones"), | |
| ("boyd_cvx", 150, 173, "Boyd and Vandenberghe 4.2 to 4.4: convex problems, LP, QP, SOCP"), | |
| ("boyd_cvx", 181, 187, "Boyd and Vandenberghe 4.6: conic form problems"), | |
| ("boyd_cvx", 229, 245, "Boyd and Vandenberghe 5.1 to 5.2: Lagrangian and the dual problem"), | |
| ("boyd_cvx", 255, 262, "Boyd and Vandenberghe 5.5: optimality conditions, KKT"), | |
| ("boyd_cvx", 272, 285, "Boyd and Vandenberghe 5.8 to 5.9: theorems of alternatives, generalized inequalities"), | |
| ("mr", 107, 129, "Lynch and Park 3.3 to 3.4: twists, the adjoint, wrenches"), | |
| ("mls", 79, 82, "Murray, Li and Sastry 2.5.1: wrenches and change of frame"), | |
| ], | |
| "m1": [ | |
| ("mr", 479, 512, "Lynch and Park 12.1 to 12.2: contact kinematics, contact forces and friction"), | |
| ("mls", 229, 251, "Murray, Li and Sastry 5.1 to 5.4: contact models, grasp map, force closure"), | |
| ("boyd_wegbreit", 1, 16, "Boyd and Wegbreit 2007: fast computation of optimal contact forces"), | |
| ], | |
| "m2": [ | |
| ("mr", 301, 309, "Lynch and Park 8.2: dynamics of a single rigid body"), | |
| ("anitescu2006", 1, 28, "Anitescu 2006: optimization-based simulation of nonsmooth rigid multibody dynamics"), | |
| ("todorov2014", 1, 8, "Todorov 2014: convex and analytically-invertible dynamics with contacts (MuJoCo)"), | |
| ("lelidec2024", 1, 17, "Le Lidec et al. 2024: contact models in robotics, a comparative analysis"), | |
| ], | |
| "m3": [ | |
| ("liu2021", 1, 9, "Liu et al. 2021: differentiable force closure (DFC)"), | |
| ("dexgraspnet", 1, 8, "Wang et al. 2023: DexGraspNet"), | |
| ("bodex", 1, 8, "Chen, Ke and Wang 2025: BODex"), | |
| ], | |
| "m4": [ | |
| ("schulman2016gae", 1, 14, "Schulman et al. 2016: generalized advantage estimation"), | |
| ("schulman2017ppo", 1, 12, "Schulman et al. 2017: proximal policy optimization"), | |
| ("deepmimic", 1, 18, "Peng et al. 2018: DeepMimic, with the supplementary material"), | |
| ], | |
| "m5": [ | |
| ("pgdm", 1, 16, "Dasari, Gupta and Kumar 2023: PGDM, pre-grasps and exemplar object trajectories"), | |
| ("dexmachina", 1, 18, "Mandi et al. 2025: DexMachina, virtual object controllers and their curriculum"), | |
| ("hot", 1, 24, "Yu et al. 2026: HOT, without the NeurIPS checklist"), | |
| ("spider", 1, 22, "Pan et al. 2026: SPIDER, main text and appendix A"), | |
| ], | |
| } | |
| NOT_INCLUDED = { | |
| "m1": "Not included: Carlo Ferrari and John Canny, Planning optimal grasps, Proc. IEEE ICRA 1992, " | |
| "pp. 2290-2295, DOI 10.1109/ROBOT.1992.219918. Available through IEEE Xplore with a subscription. " | |
| "The notes present the epsilon metric from Lynch and Park 12.1.7.3 instead.", | |
| "m2": "Read online, not included: the MuJoCo documentation, chapters Computation and Modeling " | |
| "(https://mujoco.readthedocs.io/en/stable/computation/index.html, CC BY 4.0), and Russ Tedrake, " | |
| "Robotic Manipulation and Underactuated Robotics, the contact simulation sections " | |
| "(https://manipulation.csail.mit.edu/clutter.html, https://underactuated.mit.edu/multibody.html). " | |
| "Stewart and Trinkle 1996 and Anitescu and Potra 1997 are behind publisher paywalls; the notes " | |
| "cite them only through Anitescu 2006.", | |
| "m4": "Read online, not included: OpenAI Spinning Up, Part 3 and the PPO page " | |
| "(https://spinningup.openai.com/en/latest/spinningup/rl_intro3.html, " | |
| "https://spinningup.openai.com/en/latest/algorithms/ppo.html), and Shengyi Huang et al., The 37 " | |
| "implementation details of proximal policy optimization, ICLR Blog Track 2022 " | |
| "(https://iclr-blog-track.github.io/2022/03/25/ppo-implementation-details/).", | |
| "m5": "Optional, read online and not included, to keep the reader small: ManipTrans, Li et al., CVPR 2025 " | |
| "(https://arxiv.org/abs/2503.21860, arXiv perpetual non-exclusive license), and DexTrack, Liu et al., " | |
| "ICLR 2025 (https://arxiv.org/abs/2502.09614, CC BY-NC-SA 4.0).", | |
| } | |
| def fetch(key): | |
| dst = SOURCES / f"{key}.pdf" | |
| if dst.exists(): | |
| return dst | |
| SOURCES.mkdir(exist_ok=True) | |
| print("downloading", SOURCE_INFO[key]["url"]) | |
| req = urllib.request.Request(SOURCE_INFO[key]["url"], headers={"User-Agent": "dexmanip-course-reader"}) | |
| with urllib.request.urlopen(req, timeout=120) as r, open(dst.with_suffix(".part"), "wb") as f: | |
| f.write(r.read()) | |
| dst.with_suffix(".part").rename(dst) | |
| return dst | |
| def cover(doc, module, parts): | |
| page = doc.new_page(0, width=595, height=842) | |
| lines = [f"Dexterous manipulation, module {module.upper()}: reader", "", | |
| "Excerpts from the primary sources, in reading order. Page numbers below are the source's PDF pages.", | |
| "The study notes of the module follow these readings and cite them section by section.", ""] | |
| for key, a, b, what in parts: | |
| info = SOURCE_INFO[key] | |
| lines += [f"{what} (PDF pages {a} to {b})", f" {info['cite']}", f" {info['home']}", | |
| f" License: {info['license']}", ""] | |
| if module in NOT_INCLUDED: | |
| lines += [NOT_INCLUDED[module], ""] | |
| lines += ["Built by fetch_readings.py for personal study. Do not redistribute."] | |
| page.insert_textbox(pymupdf.Rect(50, 50, 545, 800), "\n".join(lines), fontsize=9, fontname="helv") | |
| def build(module, offline): | |
| parts = READER_PAGES[module] | |
| out = pymupdf.open() | |
| toc = [] | |
| for key, a, b, what in parts: | |
| src = SOURCES / f"{key}.pdf" | |
| if not offline: | |
| fetch(key) | |
| if not src.exists(): | |
| sys.exit(f"missing {src}; run without --offline to download it") | |
| toc.append([1, what, len(out) + 2]) | |
| with pymupdf.open(src) as s: | |
| out.insert_pdf(s, from_page=a - 1, to_page=b - 1) | |
| cover(out, module, parts) | |
| out.set_toc([[1, "Cover and credits", 1]] + toc) | |
| READERS.mkdir(exist_ok=True) | |
| dst = READERS / f"{module}_reader.pdf" | |
| out.save(dst, garbage=3, deflate=True) | |
| print(f"wrote {dst} ({len(out)} pages)") | |
| if __name__ == "__main__": | |
| for m in READER_PAGES: | |
| build(m, "--offline" in sys.argv) | |