Hello everyone,
Is there a way to solve a 3 equations system with TP or karel program?
4x - 3y + z = - 10
2x + y + 3z = 0
- x + 2y - 5z = 17
Thank you
Hello everyone,
Is there a way to solve a 3 equations system with TP or karel program?
4x - 3y + z = - 10
2x + y + 3z = 0
- x + 2y - 5z = 17
Thank you
Solve by substitution. Basic algebra.
Solve by substitution. Basic algebra.
Hello,
I know how to do it manualy, but how would be the synthax on fanuc tp or karel.
thanks
Nice case, never thought about that
What's your intention for it?
Nice case, never thought about that
What's your intention for it?
I want to calculate automatically the Uframe,
So I touch 3 points on each plan,
3 points define a plan equation,
So I have 3 equations,
Then I solve the 3 equation system to find the origin point of the UFrame.
After that I calculate the unit vectors for X , Y and Z directions,
With the origin point and the 3 vectors, I have the Transformation Matrix of my Uframe,
I then convert it to Euler Angles to find the xrzwrp.
Display MoreI want to calculate automatically the Uframe,
So I touch 3 points on each plan,
3 points define a plan equation,
So I have 3 equations,
Then I solve the 3 equation system to find the origin point of the UFrame.
After that I calculate the unit vectors for X , Y and Z directions,
With the origin point and the 3 vectors, I have the Transformation Matrix of my Uframe,
I then convert it to Euler Angles to find the xrzwrp.
We don't want to use the Fanuc built in functions such as Touch Sensing ... because we have other robot brands (Kuka, Abb...) and we hope to find a way that can be adapted for the different brands
You can do it the same way you would manually. Just replace your x,y,z values and coefficients with Registers.
Work out the algorithm manually by hand keeping everything in terms of registers. And by the time you are done you will basically have a TP program. You may need to split up some of the operations to work with TP syntax. Also you must handle any possible divide by zero errors.
Or just Google an example done in another programming language and then convert the syntax.
You can do it the same way you would manually. Just replace your x,y,z values and coefficients with Registers.
Work out the algorithm manually by hand keeping everything in terms of registers. And by the time you are done you will basically have a TP program. You may need to split up some of the operations to work with TP syntax. Also you must handle any possible divide by zero errors.
Or just Google an example done in another programming language and then convert the syntax.
Thank you very much
Finally I used Cramer's rule, and it works fine,
Thanks again