Create aiming constraint for pointing at a target location
The constraintAiming
object describes a constraint that
requires the z-axis of one body (the end effector) to aim
at a target point on another body (the reference body). This constraint is
satisfied if the z-axis of the end-effector frame is
within an angular tolerance in any direction of the line connecting the
end-effector origin and the target point. The position of the target point
is defined relative to the reference body.
Constraint objects are used in generalizedInverseKinematics
objects to specify multiple
kinematic constraints on a robot.
For an example that uses multiple constraint objects, see Plan a Reaching Trajectory With Multiple Kinematic Constraints.
returns an aiming constraint object that represents a constraint on a body
specified by aimConst
= constraintAiming(endeffector
)endeffector
.
returns an aiming constraint object with each specified property name set to
the specified value by one or more aimConst
= constraintAiming(endeffector
,Name,Value
)Name,Value
pair
arguments.