Beispiel #1
0
    def __init__(self):
        ConfigMaster.__init__(self, 'diffeo2dds')
 
        from diffeo2dds import (UncertainImage, UncertainImageDistance,
                                SymDiffeoSystem, DiffeoSystem, DiffeoActionDistance)

        self.uncertain_images = self.add_class_generic('images', '*.images.yaml',
                                             UncertainImage)
        
        self.uncertain_image_distances = \
            self.add_class_generic('uncertain_image_distances',
                           '*.uncertain_image_distances.yaml',
                           UncertainImageDistance)
        
        self.symdds = \
            self.add_class_generic('symdds',
                                   '*.symdds.yaml',
                                   SymDiffeoSystem)
        
        self.discdds = \
            self.add_class_generic('discdds', '*.discdds.yaml',
                                   DiffeoSystem)
            
        self.diffeo_action_distances = \
            self.add_class_generic('diffeo_action_distances',
                                   '*.diffeo_action_distances.yaml',
                                   DiffeoActionDistance)
Beispiel #2
0
    def __init__(self):
        ConfigMaster.__init__(self, 'diffeo2s')

        from diffeo2s import SymbolicDiffeo
        self.symdiffeos = self.add_class_generic('symdiffeos',
                                                 '*.symdiffeos.yaml',
                                                 SymbolicDiffeo)
Beispiel #3
0
    def __init__(self):
        
        from diffeo2dds_learn import (DiffeoActionEstimatorInterface, ImageStream,
                                    DiffeoSystemEstimatorInterface, Stream)
        
        ConfigMaster.__init__(self, 'diffeo2ddslearn')

        self.streams = \
            self.add_class_generic('streams',
                                   '*.streams.yaml',
                                    Stream)
        
        self.image_streams = \
            self.add_class_generic('image_streams',
                                   '*.image_streams.yaml',
                                    ImageStream)

        self.diffeoaction_estimators = \
            self.add_class_generic('diffeoaction_estimators',
                                   '*.diffeoaction_estimators.yaml',
                                    DiffeoActionEstimatorInterface)

        self.diffeosystem_estimators = \
            self.add_class_generic('diffeosystem_estimators',
                                   '*.diffeosystem_estimators.yaml',
                                    DiffeoSystemEstimatorInterface)
Beispiel #4
0
    def __init__(self):
        ConfigMaster.__init__(self, 'diffeo2s')

        from diffeo2s import SymbolicDiffeo
        self.symdiffeos = self.add_class_generic('symdiffeos',
                                                 '*.symdiffeos.yaml',
                                                 SymbolicDiffeo)
Beispiel #5
0
    def __init__(self):
        ConfigMaster.__init__(self, 'diffeo2dds')

        from diffeo2dds import (UncertainImage, UncertainImageDistance,
                                SymDiffeoSystem, DiffeoSystem,
                                DiffeoActionDistance)

        self.uncertain_images = self.add_class_generic('images',
                                                       '*.images.yaml',
                                                       UncertainImage)

        self.uncertain_image_distances = \
            self.add_class_generic('uncertain_image_distances',
                           '*.uncertain_image_distances.yaml',
                           UncertainImageDistance)

        self.symdds = \
            self.add_class_generic('symdds',
                                   '*.symdds.yaml',
                                   SymDiffeoSystem)

        self.discdds = \
            self.add_class_generic('discdds', '*.discdds.yaml',
                                   DiffeoSystem)

        self.diffeo_action_distances = \
            self.add_class_generic('diffeo_action_distances',
                                   '*.diffeo_action_distances.yaml',
                                   DiffeoActionDistance)
Beispiel #6
0
    def __init__(self):
        ConfigMaster.__init__(self, "dp")

        self.images = self.add_class(
            "images", "*.images.yaml", check_valid_image_config, GenericCall(check_valid_image)
        )

        self.symdiffeos = self.add_class(
            "symdiffeos", "*.symdiffeos.yaml", check_valid_symdiffeo_config, GenericCall(check_valid_symdiffeo)
        )

        self.symdds = self.add_class("symdds", "*.symdds.yaml", check_valid_symdds_config, GenericCall(check_valid_dds))

        self.discdds = self.add_class(
            "discdds", "*.discdds.yaml", check_valid_discdds_config, GenericCall(check_valid_dds)
        )

        self.algos = self.add_class("algos", "*.algos.yaml", check_generic_code_desc, GenericCall())

        self.distances = self.add_class("distances", "*.distances.yaml", check_generic_code_desc, GenericCall())

        self.testcases = self.add_class("testcases", "*.tc.yaml", check_generic_code_desc, GenericCall())

        self.streams = self.add_class("streams", "*.streams.yaml", check_generic_code_desc, GenericCall())

        self.learners = self.add_class("learners", "*.learners.yaml", check_generic_code_desc, GenericCall())

        self.online_testcases = self.add_class(
            "online_testcases", "*.online.yaml", check_generic_code_desc, GenericCall()
        )

        self.sets = self.add_class("sets", "*.batch.yaml", check_valid_set)
