export const controlPageList = [
    "/mechanical_arm",
    "/Motor",
    "/Camera"
]
export const controlModuleList = [
    {
        label: "机械臂",
        value: "mechanical_arm"
    },
    {
        label: "电机",
        value: "motor"
    },
    {
        label: "舵机",
        value: "servo"
    },
    {
        label: "执行器",
        value: "executor"
    },
    {
        label: "麦克风",
        value: "microphone"
    },
    {
        label: "扬声器",
        value: "speaker"
    },
    {
        label: "摄像头",
        value: "Camera"
    },
    {
        label: "电源",
        value: "power"
    },
    {
        label: "灵巧手",
        value: "hand"
    },
    {
        label: "人工头",
        value: "head"
    }
]

export const fileType = [
    {
        label: "普通文件",
        value: 0
    },
    {
        label: "图片",
        value: 1
    },
    {
        label: "音频",
        value: 2
    },
    {
        label: "视频",
        value: 3
    }
]

//0:普通文件、1:图片、2:音频、3:视频
export const supportType = [
    //json
    {label: "application/json", value: 0},
    {label: "text/plain", value: 0},
    {label: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", value: 0},
    {label: "image/jpeg", value: 1},
    {label: "image/png", value: 1},
    {label: "audio/mpeg", value: 2},
    {label: "video/mp4", value: 3},
]

export const deviceParamsMap = {
    "mechanical_arm": [
        {
            "label": "工作模式", "key": "workModule", "value": "1", "formType": "select", "options": [
                {
                    "label": "真实机械臂",
                    "value": "1"
                },
                {
                    "label": "仿真机械臂",
                    "value": "2"
                }
            ]
        },
        {"label": "位置步长", "key": "posStep", "value": 0, "formType": "input_number"},
        {"label": "姿态步长", "key": "postureStep", "value": 0, "formType": "input_number"},
        {"label": "关节步长", "key": "jointStep", "value": 0, "formType": "input_number"},
        {"label": "位置( X )", "key": "x", "value": 0, "formType": "input_number"},
        {"label": "位置( y )", "key": "y", "value": 0, "formType": "input_number"},
        {"label": "位置( z )", "key": "z", "value": 0, "formType": "input_number"},
        {"label": "姿态( rx )", "key": "rx", "value": 0, "formType": "input_number"},
        {"label": "姿态( ry )", "key": "ry", "value": 0, "formType": "input_number"},
        {"label": "姿态( rz )", "key": "rz", "value": 0, "formType": "input_number"},
        {"label": "关节1( deg )", "key": "joint1", "value": 0, "formType": "input_number"},
        {"label": "关节2( deg )", "key": "joint2", "value": 0, "formType": "input_number"},
        {"label": "关节3( deg )", "key": "joint3", "value": 0, "formType": "input_number"},
        {"label": "关节4( deg )", "key": "joint4", "value": 0, "formType": "input_number"},
        {"label": "关节5( deg )", "key": "joint5", "value": 0, "formType": "input_number"},
        {"label": "关节6( deg )", "key": "joint6", "value": 0, "formType": "input_number"},
    ],
}
