copy
Create deep copy of plannerBenchmark object
Description
creates a deep copy of the plannerBM2
= copy(plannerBM1
)plannerBenchmark
object with the same properties.
Examples
Create Copy of plannerBenchmark Object
Create an occupancy map from an example map.
load("exampleMaps.mat","simpleMap"); map = occupancyMap(simpleMap);
Specify the start and goal states.
start = [5 8 pi/2]; goal = [7 18 pi/2];
Create a plannerBenchmark
object using the map.
pbo = plannerBenchmark(map,start,goal)
pbo = plannerBenchmark with properties: Environment: [1x1 occupancyMap] Start: [5 8 1.5708] Goal: [7 18 1.5708] PlannerOutput: [1x1 struct]
Create a copy of plannerBenchmark
object.
pboNew = copy(pbo)
pboNew = plannerBenchmark with properties: Environment: [1x1 occupancyMap] Start: [5 8 1.5708] Goal: [7 18 1.5708] PlannerOutput: [1x1 struct]
Input Arguments
plannerBM1
— Path planner benchmark
plannerBenchmark
object
Path planner benchmark, specified as a plannerBenchmark
object.
Output Arguments
plannerBM2
— Copy of path planner benchmark
plannerBenchmark
object
Copy of path planner benchmark, returned as a plannerBenchmark
object.
Version History
Introduced in R2022a
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
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)