MATLAB ヘルプ センター
クロソイド車線境界線モデルから車線境界線の点を計算
yworld = computeBoundaryModel(boundary,xworld)
yworld = computeBoundaryModel(boundary,xworld) は、x 座標 xworld によって指定された点における車線境界線 boundary から導出した、車線境界線の点の y 座標 yworld を返します。すべての点がワールド座標で示されます。
yworld
boundary
xworld
すべて折りたたむ
左右の車線境界線を表すクロソイド曲線を作成します。次に、曲線をプロットします。
左の境界線を作成します。
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
clothoidLaneBoundary
車線境界線モデル。clothoidLaneBoundary オブジェクトとして指定します。
x ワールド座標。長さ N の実数値ベクトルとして指定します。ここで、N は座標の数です。
例: 2:2.5:100
2:2.5:100
データ型: single | double
single
double
y ワールド座標。長さ N の実数値ベクトルとして返されます。ここで、N は座標の数です。yWorld の長さとデータ型は、xWorld と同じです。
yWorld
xWorld
R2018a で導入
laneBoundaries | clothoidLaneBoundary
laneBoundaries
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 のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