added start/stop button (#173)

* added start/stop button

* added declorator; fixed camera interrupt race condition

* add docs + typechecking
This commit is contained in:
evonneng authored and GitHub committed 2022-07-19 16:33:01 -07:00
1 parent 05b92e228b
commit 12c7d41241
7 files changed
+164 -57

No files matched your search

+12
View File
@@ -45,6 +45,18 @@ def check_profiler_enabled(func: Callable) -> Callable:
return wrapper
def check_visualizer_enabled(func: Callable) -> Callable:
"""Decorator: check if visualizer is enabled"""
def wrapper(self, *args, **kwargs):
ret = None
if self.vis:
ret = func(self, *args, **kwargs)
return ret
return wrapper
def check_main_thread(func: Callable) -> Callable:
"""Decorator: check if you are on main thread"""