An add-on is a script running in CoppeliaSim, that can act in a similar way as a plugin: it is automatically loaded at program start-up, and allows CoppeliaSim's functionality to be extended by user-written functionality or functions; it persists across all opened scenes, and is executed constantly, effectively running in the background. Add-ons can run threaded or non-threaded, should be segmented into several system callback functions, and follow a precise execution order in relation with other script types. They share a lot of properties with the sandbox script. Add-ons can be accessed via [Menu bar --> Modules].
Add-ons should be written in a text file located in <CoppeliaSim folder>/addOns/ with following naming convention: simAddOnXXXX.lua (even add-ons containing Python code). Add-ons that do not follow above naming convention can still be loaded and run via command line options.
By default, add-ons will automatically start when CoppeliaSim starts, e.g.:
An add-on can also be manually started and stopped from the add-on menu (Lua only), e.g.:
An add-on can also be suspended/resumed from the add-on menu, e.g.:
An add-on can also act as a simple function triggered by the user (Lua only), e.g.:
An add-on can also display a customized name in the Modules' menu (Lua only), e.g.: