Module main
[hide private]
[frames] | no frames]

Source Code for Module main

 1  #!/usr/bin/env python 
 2  # -*- coding: iso-8859-1 -*- 
 3  """Main entry point. Starts the application.""" 
 4   
 5  import sys 
 6  sys.path.append('../../common/src') 
 7   
 8  import simulation.Main 
 9   
10 -class Main_InvertedPendulum(simulation.Main.Main):
11 - def getControllers(self):
12 """Get list with available controllers.""" 13 import FuzzyController,FuzzyController2 14 import NeuroController 15 return \ 16 [ # available controllers 17 ("Fuzzy",FuzzyController.FuzzyController()), 18 ("Fuzzy2",FuzzyController2.FuzzyController2()), 19 ("Neuro",NeuroController.NeuroController()) 20 ]
21
22 - def getProcesses(self):
23 """Get list with available processes.""" 24 import SimulatedProcess,SimulatedProcessParameter,RealProcess 25 return \ 26 [ # available processes 27 ("Simulation",SimulatedProcess.SimulatedProcess(),SimulatedProcessParameter.Open), 28 ("Real hardware",RealProcess.RealProcess(),None), 29 ]
30 31 if __name__ == "__main__": 32 Main_InvertedPendulum().run() 33