MotionController
- class ingeniamotion.MotionController
Bases:
objectMotion Controller.
- servo_name(servo='default')
Get the servo name.
- get_register_enum(register, servo='default', axis=1)
Get a register enum.
- is_alive(servo='default')
Check if the servo is alive.
- property motion_nodes: mappingproxy[str, MotionNode]
Read only dict of motion nodes indexed by alias.
- Return type:
mappingproxy[str,MotionNode]
- create_motion_node(alias, servo, network)
Helper to create and register a motion node.
- Parameters:
alias (
str) – alias to reference the motion node.servo (Servo) – servo instance to associate with the motion node.
network (Network) – network instance to associate with the motion node.
- Return type:
MotionNode- Returns:
The created motion node instance.
- remove_motion_node(alias)
Helper to unregister a servo and cleanup its network.
This will remove the servo from the internal registry, remove the servo->network mapping, delete the FSoE master handler for the servo if present, and delete the network entry when no more servos use it.
- property servos: mappingproxy[str, Servo]
Mapping of
ingenialink.Servoconnected indexed by alias.- Return type:
mappingproxy[str, Servo]- Returns:
A mapping of connected servos indexed by alias.
- property net: mappingproxy[str, Network]
Dict of
ingenialink.Networkconnected indexed by alias.- Return type:
mappingproxy[str, Network]
- register_network(alias, network)
Register a network instance with an alias.
- property configuration: Configuration
Instance of
Configurationclass.- Return type:
- property communication: Communication
Instance of
Communicationclass.- Return type:
- property tests: DriveTests
Instance of
DriveTestsclass.- Return type:
- property info: Information
Instance of
Informationclass.- Return type:
- property fsoe: FSoEMaster
Instance of
FSoEMasterclass.- Return type:
- property io: InputsOutputs
Instance of
InputsOutputsclass.- Return type: