Task-Space Motion Model
The task-space motion model characterizes the closed-loop motion of a manipulator under task-space control, where the control action is defined in the SE(3) space with respect to the pose of a specified end effector. This topic covers the variables and equations for computing the behavior of joint position, velocity, and acceleration given motion modeled in the Plan and Execute Task- and Joint-Space Trajectories Using KINOVA Gen3 Manipulator object. For joint-space motion models, see the
For an example that covers the difference between task-space and joint-space control, see Plan and Execute Task- and Joint-Space Trajectories Using KINOVA Gen3 Manipulator.
The model state consists of these values:
— Robot joint configuration, as a vector of joint positions. Specified in for revolute joints and for prismatic joints.
— Vector of joint velocities in for revolute joints and for prismatic joints
— Vector of joint accelerations in for revolute joints or for prismatic joints
The end-effector pose of the robot is a 4-by-4 homogeneous matrix defined relative to the origin at the robot base. Positions are in meters. Two forms of are used for calculating errors in control:
— Reference end-effector pose, specified as a desired end-effector pose
— Actual end-effector pose achieved by the motion
The end-effector transform decomposes as:
where is the orientation as a 3-by-3 rotation matrix, and is a 3-by-1 vector of xyz-positions in meters.
The task-space velocity and acceleration consist of two 6-by-1 vectors:
where and are 3-by-1 vectors of angular velocities and accelerations of the frame, respectively.
Equations of Motion
Use the task-space motion model to represent robots that are subject to a control law that acts on the task-space error. For example, when the input to the control law specifies end-effector motion. While there are many ways to implement such a system, in this model, the closed-loop response is approximated in the Plan and Execute Task- and Joint-Space Trajectories Using KINOVA Gen3 Manipulator object by providing a system under proportional-derivative Jacobian-Transpose style control. Regardless of how the system you are using works, this model can be used as a low-fidelity approximation of a system under closed-loop task-space control.
When the motion model uses proportional-derivative (PD) control, as determined by the MotionType property of the
taskSpaceMotionModel object, the model computes forward dynamics using standard rigid body dynamics, but with subject to a PD control law that acts on the error between desired and actual end-effector pose.
Inputs — This model accepts reference pose and reference end-effector velocities
Outputs — The model returns the as the joint configuration, velocities, and accelerations as vectors
Complexity — This is a medium complexity motion model. It uses complete rigid body dynamics, but the control law used in the model is relatively simple.
In this system, the joint positions, velocities, and accelerations are computed using standard rigid-body Robot Dynamics. The generalized force input is given by the PD Control law on the task-space error, scaled to the joint-space via a Jacobian-Transpose style control:
— is the rotational error converted to Euler angles using
— is the error in xyz-coordinates, calculated as .
— are the gravity torques and forces for all joints to maintain their positions in the specified gravity. For more information, see the
— is the geometric Jacobian for the given joint configuration for more information, see the
The control input relies on these user-defined parameters:
— Proportional gain, specified as a 6-by-6 matrix
— Derivative gain, specified as a 6-by-6 matrix
— Joint damping vector, specified as a two-element vector of damping constants in for revolute joints and for prismatic joints
You can specify these parameters as properties on the Plan and Execute Task- and Joint-Space Trajectories Using KINOVA Gen3 Manipulator object.
This model accepts the following inputs:
— Reference end-effector pose, specified as the desired end-effector pose
— Reference end-effector velocities, specified as a vector , with angular velocities and translational velocities