Use the Denavit-Hartenberg (DH) parameters of the Puma560® robot to build a robot. Each rigid body is added one at a time, with the child-to-parent transform specified by the joint object.
The DH parameters define the geometry of the robot with relation to how each rigid body is attached to its parent. For convenience, setup the parameters for the Puma560 robot in a matrix [1]. The Puma robot is a serial chain manipulator. The DH parameters are relative to the previous row in the matrix, corresponding to the previous joint attachment.
Create a rigid body tree object to build the robot.
Create the first rigid body and add it to the robot. To add a rigid body:
Create a rigidBody
object and give it a unique name.
Create a rigidBodyJoint
object and give it a unique name.
Use setFixedTransform
to specify the body-to-body transformation using DH parameters. The last element of the DH parameters, theta
, is ignored because the angle is dependent on the joint position.
Call addBody
to attach the first body joint to the base frame of the robot.
Create and add other rigid bodies to the robot. Specify the previous body name when calling addBody
to attach it. Each fixed transform is relative to the previous joint coordinate frame.
Verify that your robot was built properly by using the showdetails
or show
function. showdetails
lists all the bodies in the MATLAB® command window. show
displays the robot with a given configuration (home by default). Calls to axis
modify the axis limits and hide the axis labels.
--------------------
Robot: (6 bodies)
Idx Body Name Joint Name Joint Type Parent Name(Idx) Children Name(s)
--- --------- ---------- ---------- ---------------- ----------------
1 body1 jnt1 revolute base(0) body2(2)
2 body2 jnt2 revolute body1(1) body3(3)
3 body3 jnt3 revolute body2(2) body4(4)
4 body4 jnt4 revolute body3(3) body5(5)
5 body5 jnt5 revolute body4(4) body6(6)
6 body6 jnt6 revolute body5(5)
--------------------
References
[1] Corke, P. I., and B. Armstrong-Helouvry. “A Search for Consensus among Model Parameters Reported for the PUMA 560 Robot.” Proceedings of the 1994 IEEE International Conference on Robotics and Automation, IEEE Computer. Soc. Press, 1994, pp. 1608–13. DOI.org (Crossref), doi:10.1109/ROBOT.1994.351360.