22import click
33from examples .acceleration_readings import read_accelerometers
44from examples .aligning_readings import align_acceleration_readings
5- from examples .run_pyoma import (
6- run_oma_and_plot ,
7- run_oma_and_publish ,
8- run_oma_and_print ,
5+ from examples .run_sysid import (
6+ run_sysid_and_plot ,
7+ run_sysid_and_publish ,
8+ run_sysid_and_print ,
9+ live_sysid_and_publish
910)
10- from examples .mode_tracking import (
11+ from examples .run_mode_clustering import (
12+ run_mode_clustering_with_local_sysid ,
13+ run_mode_clustering_with_remote_sysid ,
14+ run_live_mode_clustering_with_remote_sysid
15+ )
16+ from examples .run_mode_tracking import (
1117 run_mode_tracking_with_local_sysid ,
1218 run_mode_tracking_with_remote_sysid ,
19+ run_live_mode_tracking_with_remote_sysid
1320)
14- from examples .updating_parameters import (
21+ from examples .run_model_update import (
1522 run_model_update_local_sysid ,
1623 run_model_update_remote_sysid
1724)
@@ -34,22 +41,40 @@ def accelerometers(ctx):
3441def align_readings (ctx ):
3542 align_acceleration_readings (ctx .obj ["CONFIG" ])
3643
44+ @cli .command ()
45+ @click .pass_context
46+ def sysid_and_publish (ctx ):
47+ run_sysid_and_publish (ctx .obj ["CONFIG" ])
3748
3849@cli .command ()
3950@click .pass_context
40- def oma_and_publish (ctx ):
41- run_oma_and_publish (ctx .obj ["CONFIG" ])
51+ def live_sysid_publish (ctx ):
52+ live_sysid_and_publish (ctx .obj ["CONFIG" ])
4253
4354@cli .command ()
4455@click .pass_context
45- def oma_and_plot (ctx ):
46- run_oma_and_plot (ctx .obj ["CONFIG" ])
56+ def sysid_and_plot (ctx ):
57+ run_sysid_and_plot (ctx .obj ["CONFIG" ])
4758
4859@cli .command ()
4960@click .pass_context
50- def oma_and_print (ctx ):
51- run_oma_and_print (ctx .obj ["CONFIG" ])
61+ def sysid_and_print (ctx ):
62+ run_sysid_and_print (ctx .obj ["CONFIG" ])
5263
64+ @cli .command ()
65+ @click .pass_context
66+ def clustering_with_local_sysid (ctx ):
67+ run_mode_clustering_with_local_sysid (ctx .obj ["CONFIG" ])
68+
69+ @cli .command ()
70+ @click .pass_context
71+ def clustering_with_remote_sysid (ctx ):
72+ run_mode_clustering_with_remote_sysid (ctx .obj ["CONFIG" ])
73+
74+ @cli .command ()
75+ @click .pass_context
76+ def live_clustering_with_remote_sysid (ctx ):
77+ run_live_mode_clustering_with_remote_sysid (ctx .obj ["CONFIG" ])
5378
5479@cli .command ()
5580@click .pass_context
@@ -61,6 +86,10 @@ def mode_tracking_with_local_sysid(ctx):
6186def mode_tracking_with_remote_sysid (ctx ):
6287 run_mode_tracking_with_remote_sysid (ctx .obj ["CONFIG" ])
6388
89+ @cli .command ()
90+ @click .pass_context
91+ def live_mode_tracking_with_remote_sysid (ctx ):
92+ run_live_mode_tracking_with_remote_sysid (ctx .obj ["CONFIG" ])
6493
6594@cli .command ()
6695@click .pass_context
@@ -69,7 +98,7 @@ def model_update_local_sysid(ctx):
6998
7099@cli .command ()
71100@click .pass_context
72- def model_update_remote_sysid (ctx ):
101+ def live_model_update_remote_sysid (ctx ):
73102 run_model_update_remote_sysid (ctx .obj ["CONFIG" ])
74103
75104if __name__ == "__main__" :
0 commit comments