工控?zé)o涯
和則共立,合則共利!
級別: 工控俠客
![]() |
首先樓主描述的問題點不清楚,從題目來看機械轉(zhuǎn)多少度,產(chǎn)品就轉(zhuǎn)多少度,,這是小學(xué)生常識的問題。 我估計樓主想表達的是,機械旋轉(zhuǎn)多少度后能確認吸附產(chǎn)品,也就是機械旋轉(zhuǎn)多少度后旋轉(zhuǎn)中心能和產(chǎn)品中心重疊。 這個就要用到高中的繞點旋轉(zhuǎn)公式計算 XAfter = (XBefore - XRotation) * Cos(Rad) - (YBefore - YRotation) * Sin(Rad) + XRotation YAfter = (YBefore - YRotation) * Cos(Rad) + (XBefore - XRotation) * Sin(Rad) + YRotation,, 類似于視覺里面的旋轉(zhuǎn)中心標(biāo)定。 |
|
---|---|---|
|
xin123
級別: 探索解密
![]() |
謝謝 |
---|---|
|