copy
Description
creates a deep copy of the specified state validator object.validator2
= copy(validator1
)
Examples
Create Deep Copy of 3-D Occupancy Map State Validator Object
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.
isequal(validator.ValidationDistance,validator2.ValidationDistance)
ans = logical
1
Input Arguments
validator1
— State validator object
validatorOccupancyMap
object | validatorOccupancyMap3D
object | validatorVehicleCostmap
object
State validator object, specified as a validatorOccupancyMap
, validatorOccupancyMap3D
, or validatorVehicleCostmap
object.
Output Arguments
validator2
— State validator object
validatorOccupancyMap
object | validatorOccupancyMap3D
object | validatorVehicleCostmap
object
State validator object, returned as a validatorOccupancyMap
, validatorOccupancyMap3D
, or validatorVehicleCostmap
object.
Version History
Introduced in R2020b
MATLAB Command
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.
Select a Web Site
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
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)