|
upkie
11.0.0
Open-source wheeled biped robots
|
| def __init__ | ( | self, | |
| Literal["left_axis", "right_axis"] | joystick_axis = "left_axis", |
||
| float | max_linear_accel = 1.2, |
||
| float | max_linear_velocity = 1.5, |
||
| float | max_yaw_accel = 10.0, |
||
| float | max_yaw_velocity = 1.0, |
||
| float | turning_deadband = 0.3, |
||
| float | turning_decision_time = 0.2 |
||
| ) |
Initialize joystick controller.
| joystick_axis | Joystick axis to read inputs from. Up-down stick motions control the linear velocity, while left-right motions control the angular velocity. |
| max_linear_accel | Maximum linear acceleration in m/s². |
| max_linear_velocity | Maximum linear velocity in m/s. |
| max_yaw_accel | Maximum yaw angular acceleration in rad/s². |
| max_yaw_velocity | Maximum yaw angular velocity in rad/s. |
| turning_deadband | Joystick axis value between 0.0 and 1.0 below which turning probability goes up but turning doesn't start yet. |
| turning_decision_time | Minimum duration in seconds for the turning probability to switch from zero to one and conversely. |