このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
computeBoundaryModel
クロソイド車線境界線モデルから車線境界線の点を計算
説明
例
クロソイド車線境界線の作成
左右の車線境界線を表すクロソイド曲線を作成します。次に、曲線をプロットします。
左の境界線を作成します。
lb = clothoidLaneBoundary('BoundaryType','Solid', ... 'Strength',1,'Width',0.2,'CurveLength',40, ... 'Curvature',-0.8,'LateralOffset',2,'HeadingAngle',10);
ほぼ同じプロパティを使用して、右の境界線を作成します。
rb = lb; rb.LateralOffset = -2;
鳥瞰図プロットを作成します。次に、車線境界線プロッターを作成して、境界線をプロットします。
bep = birdsEyePlot('XLimits',[0 50],'YLimits',[-10 10]); lbPlotter = laneBoundaryPlotter(bep,'DisplayName','Left-lane boundary','Color','r'); rbPlotter = laneBoundaryPlotter(bep,'DisplayName','Right-lane boundary','Color','g'); plotLaneBoundary(lbPlotter,lb) plotLaneBoundary(rbPlotter,rb); grid hold on
境界線に沿って選択した点の座標をプロットします。
x = 0:5:50; yl = computeBoundaryModel(lb,x); yr = computeBoundaryModel(rb,x); plot(x,yl,'ro') plot(x,yr,'go') hold off
入力引数
boundary
— 車線境界線モデル
clothoidLaneBoundary
オブジェクト
車線境界線モデル。clothoidLaneBoundary
オブジェクトとして指定します。
xworld
— x ワールド座標
長さ N の実数値ベクトル
x ワールド座標。長さ N の実数値ベクトルとして指定します。ここで、N は座標の数です。
例: 2:2.5:100
データ型: single
| double
出力引数
yworld
— y ワールド座標
長さ N の実数値ベクトル
y ワールド座標。長さ N の実数値ベクトルとして返されます。ここで、N は座標の数です。yWorld
の長さとデータ型は、xWorld
と同じです。
データ型: single
| double
バージョン履歴
R2018a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)