open source driving agent
				
			 
			
		 
		
		
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							|  |  |  | from openpilot.common.params_pyx import Params, ParamKeyType, UnknownKeyName
 | 
					
						
							|  |  |  | assert Params
 | 
					
						
							|  |  |  | assert ParamKeyType
 | 
					
						
							|  |  |  | assert UnknownKeyName
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if __name__ == "__main__":
 | 
					
						
							|  |  |  |   import sys
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   params = Params()
 | 
					
						
							|  |  |  |   key = sys.argv[1]
 | 
					
						
							|  |  |  |   assert params.check_key(key), f"unknown param: {key}"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   if len(sys.argv) == 3:
 | 
					
						
							|  |  |  |     val = sys.argv[2]
 | 
					
						
							|  |  |  |     print(f"SET: {key} = {val}")
 | 
					
						
							|  |  |  |     params.put(key, val)
 | 
					
						
							|  |  |  |   elif len(sys.argv) == 2:
 | 
					
						
							|  |  |  |     print(f"GET: {key} = {params.get(key)}")
 |