DocumentationHelp CenterDocumentation
Create deep copy of state validator object
validator2 = copy(validator1)
example
validator2 = copy(validator1) creates a deep copy of the specified state validator object.
validator2
validator1
collapse all
Create a validator object and set a custom validation distance.
validator = validatorOccupancyMap3D; validator.ValidationDistance = 4.5
validator = validatorOccupancyMap3D with properties: Map: [1x1 occupancyMap3D] StateSpace: [1x1 stateSpaceSE3] XYZIndices: [1 2 3] ValidationDistance: 4.5000
Create a deep copy of the state validator object.
validator2 = copy(validator)
validator2 = validatorOccupancyMap3D with properties: Map: [1x1 occupancyMap3D] StateSpace: [1x1 stateSpaceSE3] XYZIndices: [1 2 3] ValidationDistance: 4.5000
Verify that the ValidationDistance property values of the two state validator objects are equal.
ValidationDistance
isequal(validator.ValidationDistance,validator2.ValidationDistance)
ans = logical 1
validatorOccupancyMap
validatorOccupancyMap3D
validatorVehicleCostmap
State validator object, specified as a validatorOccupancyMap, validatorOccupancyMap3D, or validatorVehicleCostmap object.
State validator object, returned as a validatorOccupancyMap, validatorOccupancyMap3D, or validatorVehicleCostmap object.
validatorOccupancyMap | validatorOccupancyMap3D | validatorVehicleCostmap
You have a modified version of this example. Do you want to open this example with your edits?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office