import request from '@/utils/request'

export function getPoseApi(params) {
    return request({
        url: '/api/arm/getPose', 
        method: 'get',
        params: params
    })
}

export function getJointStateApi(params) {
    return request({
        url: '/api/arm/getJointState', 
        method: 'get',
        params: params
    })
}

export function speedLApi(data) {
    return request({
        url: '/api/arm/speedL', 
        method: 'post',
        data: data
    })
}

export function moveJApi(data) {
    return request({
        url: '/api/arm/moveJ', 
        method: 'post',
        data: data
    })
}

export function stopMotionApi(params) {
    return request({
        url: '/api/arm/stopMotion', 
        method: 'get',
        params: params
    })
}

export function torqueOnApi(params) {
    return request({
        url: '/api/arm/torqueOn',
        method: 'get',
        params: params
    })
}

export function speedJApi(data) {
    return request({
        url: '/api/arm/speedJ',
        method: 'post',
        data: data
    })
}