boundedStates= enforceStateBounds(space,states)reduces the specified statesstatesto the state bounds in theStateBoundsproperty of the specified state space objectspace.
states—Unbounded states n-by-3 matrix of real values|n-by-7 matrix of real values
Unbounded states, specified as ann-by-3 orn-by-7 matrix of real values.
For the 2-D state space objectsstateSpaceSE2,stateSpaceDubins, andstateSpaceReedsShepp, each row is of form[x y theta], which defines thexy-position and orientation anglethetaof a state in the state space.
For the 3-D state space objectstateSpaceSE3, each row is of form[x y z qw qx qy qz], which defines thexyz-position and quaternion orientation[qw qx qy qz]of a state in the state space.
boundedStates— Bounded states n-by-3 matrix of real values |n-by-7 matrix of real values
Bounded states, returned as ann-by-3 orn-by-7 matrix of real values. The value ofnis same as forstatesinput argument.
The function truncates each of the specified unbounded states to the bounds specified in theStateBoundsproperty of the state space objectspace.
For the 2-D state space objectsstateSpaceSE2,stateSpaceDubins, andstateSpaceReedsShepp, each row is of form[x y theta], which defines thexy-position and orientation anglethetaof the bounded states.
For the 3-D state space objectstateSpaceSE3, each row is of form[x y z qw qx qy qz], which defines thexyz-position and quaternion orientation[qw qx qy qz]of the bounded states.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.