feathersdk.robot.actuator_systems.torso_system Module¶
- class feathersdk.robot.actuator_systems.torso_system.TorsoSystemConfig(*, module_name='torso_system', safe_stop_policy=SafeStopPolicy.COMPLIANCE_MODE, operating_frequency=30, actuators_share_same_endpoint=True)¶
Bases:
ActuatorSystemConfigConfiguration for the torso system.
- Parameters:
module_name (str)
safe_stop_policy (SafeStopPolicy)
operating_frequency (float)
actuators_share_same_endpoint (bool)
- model_config: ClassVar[ConfigDict] = {'frozen': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class feathersdk.robot.actuator_systems.torso_system.TorsoSystem(config, *args, **kwargs)¶
Bases:
ActuatorSystem[TTorsoSystemConfig]A torso system.
- Parameters:
config (TTorsoSystemConfig)
- class feathersdk.robot.actuator_systems.torso_system.EZMotionTorsoSystemConfig(*, module_name='torso_system', safe_stop_policy=SafeStopPolicy.CANNOT_ENTER_SAFE_STOP, operating_frequency=30, actuators_share_same_endpoint=True, lift_motor, direction=1, max_height_mm, min_height_mm, decelerate_stop_in_velocity_control=True)¶
Bases:
TorsoSystemConfigConfiguration for the EZMotion torso system.
- Parameters:
module_name (str)
safe_stop_policy (SafeStopPolicy)
operating_frequency (float)
actuators_share_same_endpoint (bool)
lift_motor (EZMotionMotorConfig)
direction (Literal[1, -1])
decelerate_stop_in_velocity_control (bool)
- safe_stop_policy: SafeStopPolicy¶
The safe stop policy for the torso system.
- lift_motor: EZMotionMotorConfig¶
The configuration for the torso lift motor.
- direction: Literal[1, -1]¶
The direction of the torso lift motor. 1 means encoder counts increase as the height increases, -1 means encoder counts increase as the height decreases.
- decelerate_stop_in_velocity_control: bool¶
Whether to decelerate when setting the velocity to 0 in update_velocity().
- model_config: ClassVar[ConfigDict] = {'frozen': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class feathersdk.robot.actuator_systems.torso_system.EZMotionTorsoSystem(config, *args, **kwargs)¶
Bases:
TorsoSystem[EZMotionTorsoSystemConfig]An EZMotion torso system.
- Parameters:
config (EZMotionTorsoSystemConfig)
- lift_motor: EZMotionMotor[EZMotionMotorConfig]¶
The lift motor.
- await_action_complete()¶
Waits until the last sent action is complete.
- Return type:
None
- recalibrate(allow_load=False, block=False)¶
Recalibrate the lift motor.
- disable()¶
Disable the torso system.
- Return type:
None
- go_to(height, velocity=None, block=False)¶
Go to the given height from the bottom of the torso.
- Parameters:
height (float) – The height to go to in millimeters from the bottom of the torso.
velocity (float) – The velocity to go to in millimeters per second. If None, the velocity will be set to the target velocity of the lift motor. Must be positive.
block (bool) – Whether to block the current thread until the action has been confirmed sent/received by the motor.
- Return type:
None
- update_velocity(velocity, block=False)¶
Update the velocity of the torso system.
Velocity is set by targeting the top/bottom of the height range with the given velocity.
- get_height(fresh_value=False)¶
Get the current height from the bottom of the torso.