def shutStop(): """ For emergency shutoff :return: """ stopper.start_listening() stopper.shutoff() return make_response(jsonify(status="Great Success", maker_status=maker.get_status(), robot_status=robot.current_command()), 200)
def reset(): """ Reset everything to off/stationary :return: """ maker.stop() robot.stay() stopper.shutoff() return make_response(jsonify(status="Great Success", maker_status=maker.get_status(), robot_status=robot.current_command()), 200)
def stop(): """ :return: """ # Todo: kill the thread as well maker.stop() stopper.shutoff() return make_response(jsonify(status="Great Success", maker_status=maker.get_status(), robot_status=robot.current_command()), 200)