示例#1
0
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)
示例#2
0
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)
示例#3
0
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)