unilab.visualization.interactive_playback.KeyboardCommander

class unilab.visualization.interactive_playback.KeyboardCommander[source]

Bases: object

Mutable [vx, vy, vyaw] velocity command driven by keyboard nudges.

Per-axis nudges stack and are clamped to the task’s commands.vel_limit.

Parameters:

Methods

__init__(low, high[, step_lin, step_ang])

describe()

from_vel_limit(vel_limit, *[, step_lin, ...])

nudge(axis, sign)

zero()

Attributes

low: ndarray
high: ndarray
step_lin: float = 0.1
step_ang: float = 0.2
command: ndarray
AXIS_VX: ClassVar[int] = 0
AXIS_VY: ClassVar[int] = 1
AXIS_VYAW: ClassVar[int] = 2
classmethod from_vel_limit(vel_limit, *, step_lin=0.1, step_ang=0.2)[source]
Parameters:
Return type:

KeyboardCommander

nudge(axis, sign)[source]
Parameters:
Return type:

None

zero()[source]
Return type:

None

describe()[source]
Return type:

str

__init__(low, high, step_lin=0.1, step_ang=0.2)
Parameters: