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
ClientModeControlEventTypeControlEventType.BRAKEControlEventType.CHANGE_WEATHERControlEventType.CLOSEControlEventType.CLUTCHControlEventType.DEC_GEARControlEventType.GASControlEventType.INC_GEARControlEventType.KB_BRAKEControlEventType.KB_GASControlEventType.KB_LEFTControlEventType.KB_RIGHTControlEventType.KB_TOGGLE_REVERSEControlEventType.LEFT_BLINKERControlEventType.NONEControlEventType.RESTART_WORLDControlEventType.RIGHT_BLINKERControlEventType.STEERControlEventType.SWITCH_DRIVERControlEventType.TOGGLE_CAMERAControlEventType.TOGGLE_HELPControlEventType.TOGGLE_INFOControlEventType.TOGGLE_LDWControlEventType.TOGGLE_SENSOR
InputDevTypeInputPacketWheelKeyTypeWheelKeyType.AWheelKeyType.ACCWheelKeyType.BWheelKeyType.BRAKEWheelKeyType.CIRCLEWheelKeyType.CLUTCHWheelKeyType.CROSSWheelKeyType.HPADWheelKeyType.L2WheelKeyType.L3WheelKeyType.LBOTWheelKeyType.LMIDWheelKeyType.LSBWheelKeyType.LSHIFTWheelKeyType.LTOPWheelKeyType.MENUWheelKeyType.R2WheelKeyType.R3WheelKeyType.RBOTWheelKeyType.RMIDWheelKeyType.RSBWheelKeyType.RSHIFTWheelKeyType.RTOPWheelKeyType.SQUAREWheelKeyType.STEERWheelKeyType.TRIANGLEWheelKeyType.VIEWWheelKeyType.VPADWheelKeyType.XWheelKeyType.XBOXWheelKeyType.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:
objectThe 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:
objectMain 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