How to implement DH-parameters in a loadable robot-model (UR3e) to visualize the "Pose" ?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi guys and girls,
I am quite new to MatLab, so please excuse me silly, basic questions.
So: i already have the calculations for the DH-parameters ('T0AM',...'T0FM') which are dependend on 6dof (q1(t),...,q6(t)). F.e: 'T0FM' is the 4x4 sym matrix which goes from a global Zeropoint towards F(the Endeffector).
Now i want to implement those DH-Parameters into the loadable robot "UR3e" so that i can see the 3D-Pose of the robot in a figure...later on i want to try constant q's for different poses. -> to ensure the pose is the pose i have in mind when changing the q's; so i can compare Pose with Stability easier.
(The aim is to let the UR3e stand in different poses and see how stable it is with an external force applied (with controller and closed loop system --> ss() ))
0 comentarios
Respuestas (1)
Sakshay
el 28 de Nov. de 2022
Hi,
As per my understanding, you are trying to build a manipulator robot using DH Parameters.
You can use the "rigidBodyTree" object in MATLAB to do the same. Once you have the DH Parameters as a matrix, you can create a "rigidBodyTree" object and specify its joint transformations using DH Parameters. The following example illustrates how to do that:
% Assuming DH Parameters as available as matrix, under variable dhparams
% Initialize the Rigid Body Tree Object
robot = rigidBodyTree;
% Iterate over the DH Parameters and create the joints
bodies = cell(6,1);
joints = cell(6,1);
for i = 1:6
bodies{i} = rigidBody(['body' num2str(i)]);
joints{i} = rigidBodyJoint(['jnt' num2str(i)],"revolute");
setFixedTransform(joints{i},dhparams(i,:),"dh");
bodies{i}.Joint = joints{i};
if i == 1 % Add first body to base
addBody(robot,bodies{i},"base")
else % Add current body to previous body by name
addBody(robot,bodies{i},bodies{i-1}.Name)
end
end
% Verify the robot by plotting
show(robot);
Please refer to the following documentation for more information on creating manipulator robots using DH Parameters:
Other than this, you can also load pre-existing robots present in MATLAB, using the following documentation:
Ver también
Categorías
Más información sobre Manipulator Modeling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!