Adding Road bumps to the Road Scenario

21 ビュー (過去 30 日間)
Yousif Alaraji
Yousif Alaraji 2022 年 12 月 14 日
コメント済み: Kerem Erturk 2023 年 11 月 29 日
Hello
I just working on driving scenario designer and I want to add some bumps on the road to check the ability of Active suspension. But i cannot find any things about bumps there.
Is there any way to add road bumps to test the active suspension system?
Best Regards,
Yousif

回答 (1 件)

Pratheek
Pratheek 2023 年 5 月 26 日
Hello Yousif,
I understand that you want to add road bumps to your scenario, it is possible to add road bumps to a driving scenario in the MATLAB driving scenario designer to test an active suspension system.
One approach is to add a `roadMarking` object to the road segment and use it to define a series of small bumps. You can adjust the height and width of the bumps to match your requirements. Here's an example code snippet that adds a series of bumps to a straight road segment:
% Create a straight road segment
roadsegment = roadSegment('Segment1','SegmentLength',50);
% Define road markings to create bumps
bumpWidth = 1; % m
bumpHeight = 0.05; % m
numBumps = 10;
markings = cell(numBumps,1);
for i = 1:numBumps
xPosition = (i-1)*(roadsegment.SegmentLength/numBumps) + bumpWidth/2;
yPosition = bumpHeight/2;
markings{i} = roadMarking('Bumps','Width',bumpWidth,'Height',bumpHeight,...
'Color',[250 128 114]/255,'XPosition',xPosition,...
'YPosition',yPosition);
end
roadsegment.Markings = [roadsegment.Markings; markings];
This code creates a straight road segment of length 50 m and adds 10 road markings with bumpWidth of 1 m and bumpHeight of 0.05 m. The bumps are positioned at equal intervals along the segment, and are shaded in a reddish color ([250 128 114]/255).
You can modify this code to add bumps to any road segment in your driving scenario, and adjust the bump size and position as needed to test the active suspension system.
  2 件のコメント
kerem
kerem 2023 年 11 月 28 日
hello pratheek
I want to detect these bumps with a camera or lidar and use them as input in the suspension system. Is this possible? Can a camera or lidar give me this information? Do you know?
Kerem Erturk
Kerem Erturk 2023 年 11 月 29 日
@Pratheek Can you help me?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by