rcute_cozmars.lift¶
-
class
rcute_cozmars.lift.Lift(robot)¶ -
default_speed= None¶ The default lift moving speed, the default is 3/s, if set to None, it will move at fastest speed
-
auto_relax_delay= None¶ time delay to automatically relax servo after lift moves, default to 1 sec. If set to None, servo will not relax.
When lift moves to target position, relaxing the servo can prevent damage and save battery power.
-
max_height¶ 1.0, read only
-
height¶ get/set lift height at
default_speed, 0.0~1.0
-
min_height¶ 0.0, read only
-
set_height(height, *, duration=None, speed=None)¶ 参数: - height (float) – target height position
- duration (float, optional) – duration of movement, default is None for fastest speed
- speed (float, optional) – (/s), default is None for fastest speed
引发: TypeError – duration and speed cannot both be set, otherwise an exception will be thrown
-