feathersdk.robot.actuator_systems.torso_system Module¶
- class feathersdk.robot.actuator_systems.torso_system.TorsoSystemConfig(*, module_name='torso_system', requires_urdf=False, safe_stop_policy=SafeStopPolicy.CANNOT_ENTER_SAFE_STOP, operating_frequency=30.0, actuators_share_same_endpoint=True)¶
Bases:
ActuatorSystemConfig- Parameters:
- safe_stop_policy: SafeStopPolicy¶
The safe stop policy for the torso system.
- 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.TTorsoSystemConfig¶
The type of the torso system configuration.
alias of TypeVar(‘TTorsoSystemConfig’, bound=
TorsoSystemConfig)
- class feathersdk.robot.actuator_systems.torso_system.TorsoSystem(config, *args, **kwargs)¶
Bases:
ActuatorSystem[TTorsoSystemConfig,TActuator],Generic[TTorsoSystemConfig,TActuator]Controls the torso of the robot.
- Parameters:
config (TActuatorSystemConfig)
robot (FeatherRobot)
- class feathersdk.robot.actuator_systems.torso_system.LinearEZMotionTorsoSystemConfig(*, module_name='torso_system', requires_urdf=False, safe_stop_policy=SafeStopPolicy.CANNOT_ENTER_SAFE_STOP, operating_frequency=30.0, 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 torso system.
- Parameters:
module_name (str)
requires_urdf (bool)
safe_stop_policy (SafeStopPolicy)
operating_frequency (Annotated[float, Gt(gt=0.0), Lt(lt=1000.0)])
actuators_share_same_endpoint (bool)
lift_motor (EZMotionMotorConfig)
direction (Literal[1, -1])
decelerate_stop_in_velocity_control (bool)
- 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. Also selects the homing method so the motor always homes to the top.
- 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.LinearEZMotionTorsoSystem(config, *args, **kwargs)¶
Bases:
TorsoSystem[LinearEZMotionTorsoSystemConfig,EZMotionMotor]Controls the linear torso of the robot using an EZMotion motor.
- Parameters:
config (LinearEZMotionTorsoSystemConfig)
robot (FeatherRobot)
- lift_motor: EZMotionMotor¶
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
- enable()¶
Enable 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.