messages

class lrpy.message.AggregateStateMessage(*, type: Literal['aggregate_state'] = 'aggregate_state', x: float, y: float, theta: float, omega: float, speed: float)
omega: float
speed: float
theta: float
type: Literal['aggregate_state']
x: float
y: float
class lrpy.message.DriveModeMessage(*, type: Literal['drive_mode'] = 'drive_mode', mode: DriveMode)
mode: DriveMode
type: Literal['drive_mode']
class lrpy.message.GetDriveModeMessage(*, type: Literal['get_drive_mode'] = 'get_drive_mode')
type: Literal['get_drive_mode']
class lrpy.message.GetMapMessage(*, type: Literal['get_map'] = 'get_map')
type: Literal['get_map']
class lrpy.message.GetRecordingStatusMessage(*, type: Literal['get_recording_status'] = 'get_recording_status')
type: Literal['get_recording_status']
class lrpy.message.MapMessage(*, type: Literal['map'] = 'map', map: WorldMap)
map: WorldMap
type: Literal['map']
type lrpy.message.Message = Annotated[TestMessage | TestMessage2 | SetSpeedMessage | PosMessage | QTMMessage | AggregateStateMessage | MapMessage | GetMapMessage | SetDriveModeMessage | GetDriveModeMessage | DriveModeMessage | StartRecordingMessage | StopRecordingMessage | RecordingStatusMessage | GetRecordingStatusMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]
class lrpy.message.PosMessage(*, type: Literal['pos'] = 'pos', x: float, y: float, vx: float, vy: float, theta: float, omega: float)
omega: float
theta: float
type: Literal['pos']
vx: float
vy: float
x: float
y: float
class lrpy.message.QTMMessage(*, type: Literal['qtm'] = 'qtm', i: int, x: float, y: float, z: float, rotation: tuple[float, float, float, float, float, float, float, float, float])
i: int
rotation: tuple[float, float, float, float, float, float, float, float, float]
type: Literal['qtm']
x: float
y: float
z: float
class lrpy.message.RecordingStatusMessage(*, type: Literal['recording_status'] = 'recording_status', current: CurrentRecording | None)
current: CurrentRecording | None
type: Literal['recording_status']
class lrpy.message.SetDriveModeMessage(*, type: Literal['set_drive_mode'] = 'set_drive_mode', mode: DriveMode)
mode: DriveMode
type: Literal['set_drive_mode']
class lrpy.message.SetSpeedMessage(*, type: Literal['set_speed'] = 'set_speed', left_speed: Annotated[float, Ge(ge=-1), Le(le=1)], right_speed: Annotated[float, Ge(ge=-1), Le(le=1)])
left_speed: float
right_speed: float
type: Literal['set_speed']
class lrpy.message.StartRecordingMessage(*, type: Literal['start_recording'] = 'start_recording', name: str, description: str)
description: str
name: str
type: Literal['start_recording']
class lrpy.message.StopRecordingMessage(*, type: Literal['stop_recording'] = 'stop_recording')
type: Literal['stop_recording']
class lrpy.message.TestMessage(*, type: Literal['test'] = 'test', value: int)
type: Literal['test']
value: int
class lrpy.message.TestMessage2(*, type: Literal['test2'] = 'test2')
type: Literal['test2']