diff --git a/src/sciclops_rest_node.py b/src/sciclops_rest_node.py index ac1f7ad..5f7f47e 100644 --- a/src/sciclops_rest_node.py +++ b/src/sciclops_rest_node.py @@ -42,6 +42,7 @@ def sciclops_startup(state: State): print("SCICLOPS online") state.status = ModuleStatus.IDLE + @rest_module.action(name="status") def status(state: State): """Action that forces the sciclops to check its status.""" @@ -49,6 +50,7 @@ def status(state: State): sciclops.get_status() return StepResponse.step_succeeded(action_msg="Succesfully got status") + @rest_module.action() def home(state: State): """Homes the sciclops"""