copy
オブジェクトのディープ コピーの作成
説明
は、plannerCopy
= copy(planner
)trajectoryOptimalFrenet
オブジェクトのディープ コピーを同じプロパティで作成します。
例
障害物グリッド マップをもつ binaryOccupancyMap
を作成します。
grid = zeros(50,100); grid(24:26,48:53) = 1; map = binaryOccupancyMap(grid);
状態バリデーターを作成します。マップと状態の範囲を状態バリデーターに割り当てます。
validator = validatorOccupancyMap; validator.Map = map; validator.StateSpace.StateBounds(1:2,:) = [map.XWorldLimits; map.YWorldLimits];
プランナーの参照パスを作成します。
refPath = [0,25;100,25];
trajectoryOptimalFrenet
オブジェクトを作成します。
planner = trajectoryOptimalFrenet(refPath,validator)
planner = trajectoryOptimalFrenet with properties: Weights: [1×1 struct] FeasibilityParameters: [1×1 struct] TimeResolution: 0.1000 NumSegments: 1 DeviationOffset: 0 CostFunction: @trajectoryOptimalFrenet.nullCost TrajectoryList: [1×1 struct] TerminalStates: [1×1 struct] Waypoints: [2×2 double]
trajectoryOptimalFrenet
オブジェクトのコピーを作成します。
plannerNew = copy(planner)
plannerNew = trajectoryOptimalFrenet with properties: Weights: [1×1 struct] FeasibilityParameters: [1×1 struct] TimeResolution: 0.1000 NumSegments: 1 DeviationOffset: 0 CostFunction: @trajectoryOptimalFrenet.nullCost TrajectoryList: [1×1 struct] TerminalStates: [1×1 struct] Waypoints: [2×2 double]
入力引数
フレネ最適軌跡オブジェクト。trajectoryOptimalFrenet
オブジェクトとして指定します。
出力引数
フレネ最適軌跡オブジェクトのコピー。同じプロパティをもつ trajectoryOptimalFrenet
オブジェクトとして返されます。
バージョン履歴
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)