Joint limits¶
Joint limits task map assigns a cost for violating joint limits. The joint limits are loaded from the robot model. The mapping is calculated as:
ΦBound(x)={x−xmin−ϵ,if x<xmin+ϵx−xmax+ϵ,if x>xmax−ϵ0,otherwise,
where xmin and xmax are lower and upper joint limits respectively, and ϵ≥0 is a safety margin. The Jacobian and Jacobian derivative are identity matrices.