Beispiel #7
0
    def __init__(self):
        ConfigMaster.__init__(self, 'CBC')

        self.add_class('test_cases', '*.tc.yaml', tc_check, tc_instance)
        self.add_class('combinations', '*.comb.yaml', comb_check,
                       comb_instance)

        self.test_cases = self.specs['test_cases']
Beispiel #8
0
    def __init__(self):
        ConfigMaster.__init__(self, 'diffeo2d')

        from diffeo2d.interfaces.diffeo2d_distance import Diffeo2dDistance
        self.diffeo2d_distances = \
            self.add_class_generic('diffeo2d_distances',
                                   '*.diffeo2d_distances.yaml',
                                   Diffeo2dDistance)
Beispiel #9
0
    def __init__(self):
        ConfigMaster.__init__(self, 'diffeo2d')
 
        from diffeo2d.interfaces.diffeo2d_distance import Diffeo2dDistance
        self.diffeo2d_distances = \
            self.add_class_generic('diffeo2d_distances',
                                   '*.diffeo2d_distances.yaml',
                                   Diffeo2dDistance)
Beispiel #10
0
    def __init__(self):
        ConfigMaster.__init__(self, 'ExamplePackageConfig')

        from .interfaces import ExampleClass1, ExampleClass2
        self.add_class_generic('example_class1', '*.example_class1.yaml',
                               ExampleClass1)
        self.add_class_generic('example_class2', '*.example_class2.yaml',
                               ExampleClass2)
Beispiel #11
0
    def __init__(self):
        ConfigMaster.__init__(self, 'CBC')

        self.add_class('test_cases', '*.tc.yaml', tc_check, tc_instance)
        self.add_class('combinations', '*.comb.yaml',
                       comb_check, comb_instance)

        self.test_cases = self.specs['test_cases']
Beispiel #12
0
def test_pickling():
    # Create files
    with create_test_environment(test_cases[0]['config']) as dirname:
        # Load configuration
        master = ConfigMaster('veh')
        master.add_class('vehicles', '*.vehicles.yaml',
                         check=dummy_check,
                         instance=dummy_instance)
        master.load(dirname)
        s = BytesIO()
        pickle.dump(master, s)
Beispiel #13
0
   def __init__(self):
       ConfigMaster.__init__(self, 'dp')
       
       from diffeoplan import DiffeoPlanningAlgo
       from diffeoplan import TestCase
       from diffeoplan import DiffeoplanBatch
 
       self.algos = \
           self.add_class_generic('algos', '*.algos.yaml',
                                  DiffeoPlanningAlgo)
       self.testcases = \
           self.add_class_generic('testcases', '*.tc.yaml', TestCase)
       
       self.batches = \
           self.add_class_generic('batches', '*.batch.yaml', DiffeoplanBatch)
Beispiel #14
0
    def __init__(self):
        ConfigMaster.__init__(self, 'dp')

        from diffeoplan import DiffeoPlanningAlgo
        from diffeoplan import TestCase
        from diffeoplan import DiffeoplanBatch

        self.algos = \
            self.add_class_generic('algos', '*.algos.yaml',
                                   DiffeoPlanningAlgo)
        self.testcases = \
            self.add_class_generic('testcases', '*.tc.yaml', TestCase)

        self.batches = \
            self.add_class_generic('batches', '*.batch.yaml', DiffeoplanBatch)
