A container is a block of code which is able to communicate with any other containers in the Luos network.
Each container provides a particular set of tasks such as managing a motor, handling a laser range finder, or compute an inverse-kinematics. Each container is hosted in a single nodeHardware element (MCU) hosting and running Luos and hosting one or several containers. (MCU), but a node can handle several containers at the same time and manage communication between them and between other containers hosted in other nodes, using the same interface.
As a developer you will always develop your functionalities into containers, and never into the
main() program. The only information that should be put on the
main() code are MCU setup parameters and containers' run functions.
To properly work, each container owns some properties allowing to other containers to recognize and access it:
|ID||The ID is a unique number given to each container depending on their physical position. The system automatically assigns each ID during the detection phase. If you move a container from a microcontroller A to a microcontroller B on a given device, the ID will change. In the same way, if you change the wiring order of a microcontroler on the network on a given device, the ID will change too.||Integer|
|TYPE||The type defines the container purpose. A few types are predefined and can be used, or new ones can be created. The container type can't be changed after container initialization.||String|
|ALIAS||Alias is the name of the container. It's used to easily identify a container. Each container has a default alias which can be changed by users. For example, a container with the default alias ||String|