| | |
| | | REAL_COMPARE_MAP_OFFSET_Z, |
| | | } from '../config/setting' |
| | | |
| | | const getCorrectForkDis = (loaderAngle, forkDis) => { |
| | | |
| | | } |
| | | |
| | | const Agv = (props) => { |
| | | const { agvNo, position, trayList, hasBox } = props; |
| | | const theta = -props.theta; |
| | |
| | | const loaderAbsoluteAngle = (theta + loaderTheta) % 360; |
| | | if (loaderAngle !== loaderAbsoluteAngle && props.loaderTheta !== null) { |
| | | const targetTheta = Common.normalizeAngle(loaderAbsoluteAngle - loaderAngle) + loaderAngle; |
| | | console.log(targetTheta); |
| | | new TWEEN.Tween({ value: loaderAngle }) |
| | | .to({ value: targetTheta }, INTERVAL_TIME) |
| | | .easing(TWEEN.Easing.Linear.None) |