Beispiel #15
0
    def __init__(self):
        ConfigMaster.__init__(self, 'tmdp')
        from .mdp import SimpleMDP
        from .solver import SimpleMDPSolver

        self.smdps = \
            self.add_class_generic('smdps', '*.tmdp_smdps.yaml',
                                   SimpleMDP)
        self.smdp_solvers = \
            self.add_class_generic('smdp_solvers', '*.tmdp_smdp_solvers.yaml',
                                   SimpleMDPSolver)

        from gridmaps.map import GridMap
        self.gridmaps = self.add_class_generic('gridmaps', '*.tmdp_gridmaps.yaml',
                                               GridMap)
Beispiel #16
0
    def __init__(self):
        ConfigMaster.__init__(self, 'BootOlympics')

        from bootstrapping_olympics import PassiveRobotInterface
        from bootstrapping_olympics import RepresentationNuisanceCausal
        from bootstrapping_olympics import RepresentationNuisance
        from bootstrapping_olympics import AgentInterface
        from bootstrapping_olympics import LivePlugin
 
        self.robots = self.add_class_generic('robots', '*.robots.yaml', PassiveRobotInterface)
        self.agents = self.add_class_generic('agents', '*.agents.yaml', AgentInterface)

        self.nuisances = self.add_class_generic('nuisances', '*.nuisances.yaml', RepresentationNuisance)
        self.nuisances_causal = self.add_class_generic('nuisances_causal',
                                                '*.nuisances_causal.yaml', RepresentationNuisanceCausal)

        self.videos = self.add_class('videos', '*.videos.yaml', check_valid_videos_config)

        self.live_plugins = self.add_class_generic('live_plugins',
                                                   '*.live_plugins.yaml', LivePlugin)
    def __init__(self):
        ConfigMaster.__init__(self, 'rs2b')

        from rosstream2boot import (ROSObservationsAdapter, ROSCommandsAdapter,
                                  ROSRobotAdapter, ExperimentLog)
        
        self.explogs = \
            self.add_class_generic('explogs', '*.explogs.yaml',
                                   ExperimentLog)
        
        self.adapters = \
            self.add_class_generic('adapters', '*.robot_adapters.yaml',
                                   ROSRobotAdapter)
        
        self.obs_adapters = \
            self.add_class_generic('obs_adapters', '*.obs_adapters.yaml',
                                    ROSObservationsAdapter)
        
        self.cmd_adapters = \
            self.add_class_generic('cmd_adapters', '*.cmd_adapters.yaml',
                                    ROSCommandsAdapter)
Beispiel #18
0
    def __init__(self):
        ConfigMaster.__init__(self, 'Vehicles')

        self.add_class('vehicles', '*.vehicles.yaml',
                        check_valid_vehicle_config, instance_vehicle_spec)

        self.add_class('worlds', '*.worlds.yaml', check_valid_world_config,
                       GenericInstance(World))

        self.add_class('dynamics', '*.dynamics.yaml', check_valid_dynamics_config,
                       GenericInstance(Dynamics))

        self.add_class('sensors', '*.sensors.yaml', check_valid_sensor_config,
                       GenericInstance(VehicleSensor))

        self.add_class('skins', '*.skins.yaml',
                       check_valid_skin_config,
                       GenericInstance(VehicleSkin))

        self.vehicles = self.specs['vehicles']
        self.worlds = self.specs['worlds']
        self.dynamics = self.specs['dynamics']
        self.sensors = self.specs['sensors']
        self.skins = self.specs['skins']
 def __init__(self):
     ConfigMaster.__init__(self, 'batchconfig')
     self.add_class('sets', '*.sets.yaml', check_valid_set_config)
     self.sets = self.specs['sets']
Beispiel #20
0
 def __init__(self):
     ConfigMaster.__init__(self, 'ExamplePackageConfig')
     
     from .interfaces import ExampleClass1, ExampleClass2
     self.add_class_generic('example_class1', '*.example_class1.yaml', ExampleClass1)
     self.add_class_generic('example_class2', '*.example_class2.yaml', ExampleClass2)
Beispiel #21
0
 def __init__(self):
     ConfigMaster.__init__(self, 'diffeo2dlearn')
     from diffeo2d_learn import Diffeo2dEstimatorInterface
     self.diffeo2d_estimators = self.add_class_generic('diffeo2d_estimators',
                                             '*.diffeo2d_estimators.yaml',
                                             Diffeo2dEstimatorInterface)
    def __init__(self):
        ConfigMaster.__init__(self, 'rawlogs')

        from rawlogs.interface import RawLog
        
        self.rawlogs = self.add_class_generic('rawlogs', '*.rawlogs.yaml', RawLog)