umich_sim.wizard package#
Subpackages#
- umich_sim.wizard.inputs package
- Submodules
- umich_sim.wizard.inputs.base_input_dev module
- umich_sim.wizard.inputs.base_wheel module
- umich_sim.wizard.inputs.g27_wheel module
- umich_sim.wizard.inputs.g29_wheel module
- umich_sim.wizard.inputs.g920_wheel module
- umich_sim.wizard.inputs.input_types module
ClientMode
ControlEventType
ControlEventType.BRAKE
ControlEventType.CHANGE_WEATHER
ControlEventType.CLOSE
ControlEventType.CLUTCH
ControlEventType.DEC_GEAR
ControlEventType.GAS
ControlEventType.INC_GEAR
ControlEventType.KB_BRAKE
ControlEventType.KB_GAS
ControlEventType.KB_LEFT
ControlEventType.KB_RIGHT
ControlEventType.KB_TOGGLE_REVERSE
ControlEventType.LEFT_BLINKER
ControlEventType.NONE
ControlEventType.RESTART_WORLD
ControlEventType.RIGHT_BLINKER
ControlEventType.STEER
ControlEventType.SWITCH_DRIVER
ControlEventType.TOGGLE_CAMERA
ControlEventType.TOGGLE_HELP
ControlEventType.TOGGLE_INFO
ControlEventType.TOGGLE_LDW
ControlEventType.TOGGLE_SENSOR
InputDevType
InputPacket
WheelKeyType
WheelKeyType.A
WheelKeyType.ACC
WheelKeyType.B
WheelKeyType.BRAKE
WheelKeyType.CIRCLE
WheelKeyType.CLUTCH
WheelKeyType.CROSS
WheelKeyType.HPAD
WheelKeyType.L2
WheelKeyType.L3
WheelKeyType.LBOT
WheelKeyType.LMID
WheelKeyType.LSB
WheelKeyType.LSHIFT
WheelKeyType.LTOP
WheelKeyType.MENU
WheelKeyType.R2
WheelKeyType.R3
WheelKeyType.RBOT
WheelKeyType.RMID
WheelKeyType.RSB
WheelKeyType.RSHIFT
WheelKeyType.RTOP
WheelKeyType.SQUARE
WheelKeyType.STEER
WheelKeyType.TRIANGLE
WheelKeyType.VIEW
WheelKeyType.VPAD
WheelKeyType.X
WheelKeyType.XBOX
WheelKeyType.Y
- umich_sim.wizard.inputs.keyboard module
- Module contents
- umich_sim.wizard.utils package
Submodules#
umich_sim.wizard.rpc module#
- class umich_sim.wizard.rpc.RPC#
Bases:
object
The RPC Client wrapper singleton class
- get_driver() ClientMode #
Get the current driver
- static get_instance()#
- get_wheel() float #
get the wheel information
- set_driver(driver: ClientMode)#
Set the current driver Inputs:
driver: who is driving
- set_wheel(pos: float)#
upload the wheel position to the server Input: pos: position of the racing wheel
umich_sim.wizard.wizard module#
- class umich_sim.wizard.wizard.Wizard#
Bases:
object
Main Controller of the wizard
- static get_instance()#
- handle_events()#
Handle events registered in the previous loop
- is_stopping() bool #
see if the program is stopping
- register_event(event_type: ControlEventType, dev: ClientMode, val: int) None #
Register the input event into the event queue Inputs:
event_type: What type of actions is required to take dev: From which device val: Additional data field
- stop()#
Stop the program by setting stopping flag
- tick()#
tick wizard controller
- umich_sim.wizard.wizard.onpush(func: Callable) Callable #
Execute the function if the button is pushed, used in event handling
Module contents#
Wizard of Oz module for interfacing with racing wheel