The kinetic energy owing to the payload is given by the following equation, where
p
is the position vector of the trip of the end effector, and m is the mass of the payload.