Skip to main content
Log in

SoRoTop: a hitchhiker’s guide to topology optimization MATLAB code for design-dependent pneumatic-driven soft robots

  • Educational article
  • Published:
Optimization and Engineering Aims and scope Submit manuscript

Abstract

Demands for pneumatic-driven soft robots are constantly rising for various applications. However, they are often designed manually due to the lack of systematic methods. Moreover, design-dependent characteristics of pneumatic actuation pose distinctive challenges. This paper provides a compact MATLAB code, named SoRoTop, and its various extensions for designing pneumatic-driven soft robots using topology optimization. The code uses the method of moving asymptotes as the optimizer and builds upon the approach initially presented in Kumar et al. (Struct Multidiscip Optim 61(4):1637–1655, 2020). The pneumatic load is modeled using Darcy’s law with a conceptualized drainage term. Consistent nodal loads are determined from the resultant pressure field using the conventional finite element approach. The robust formulation is employed, i.e., the eroded and blueprint design descriptions are used. A min–max optimization problem is formulated using the output displacements of the eroded and blueprint designs. A volume constraint is imposed on the blueprint design, while the eroded design is used to apply a conceptualized strain energy constraint. The latter constraint aids in attaining optimized designs that can endure the applied load without compromising their performance. Sensitivities required for optimization are computed using the adjoint-variable method. The code is explained in detail, and various extensions are also presented. It is structured into pre-optimization, MMA optimization, and post-optimization operations, each of which is comprehensively detailed. The paper also illustrates the impact of load sensitivities on the optimized designs. SoRoTop is provided in “Appendix A” and is available with extensions in the supplementary material and publicly at https://github.com/PrabhatIn/SoRoTop.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Algorithm 1
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17

Similar content being viewed by others

