Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential incorrect referential #7

Open
bouviervj opened this issue Nov 23, 2024 · 1 comment
Open

Potential incorrect referential #7

bouviervj opened this issue Nov 23, 2024 · 1 comment

Comments

@bouviervj
Copy link

Thank you for this page, that gives good advices on how to get the computation started.

I implemented this algorithm for a real stewart platform with linear actuators. I tried to get a rotation on Z axis and everything went smoothly. I started to play with other axis X,Y and saw that the rotation is applied to the center of the base, and not the center of the platform.

Simply applying the algorithm by swapping the the coordinates of the platform P vs the coordinates of the base B, makes the computation relative to the platform home position.

l = np.repeat(trans[:, np.newaxis], 6, axis=1) + np.repeat(self.home_pos[:, np.newaxis], 6, axis=1) + np.matmul(R, B) - P 

The translation is applied first, then the rotation.

This could be helpful for other implementing their platform. You could have both options.

@Yeok-c
Copy link
Owner

Yeok-c commented Nov 23, 2024

This is a nice catch! It makes sense but this didn't come up in my testing. Go ahead and open a pull request with some test data and I can merge this change 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants