Skip to content

Commit 45386b1

Browse files
fix: apply dh-conventions to linear axis (#511)
[Storybook Link](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/overview.html)
1 parent aee1a6f commit 45386b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/robots/LinearAxisAnimator.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,9 @@ export default function LinearAxisAnimator({
7575
const dhParam = dhParameters[index]
7676
const translationSign = dhParam.reverse_rotation_direction ? -1 : 1
7777

78-
// Apply linear translation along X axis
78+
// Apply linear translation along Y axis
7979
// Convert from millimeters to meters
80-
// ToDo: change back to y axis when we want to display the proper orientation
81-
object.position.x =
80+
object.position.y =
8281
(translationSign * (updatedJointValues[index] || 0)) / 1000
8382
}
8483
}

0 commit comments

Comments
 (0)