https://nl.mathworks.com/help/nav/ref/dynamiccapsulelist.addego.html
addEgo - Add ego bodies to capsule list - MATLAB
This MATLAB function adds one or more ego bodies to the 2-D dynamic capsule list with the specified ID, state, and geometry values given in egoStruct.
addegobodiescapsulelist