gantry_factory
gantry_factory
Factory helpers for building gantry axes and backend state from config.
GantryConstruction
dataclass
Fully built gantry components returned by config factories.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
axes
|
AxisMap
|
Mapping of axis names to constructed axis objects. |
required |
concurrent_axes
|
AxisMap | None
|
Optional concurrent movement subset. |
required |
backend
|
GantryBackend
|
Backend strategy that owns shared gantry behavior. |
required |
build_modbus_gantry
Build Modbus gantry axes and backend from config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict | str | Path
|
Parsed config mapping or JSON file path. |
required |
name
|
str
|
Component name to load. |
'gantry_1'
|
Returns:
| Type | Description |
|---|---|
GantryConstruction
|
Gantry construction bundle for Modbus backend. |
Source code in src/applied_motion/gantry_factory.py
build_fposbapi_gantry
Build FPosBAPI gantry axes and backend from config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict | str | Path
|
Parsed config mapping or JSON file path. |
required |
name
|
str
|
Component name to load. |
'gantry_1'
|
Returns:
| Type | Description |
|---|---|
GantryConstruction
|
Gantry construction bundle for FPosBAPI backend. |
Source code in src/applied_motion/gantry_factory.py
build_gantry_from_config
Build gantry components for configured backend.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict | str | Path
|
Parsed config mapping or JSON file path. |
required |
name
|
str
|
Component name to load. |
'gantry_1'
|
Returns:
| Type | Description |
|---|---|
GantryConstruction
|
Gantry construction bundle. |