References

  • Alexandersen J (2023) A detailed introduction to density-based topology optimisation of fluid flow problems with implementation in MATLAB. Struct Multidiscip Optim 66(1):1–38

  • Ali MA, Shimoda M (2022) Toward multiphysics multiscale concurrent topology optimization for lightweight structures with high heat conductivity and high stiffness using MATLAB. Struct Multidiscip Optim 65(7):1–26

  • Andreassen E, Clausen A, Schevenels M, Lazarov BS, Sigmund O (2011) Efficient topology optimization in MATLAB using 88 lines of code. Struct Multidiscip Optim 43(1):1–16

    Article  MATH  Google Scholar 

  • Bruns TE, Tortorelli DA (2001) Topology optimization of non-linear elastic structures and compliant mechanisms. Comput Method Appl Mech Eng 190(26–27):3443–3459

    Article  MATH  Google Scholar 

  • Chen F, Xu W, Zhang H, Wang Y, Cao J, Wang MY, Ren H, Zhu J, Zhang Y (2018) Topology optimized design, fabrication, and characterization of a soft cable-driven gripper. IEEE Robot Autom Lett 3(3):2463–2470

    Article  Google Scholar 

  • Deimel R, Brock O (2013) A compliant hand based on a novel pneumatic actuator. In: 2013 IEEE international conference on robotics and automation. IEEE, pp 2047–2053

  • Fernández E, Yang K-K, Koppen S, Alarcón P, Bauduin S, Duysinx P (2020) Imposing minimum and maximum member size, minimum cavity size, and minimum separation distance between solid members in topology optimization. Comput Methods Appl Mech Eng 368:113157

    Article  MathSciNet  MATH  Google Scholar 

  • Ferrari F, Sigmund O, Guest JK (2021) Topology optimization with linearized buckling criteria in 250 lines of MATLAB. Struct Multidiscip Optim 63(6):3045–3066

    Article  MathSciNet  Google Scholar 

  • Gao J, Luo Z, Xia L, Gao L (2019) Concurrent topology optimization of multiscale composite structures in MATLAB. Struct Multidiscip Optim 60(6):2621–2651

    Article  MathSciNet  Google Scholar 

  • Gorissen B, Reynaerts D, Konishi S, Yoshida K, Kim J-W, De Volder M (2017) Elastic inflatable actuators for soft robotic applications. Adv Mater 29(43):1604977

    Article  Google Scholar 

  • Hammer VB, Olhoff N (2000) Topology optimization of continuum structures subjected to pressure loading. Struct Multidiscip Optim 19(2):85–92

    Article  Google Scholar 

  • Hiller J, Lipson H (2011) Automatic design and manufacture of soft robots. IEEE Trans Robot 28(2):457–466

    Article  Google Scholar 

  • Homayouni-Amlashi A, Schlinquer T, Mohand-Ousaid A, Rakotondrabe M (2021) 2D topology optimization MATLAB codes for piezoelectric actuators and energy harvesters. Struct Multidiscip Optim 63(2):983–1014

    Article  MathSciNet  Google Scholar 

  • Hu X, Chen A, Luo Y, Zhang C, Zhang E (2018) Steerable catheters for minimally invasive surgery: a review and future directions. Comput Assist Surg 23(1):21–41

    Article  Google Scholar 

  • Jin H, Dong E, Xu M, Liu C, Alici G, Jie Y (2016) Soft and smart modular structures actuated by shape memory alloy (SMA) wires as tentacles of soft robots. Smart Mater Struct 25(8):085026

    Article  Google Scholar 

  • Kumar P (2022) Towards topology optimization of pressure-driven soft robots. In: Microactuators, microsensors and micromechanisms: MAMM (2022). Springer, Berlin, pp 19–30

  • Kumar P (2023a) HoneyTop90: A 90-line MATLAB code for topology optimization using honeycomb tessellation. Optim Eng 24(2):1433–1460

  • Kumar P (2023b) TOPress: a MATLAB implementation for topology optimization of structures subjected to design-dependent pressure loads. Struct Multidiscip Optim 66(4):97

  • Kumar P, Langelaar M (2021) On topology optimization of design-dependent pressure-loaded three-dimensional structures and compliant mechanisms. Int J Numer Methods Eng 122(9):2205–2220

    Article  MathSciNet  Google Scholar 

  • Kumar P, Langelaar M (2022) Topological synthesis of fluidic pressure-actuated robust compliant mechanisms. Mech Mach Theory 174:104871

    Article  Google Scholar 

  • Kumar P, Saxena A (2022) An improved material mask overlay strategy for the desired discreteness of pressure-loaded optimized topologies. Struct Multidiscip Optim 65(10):304

    Article  MathSciNet  Google Scholar 

  • Kumar P, Saxena A, Sauer RA (2019) Computational synthesis of large deformation compliant mechanisms undergoing self and mutual contact. J Mech Des 141(1):012302

    Article  Google Scholar 

  • Kumar P, Frouws JS, Langelaar M (2020) Topology optimization of fluidic pressure-loaded structures and compliant mechanisms using the Darcy method. Struct Multidiscip Optim 61(4):1637–1655

    Article  MathSciNet  Google Scholar 

  • Kumar P, Schmidleithner C, Larsen N, Sigmund O (2021) Topology optimization and 3D printing of large deformation compliant mechanisms for straining biological tissues. Struct Multidiscip Optim 63:1351–1366

    Article  MathSciNet  Google Scholar 

  • Lu Y, Tong L (2021) Topology optimization of compliant mechanisms and structures subjected to design-dependent pressure loadings. Struct Multidiscip Optim 63(4):1889–1906

    Article  MathSciNet  Google Scholar 

  • Lu Y, Tong L (2022) Optimal design and experimental validation of 3D printed soft pneumatic actuators. Smart Mater Struct 31(11):115010

    Article  Google Scholar 

  • Moscatelli E, Sá LF, Emmendoerfer H Jr, Silva EC (2023) Pure-displacement formulation and bulk modulus propagation for topology optimization with pressure loads. Comput Methods Appl Mech Eng 411:116058

    Article  MathSciNet  MATH  Google Scholar 

  • Panganiban H, Jang G-W, Chung T-J (2010) Topology optimization of pressure-actuated compliant mechanisms. Finite Elem Anal Des 46(3):238–246

    Article  Google Scholar 

  • Picelli R, Neofytou A, Kim HA (2019) Topology optimization for design-dependent hydrostatic pressure loading via the level-set method. Struct Multidiscip Optim 60(4):1313–1326

    Article  MathSciNet  Google Scholar 

  • Picelli R, Sivapuram R, Xie YM (2021) A 101-line MATLAB code for topology optimization using binary variables and integer programming. Struct Multidiscip Optim 63(2):935–954

    Article  MathSciNet  Google Scholar 

  • Pinskier J, Kumar P, Langelaar M, Howard D (2023) Automated design of pneumatic soft grippers through design-dependent multi-material topology optimization. In: 6th IEEE-RAS international conference on soft robotics (RoboSoft 2023). IEEE

  • Polygerinos P, Lyne S, Wang Z, Nicolini LF, Mosadegh B, Whitesides GM, Walsh CJ (2013) Towards a soft pneumatic glove for hand rehabilitation. In: 2013 IEEE/RSJ international conference on intelligent robots and systems. IEEE, pp 1512–1517

  • Poulsen TA (2003) A new scheme for imposing a minimum length scale in topology optimization. Int J Numer Methods Eng 57(6):741–760

    Article  MathSciNet  MATH  Google Scholar 

  • Pourazadi S, Bui H, Menon C (2019) Investigation on a soft grasping gripper based on dielectric elastomer actuators. Smart Mater Struct 28(3):035009

    Article  Google Scholar 

  • Saxena A, Ananthasuresh GK (2000) On an optimal property of compliant topologies. Struct Multidiscip Optim 19(1):36–49

    Article  Google Scholar 

  • Saxena R, Saxena A (2007) On honeycomb representation and sigmoid material assignment in optimal topology synthesis of compliant mechanisms. Finite Elem Anal Des 43(14):1082–1098

    Article  Google Scholar 

  • Shintake J, Cacucciolo V, Floreano D, Shea H (2018) Soft robotic grippers. Adv Mater 30(29):1707035

    Article  Google Scholar 

  • Sigmund O (1997) On the design of compliant mechanisms using topology optimization. J Struct Mech 25(4):493–524

    Google Scholar 

  • Sigmund O (2001) A 99 line topology optimization code written in MATLAB. Struct Multidiscip Optim 21(2):120–127

    Article  Google Scholar 

  • Sigmund O, Maute K (2013) Topology optimization approaches. Struct Multidiscip Optim 48(6):1031–1055

    Article  MathSciNet  Google Scholar 

  • Singh N, Kumar P, Saxena A (2020) On topology optimization with elliptical masks and honeycomb tessellation with explicit length scale constraints. Struct Multidiscip Optim 62(3):1227–1251

    Article  MathSciNet  Google Scholar 

  • Souza EM, Silva ECN (2020) Topology optimization applied to the design of actuators driven by pressure loads. Struct Multidiscip Optim 61(5):1763–1786

    Article  MathSciNet  Google Scholar 

  • Suresh K (2010) A 199-line MATLAB code for pareto-optimal tracing in topology optimization. Struct Multidiscip Optim 42:665–679

    Article  MathSciNet  MATH  Google Scholar 

  • Svanberg K (1987) The method of moving asymptotes-a new method for structural optimization. Int J Numer Methods Eng 24(2):359–373

    Article  MathSciNet  MATH  Google Scholar 

  • Svanberg K (2007) MMA and GCMMA-two methods for nonlinear optimization. 1:1–15

  • Vasista S, Tong L (2012) Design and testing of pressurized cellular planar morphing structures. AIAA J 50(6):1328–1338

    Article  Google Scholar 

  • Wang F, Lazarov BS, Sigmund O (2011) On projection methods, convergence and robust formulations in topology optimization. Struct Multidiscip Optim 43:767–784

    Article  MATH  Google Scholar 

  • Wang F, Lazarov BS, Sigmund O, Jensen JS (2014) Interpolation scheme for fictitious domain techniques and topology optimization of finite strain elastic problems. Comput Methods Appl Mech Eng 276:453–472

    Article  MathSciNet  MATH  Google Scholar 

  • Wang C, Zhao Z, Zhou M, Sigmund O, Zhang XS (2021) A comprehensive review of educational articles on structural and multidisciplinary optimization. Struct Multidiscip Optim 64(5):2827–2880

    Article  Google Scholar 

  • Xavier MS, Tawk CD, Zolfagharian A, Pinskier J, Howard D, Young T, Lai J, Harrison SM, Yong YK, Bodaghi M (2022) Soft pneumatic actuators: a review of design, fabrication, modeling, sensing, control and applications. IEEE Access 10:59442–59485

    Article  Google Scholar 

  • Xie Z, Domel AG, An N, Green C, Gong Z, Wang T, Knubben EM, Weaver JC, Bertoldi K, Wen L (2020) Octopus arm-inspired tapered soft actuators with suckers for improved grasping. Soft Robot 7(5):639–648

    Article  Google Scholar 

  • Yin L, Ananthasuresh G (2003) Design of distributed compliant mechanisms. Mech Based Des Struct Mach 31(2):151–179

    Article  Google Scholar 

  • Zhang H, Kumar AS, Fuh JYH, Wang MY (2018) Design and development of a topology-optimized three-dimensional printed soft gripper. Soft Robot 5(5):650–661

    Article  Google Scholar 

  • Zhao H, O’Brien K, Li S, Shepherd RF (2016) Optoelectronically innervated soft prosthetic hand via stretchable optical waveguides. Sci Robot 1(1):7529

    Article  Google Scholar 

Download references

Acknowledgements

The author thanks Prof. Krister Svanberg (krille@math.kth.se) for providing MATLAB codes of the MMA optimizer, and Indian Institute of Technology Hyderabad for the support under the seed Grant with project file number SG/IITH/F297/2022-23/SG-155.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Prabhat Kumar.

Ethics declarations

Conflict of interest

The author declares no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Below is the link to the electronic supplementary material.

Supplementary file 1 (zip 20 KB)

Appendix A: The MATLAB code: SoRoTop

Appendix A: The MATLAB code: SoRoTop

figure s
figure t
figure u
figure v
figure w
figure x

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kumar, P. SoRoTop: a hitchhiker’s guide to topology optimization MATLAB code for design-dependent pneumatic-driven soft robots. Optim Eng (2023). https://doi.org/10.1007/s11081-023-09865-1

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11081-023-09865-1

Keywords

Navigation