def get_robot_state(ctx):
    """ 获取机器人状态

    Args:
        ctx (context.Context): 登陆上下文

    Returns:
        Success (int): 机器人状态, [ROBOT_STATE_STOP, ROBOT_STATE_PAUSE, ROBOT_STATE_EMESTOP, ROBOT_STATE_RUNNING, ROBOT_STATE_ERROR]
        Failure (None): None
    """

    return ctx.tran.request("GET", "/v2/paramservice/robot/state")["data"]