Closed 12343954 closed 4 years ago
Hi,
are you familiar with homogeneous transformations? Its not complicated - the wikipedia article as a bit over the top.
Imagine the following situation: We have a base coordinate frame called O1
and a second ("smaller") coordinate frame. As you can see, the second frame is translated by the vector r1
and rotated around the x-axis by the angle "alpha".
With this information you can build a homogeneous transformation from the second frame into the O1
frame (and of course the other way round by inverting the matrix - if possible).
The AddJoint(...)
method takes an axis as a first parameter and the offset vector r1
(in the image) as a second parameter.
This means, that the example in the image below would be written something like this:
r1 = new Vector3(0,100,100); Robot Ro = new Robot().AddJoint('x', r1);
Does that clear it up for you?