Skip to main content

schema

Function schema 

Source
pub fn schema(entry: &MachineEntry, cfg: &Config) -> Result<Config, ConfigError>
Expand description

The keys a config for entry may have: its default config’s, and a motor’s own table ([motor.<id>] and the rest of catalog::PER_MOTOR_TABLES) for every motor of the machine cfg builds and any motor cfg gives one, with the shared table’s keys, though the default has none for that motor (a seven-joint URDF on the arm whose default has six). An id of a table that the machine built from cfg has no motor of is refused (ConfigError::Invalid with <table>.<id>), so a misspelt one is not silently unread. Where cfg does not build, the ids are not checked here: building it reports that error itself.